Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[SOLVED] [1.12] can't use vanilla items to craft modded item


Mango106
 Share

Recommended Posts

(SOLUTION: forgot to add data tag for cooked fish)

basically, i'm simply trying to create a food item that can be crafted using cooked fish, and a baked potato (which are vanilla items). whenever i make .json files for recipes that use items from my mod, i can craft them. but whenever I try using a vanilla item, i can't craft the item I want to craft.

the .json for the recipe that isn't working is attached, and here is the code:

{
    "type": "minecraft:crafting_shapeless",
 
    "ingredients":
    [
 
    {
      "item": "minecraft:baked_potato"
    },
 
    {
      "item": "minecraft:cooked_fish"
    }
   
    ],
 
    "result":
    {
        "item": "tm:fish_and_chips",
        "count": 1
    }
}

i've been searching for more than an hour, i don't know what to do

recipe_fish_and_chips.json

Edited by Mango106
Link to comment
Share on other sites

I bet my right hand it's because the game doesn't recognize "cooked_fish" as a Vanilla item. I got the same problem with the LAPIS_LAZULI a month ago. A lot of items have seen there names change between 1.12.2 and 1.13.2, be carefull and try to find the real name of vanilla items in your version.

 

do a test with a couple of vanillacobblestone. If it works, you can be sure I hit the target ?

Edited by sunsigne
Link to comment
Share on other sites

do you have a github ? It would be simplier for us to analyze your code. Are you sure you put your recipe in the good package ? And that "tm" is modid of your mod ?

 

does :

{
    "type": "minecraft:crafting_shapeless",
 
    "ingredients":
    [
 
    {
      "item": "minecraft:cobblestone"
    }
   
    ],
 
    "result":
    {
        "item": "tm:fish_and_chips",
        "count": 1
    }
}

really not work ?

Link to comment
Share on other sites

i know, it just stands for test mod, I don't plan on releasing it anyways. If i do release a complete mod i'm going to use a good modid. also, is this how i would format the metadata, below the item?

{
    "type": "minecraft:crafting_shapeless",
 
    "ingredients":
    [
 
    {
      "item": "minecraft:baked_potato"
    },
    
    {
      "item": "minecraft:cooked_fish",
      "data": "0"
    }
    
    ],
 
    "result":
    {
        "item": "tm:fish_and_chips",
        "count": 1
    }
}

 

Edited by Mango106
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.