2

Help with crafting code

TheCubeCrafter 7/9/21 3:14 pm
309
7/9/2021 11:32 pm
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" }}
Posted by
TheCubeCrafter
Level 18 : Journeyman Cow
2

  Have something to say?

JoinSign in

13

Gamingbarn
07/09/2021 3:56 pm
Level 75 : Legendary Programmer Programmer
history
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.
2
Gamingbarn
07/09/2021 3:57 pm
Level 75 : Legendary Programmer Programmer
Hope this helps.
1
TheCubeCrafter
07/09/2021 4:43 pm
Level 18 : Journeyman Cow
I tried to do everything you said but it never worked. Is there any specific place i have to put the file in?
1
Gamingbarn
07/09/2021 5:12 pm
Level 75 : Legendary Programmer Programmer
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
TheCubeCrafter
07/09/2021 5:18 pm
Level 18 : Journeyman Cow
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
HoboMaggot
07/09/2021 10:27 pm
Level 55 : Grandmaster Blob
No you have to place it next to the functions folder
1

Welcome