Lumby Posted October 10, 2018 Posted October 10, 2018 I am trying to add a crafting table recipe via JSON { "type": "minecraft:crafting_shaped", "pattern": [ "AAA", "ALA", "AAA" ], "key": { "A": { "item": "crumblemod:arcana_shards" }, "L": { "item": "minecraft:oak_log" } }, "result": { "item": "crumblemod:magic_logs_block", "count": 1 } } All my other recipes work just fine, yet with this JSON recipe for some reason it throws the exception: Quote [main/ERROR] [FML]: Parsing error loading recipe crumblemod:magic_logs com.google.gson.JsonSyntaxException: Unknown item 'minecraft:oak_log' As in it cannot find the vanilla item oak logs. If I swap out oak logs with something like glass, however, the recipe would work again. What might be causing this? Quote
Animefan8888 Posted October 10, 2018 Posted October 10, 2018 9 minutes ago, Lumby said: What might be causing this? The oak log isnt called minecraft:oak_log yet, that is its name in 1.13. In 1.12 you need to use its metadata value via the data tag in the JSON. 1 Quote VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
Lumby Posted October 10, 2018 Author Posted October 10, 2018 Thanks for the help! Is there any way where I can make the recipe so that it takes in any type of logs (oak, birch, jg) or do I have to make an individual json for every log type? Quote
Animefan8888 Posted October 10, 2018 Posted October 10, 2018 2 minutes ago, Lumby said: Thanks for the help! Is there any way where I can make the recipe so that it takes in any type of logs (oak, birch, jg) or do I have to make an individual json for every log type? You would need to use ore dict there was a post recently on how to do any type of planks it should function the same as the answer on there. 1 Quote VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
Lumby Posted October 10, 2018 Author Posted October 10, 2018 Nvm, I got it, sorry I'm new to using data tags in JSON. Found out if I add "data": 32767 as the data tag it'll accept any type of log since 32767 is the wildcard value Quote
Lumby Posted October 10, 2018 Author Posted October 10, 2018 Yeah I found the post, was literally typing out the last sentence when you replied haha. Thanks again for the tip! Quote
Animefan8888 Posted October 10, 2018 Posted October 10, 2018 1 hour ago, Lumby said: Nvm, I got it, sorry I'm new to using data tags in JSON. Found out if I add "data": 32767 as the data tag it'll accept any type of log since 32767 is the wildcard value You only want to do it this way if you don't want other modded logs to work with the recipe. If you want them to work then you must use the ore dictionary method. 1 Quote VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator.
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.