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

Why do my recipes not work?


Recommended Posts

Hello,

i have coded recipes and there are not working.

src/main/resources/data/tme/recipes/roesti_from_crafting.json

{
  "type": "minecraft:crafting_shaped",
  "pattern":
  [
    "ppp",
    "ccc",
    "pap"
  ],
  "key":
  {
    "a":
    {
      "tag": "minecraft:coal"
    },
    "p":
    {
      "item": "minecraft:potato"
    },
    "c":
    {
      "item": "tme:cheese"
    }
  },
  "result":
  {
    "item": "tme:roesti",
    "count": 1
  }
}

somebody knows what i am doing wrong?

 

thanks in advance.

Link to post
Share on other sites
24 minutes ago, Beethoven92 said:

Isn't the minecraft tag for coals..."minecraft:coals"?

public static final Item COAL = registerItem("coal", new Item((new Item.Properties()).tab(ItemGroup.TAB_MATERIALS)));

 

Link to post
Share on other sites
Posted (edited)

@diesieben07

 

resources/data/befat/recipes/roesti_from_crafting.json

 

{
  "type": "minecraft:crafting_shaped",
  "pattern":
  [
    "a"
  ],
  "key":
  {
    "a":
    {
      "tag": "minecraft:dirt"
    }
  },
  "result":
  {
    "item": "minecraft:diamond",
    "count": 1
  }
}

 

 

rOWd0yC.png

Edited by lxquid_
Link to post
Share on other sites
Just now, lxquid_ said:

nope please explain o-o @kiou.23

tags is a way of grouping together items that have something in common. look at Coal and Charcoal for example, they're both individual items, but for the torch recipe (and the campfire iirc), you can use any of the coals. minecraft doesn't make the recipe twice, once for each coal. instead it groups the coals together under a tag

there are tags for a whole bunch of stuff, some from vanilla, some from forge, and you can even make your own type of tags, it's all data-driven and the minecraft wiki article I posted goes into further detail

Link to post
Share on other sites

@kiou.23

1 minute ago, kiou.23 said:

post the full recipe json

{
  "type": "minecraft:crafting_shaped",
  "pattern":
  [
    "a"
  ],
  "key":
  {
    "a":
    {
      "item": "minecraft:dirt"
    }
  },
  "result":
  {
    "item": "minecraft:diamond",
    "count": 1
  }
}

 

Link to post
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.



×
×
  • Create New...

Important Information

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