20ChenM Posted November 5, 2020 Share Posted November 5, 2020 I am new to modding and im trying to make a furnace recipe where if u input one ruby ore into a furnace, you yield 2 rubies. I tried doing a count function but it did not work. Any help? My code: { "type": "minecraft:blasting", "ingredient": { "item": "examplemod:ruby_ore" }, "result": "examplemod:ruby", "count": 2, "experience": 0.5, "cookingtime": 50 } Quote Link to comment Share on other sites More sharing options...
ChampionAsh5357 Posted November 5, 2020 Share Posted November 5, 2020 12 minutes ago, 20ChenM said: I tried doing a count function but it did not work It's not a function, just a key-value pair. Also, result would need to be an object where you specify the item name and count for it to work. Quote Link to comment Share on other sites More sharing options...
20ChenM Posted November 5, 2020 Author Share Posted November 5, 2020 (edited) so, how do i fix it? I am new to modding so I need you to do a step by step guide Edited November 5, 2020 by 20ChenM Quote Link to comment Share on other sites More sharing options...
ChampionAsh5357 Posted November 5, 2020 Share Posted November 5, 2020 14 minutes ago, 20ChenM said: I am new to modding so I need you to do a step by step guide I didn't tell you anything related to modding, I told you something related to json objects. Reliance on a guide to do the work for you will not solve your problem. I'll give a more clear answer though. The 'result' key is attached to a json object. You can specify the name of the item using the 'item' key and the count with the 'count' key inside this json object. Quote Link to comment Share on other sites More sharing options...
20ChenM Posted November 5, 2020 Author Share Posted November 5, 2020 so like this? { "type": "minecraft:smelting", "ingredient": { "item": "examplemod:ruby_ore" }, "result": { "item": "examplemod:ruby", "count": 2 }, "experience": 0.2, "cookingtime": 50 } Quote Link to comment Share on other sites More sharing options...
ChampionAsh5357 Posted November 5, 2020 Share Posted November 5, 2020 Well if you test it, does it work? If not, look at the logs and see where the error is. Quote Link to comment Share on other sites More sharing options...
20ChenM Posted November 5, 2020 Author Share Posted November 5, 2020 it works, thanks for the tip Quote Link to comment Share on other sites More sharing options...
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.