Jump to content

Ore Dictionary: replacing single recipe


Recommended Posts

Hey there,


I want to make some recipes, everything works as expected. I have planks which are registered as plankWood in the Ore Dictionary to let them be easily used as material for basic wooden items like working bench, wooden tools a.s.o.

The problem I'm facing right now is that I have custom sticks and I want to use my planks to craft them, but if I "override" the current recipe for the wooden sticks with my own recipe for my own planks, it still gives me the wooden sticks as output. I also tried to register the recipe before the OreDictionary replaces the ore recipes, but with no avail.

The second thing I wanted to do is to override the ShapedOreRecipe for the wooden sticks in the recipes list with a custom class which extends ShapedOreRecipe, let it return my custom sticks when my planks are used and return the wooden sticks (return the super method) if my planks are not used. The problem with this method however is that if a mod does the same kind of thing I do, my recipe will be overwritten by the mods recipe or vice versa.

So what I'm asking is: Is there a way to "exclude" a specific recipe or overwrite it? Or something else which would work? Hints would be enough.


Sincerly, SanAndreasP

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Link to comment
Share on other sites

  • 6 months later...

You do not really need to override it. CraftingManager sort his recipe.

So you need to do a custom craftingHandler. Not that from forge,

You simply make it like that you have your standart crafting recipe.

With 1 thing you set the recipe size to 1 then the craftingmanager sort it automaticly above the forge/vanilla stick recipes.

How lower the recipe size is that lower he put the recipes size and the lowest number comes first.

Actually i can not tell how you can make shaped shapless recipes in a custom craftinghandler. Just look at the normal shaped recipe.


I hope that helps.

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.

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.

  • Create New...

Important Information

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