Started by
readf0x
on
Topic category: Help with Minecraft modding (Java Edition)
I'm trying to make a gui that would create it's own recipe type and use vanilla style recipes instead of creating a procedure that contains each individual recipe inside it.
For example, I could make a recipe like:
{
"type": "mod:custom_recipe_type",
"base": {
"item": "mod:input_1"
},
"addition": {
"item": "mod:input_2"
},
"result": {
"item": "mod:output"
}
}
It's essentially just a smithing table, but I won't use a regular smithing table for balance reasons. (The output items will be cheap and powerful, so the block to make them has to be very expensive) Does anyone know a way to do this?
Yes, there is a way to make custom JSON recipes, but only with code and you can’t use procedures for this.
If you you want to try and code it: https://forge.gemwire.uk/wiki/Custom_Recipes/1.16
I can also link an example from my mod if you want.
I'd love an example, Mr. Frostygames!
I'm using MCreator in the first place because I hate java. I know it's simple if you learn it, but I don't have 2 years to spare on a project I'm not going to look at ever again once I finish it lol
Here: https://github.com/Frostygames0/Elemental-Amulets/tree/master/src/main/java/frostygames0/elementalamulets/recipes.
This package contains everything you need to create a recipe. Also look into Elemental Combinator Tile class for implentation of crafting table and ModRecipes to register them.
You can also look inside Minecraft's code to see how they do it.
And you should really try to learn Java! Two weeks of practice and I wrote a mod.
You can download the plugin File Manager by @Goldorion. It can read JSON files.