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" }}
Create an account or sign in to comment.
13
2
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.
1
Hope this helps.
1
I tried to do everything you said but it never worked. Is there any specific place i have to put the file in?
1
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".
1
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?
1
No you have to place it next to the functions folder
view more replies ( 1 )