lxquid_ Posted March 29, 2021 Posted March 29, 2021 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. Quote
Beethoven92 Posted March 29, 2021 Posted March 29, 2021 (edited) Isn't the minecraft tag for coals..."minecraft:coals"? Edited March 29, 2021 by Beethoven92 Quote Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port
lxquid_ Posted March 29, 2021 Author Posted March 29, 2021 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))); Quote
Beethoven92 Posted March 29, 2021 Posted March 29, 2021 (edited) Mmm that is the registry name of the item. If you take a look into the ItemTags class you will see what the name of the tag for coals is Edited March 29, 2021 by Beethoven92 Quote Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port
lxquid_ Posted March 30, 2021 Author Posted March 30, 2021 @diesieben07 Nope this doesnt works for me, i tried "befat" instead of "tme" but it still is not working Quote
lxquid_ Posted March 30, 2021 Author Posted March 30, 2021 @diesieben07 i already tried to change coal to coals but it still doesnt works Quote
lxquid_ Posted March 30, 2021 Author Posted March 30, 2021 (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 } } Edited March 30, 2021 by lxquid_ Quote
lxquid_ Posted March 30, 2021 Author Posted March 30, 2021 but where i can find the tags for items Quote
kiou.23 Posted March 30, 2021 Posted March 30, 2021 1 minute ago, lxquid_ said: but where i can find the tags for items https://minecraft.fandom.com/wiki/Tag you know that tags and items aren't the same thing, right? Quote
lxquid_ Posted March 30, 2021 Author Posted March 30, 2021 (edited) -DELETED- Edited March 30, 2021 by lxquid_ Quote
kiou.23 Posted March 30, 2021 Posted March 30, 2021 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 Quote
lxquid_ Posted March 30, 2021 Author Posted March 30, 2021 okay but when i change "tag": "minecraft:dirt" to "item": "minecraft:dirt" it still doesnt works Quote
kiou.23 Posted March 30, 2021 Posted March 30, 2021 5 minutes ago, lxquid_ said: okay but when i change "tag": "minecraft:dirt" to "item": "minecraft:dirt" it still doesnt works post the full recipe json Quote
lxquid_ Posted March 30, 2021 Author Posted March 30, 2021 @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 } } Quote
kiou.23 Posted March 30, 2021 Posted March 30, 2021 I'm not sure the serializer accepts shaped recipes that only have one ingredient, try using a shapeless recipe (I'm not entirely sure tho) Quote
lxquid_ Posted March 30, 2021 Author Posted March 30, 2021 (edited) With shapeless it doesnt works too @kiou.23 Edited March 30, 2021 by lxquid_ Quote
lxquid_ Posted March 30, 2021 Author Posted March 30, 2021 2 hours ago, kiou.23 said: where is your recipe json? @kiou.23 Quote
Beethoven92 Posted March 30, 2021 Posted March 30, 2021 what is "befat"? I thought your mod id was "tme" (as seen in the first json you posted)..also why did you separate advancements and recipes folder? You can put both of them in data."your_mod_id" Quote Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port
lxquid_ Posted March 30, 2021 Author Posted March 30, 2021 4 minutes ago, Beethoven92 said: what is "befat"? I thought your mod id was "tme" (as seen in the first json you posted)..also why did you separate advancements and recipes folder? You can put both of them in data."your_mod_id" befat is the modid 10 hours ago, diesieben07 said: Change your ModID! "tme" is too short and not unique. Do not use abbreviations. @Beethoven92 Quote
Beethoven92 Posted March 30, 2021 Posted March 30, 2021 All right, you changed it, thats good..so, at this point i think it would be better if you could post a link to your repository (make one if you haven't yet) so we can see the whole thing.. Quote Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port
kiou.23 Posted March 30, 2021 Posted March 30, 2021 did you name the folders with actual periods? don't do that, IntelliJ doesn't make it subfolders (it works for Java packages, but not for regular directories), it's literally just a directory name with periods in it recipes must be under data/modid/recipes Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.