Jump to content

[1.14.4] Config for changing recipes


GttiqwT

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.