2

Help with crafting code

TheCubeCrafter7/9/21 3:14 pm
7/9/2021 11:32 pm
TheCubeCrafter
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 avatar
TheCubeCrafter
Level 16 : Journeyman Cow
2

Create an account or sign in to comment.

13

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

Website

© 2010 - 2022
www.planetminecraft.com

Welcome