Posted May 11, 20205 yr Hello, im trying to figure out how to add a config setting that determines which recipes to use. I have 2 recipes, one thats easier and one thats harder and I want it to use one depending on the config setting. I've looked on the forums here and people are saying something about a "IRecipeSerializer" but im unsure of where to start or how to code something that would work for what I want. Thanks in advanced for the help.
May 11, 20205 yr You would need to have your own custom implementation of IRecipe. When you are setting the IRecipeType, make sure its the same as the vanilla system you would like to use. From there, you can write your own IRecipeSerializer which is basically just writing a deserializer to read data from a json file. If you want examples, take a look at the item.crafting folder inside the Minecraft source. That should provide plenty of reference on how to execute this.
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.