Posted November 5, 20204 yr 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 }
November 5, 20204 yr 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.
November 5, 20204 yr Author 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, 20204 yr by 20ChenM
November 5, 20204 yr 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.
November 5, 20204 yr Author so like this? { "type": "minecraft:smelting", "ingredient": { "item": "examplemod:ruby_ore" }, "result": { "item": "examplemod:ruby", "count": 2 }, "experience": 0.2, "cookingtime": 50 }
November 5, 20204 yr Well if you test it, does it work? If not, look at the logs and see where the error is.
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.