PineReseen Posted April 6 Report Posted April 6 I'm trying to make a recipe for wood ash, similar to how you make Calcined Flint, or cook Bushmeat, Redmeat, Fish Meat, etc. for 1.21.6, and I don't know how. There are no recipes in the recipes folder that look like they'd be anything like that, and somebody had already asked this exact question on the legacy mod development forum, but received no answer. Is this for some unknown reason restricted to only code mods? Or is a JSON way possible? Thanks!
Solution PineReseen Posted April 6 Author Solution Report Posted April 6 Okay, so I remembered that I could just download a mod that does a similar thing off the database and steal its homework, and it turns out that it is actually a JSON feature. In the case of flint, it has a "combustibleProps" property that allows it to be smelted. This is also used in things that can be used as fuel. So, in the case of flint, it looks like this: Spoiler combustibleProps: { meltingPoint: 1000, meltingDuration: 13, smeltedRatio: 1, requiresContainer: false, smeltedStack: { type: "item", code: "calcined-flint", stacksize: 1 } }, For me, I just needed to make firewood and sticks smeltable, so I could use JSON patches to add onto the firewood's existing combustibleProps property to make it smeltable in a firepit (So it can be used both as the thing being smelted and the fuel for the smelting). This looks like the following: Spoiler [ { "op": "addmerge", "path": "/combustibleProps", "value": { meltingPoint: 21, meltingDuration: 48, smeltedRatio: 1, requiresContainer: false, smeltedStack: { type: "item", code: "xyzmodname:woodash", stacksize: 1 } }, "file": "game:itemtypes/resource/firewood.json" }, { "op": "addmerge", "path": "/combustibleProps", "value": { meltingPoint: 21, meltingDuration: 48, smeltedRatio: 1, requiresContainer: false, smeltedStack: { type: "item", code: "xyzmodname:woodash", stacksize: 1 } }, "file": "game:itemtypes/resource/firewood-aged.json" }, { "op": "addmerge", "path": "/combustibleProps", "value": { meltingPoint: 21, meltingDuration: 16, smeltedRatio: 4, requiresContainer: false, smeltedStack: { type: "item", code: "xyzmodname:woodash", stacksize: 1 } }, "file": "game:itemtypes/resource/stick.json" } ] I'm a bit rusty when it comes to JSON patches, so maybe this can be used for things that don't have the combustibleProps thingy, but I'd recommend checking out the modding tutorial on the wiki for that. I hope this helps anybody that is looking for the same thing! 2
Recommended Posts