2
Help with crafting code
DISCLAIMER: Im new here so i'm not sure if this is the correct category.
For some reason my .json file for crafting isn't working. I would be glad if someone could tell me what's wrong
{ "type": "minecraft:crafting_shape", "pattern": [ "-T-", "-S-", "---" ], "key": { "S": "minecraft:stick", "T": "minecraft:tnt" }, "result": { "item": "minecraft:tnt", "count": "2" }}
For some reason my .json file for crafting isn't working. I would be glad if someone could tell me what's wrong
{ "type": "minecraft:crafting_shape", "pattern": [ "-T-", "-S-", "---" ], "key": { "S": "minecraft:stick", "T": "minecraft:tnt" }, "result": { "item": "minecraft:tnt", "count": "2" }}
13
This is the correct code:
{ "type": "minecraft:crafting_shaped", "pattern": [ "-T-", "-S-", "---" ], "key": { "S": { "item": "minecraft:stick" }, "T": { "item": "minecraft:tnt" } }, "result": { "item": "minecraft:tnt", "count": 2 }}
You put crafting_shape instead of crafting_shaped
In the key you needed to put { "item": "minecraft:stick" },
instead of just "minecraft:stick"
and the count at the end doesn't need quotations around it.
{ "type": "minecraft:crafting_shaped", "pattern": [ "-T-", "-S-", "---" ], "key": { "S": { "item": "minecraft:stick" }, "T": { "item": "minecraft:tnt" } }, "result": { "item": "minecraft:tnt", "count": 2 }}
You put crafting_shape instead of crafting_shaped
In the key you needed to put { "item": "minecraft:stick" },
instead of just "minecraft:stick"
and the count at the end doesn't need quotations around it.
Hope this helps.
I tried to do everything you said but it never worked. Is there any specific place i have to put the file in?
Try pasting the code in the file and if that doesn't work then make sure that the .json file is in a folder titled "recipes".
I did all of that also. if i'm correct the recipes folder has to be placed in the same place as the function script?
No you have to place it next to the functions folder
View 1 more replies
