Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.9.4] Set durability of output of recipe to durability of component


onVoid
 Share

Recommended Posts

I have a recipe where I combine three obsidian with my item to make a more durable version, but the new item has a reset damage value. I have googled and found things stating an "IRecipe" but I have no idea how to use it to achieve this. Can anybody help? Thanks.

Link to comment
Share on other sites

Make class, implements it and register.

IRecipe allows returning result that can be altered by ingredients - so e.g you can check ingredient NBT or damage and transfer it over to result.

 

Where is the problem?

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

Make class, implements it and register.

IRecipe allows returning result that can be altered by ingredients - so e.g you can check ingredient NBT or damage and transfer it over to result.

 

Where is the problem?

I just don't know how to use an IRecipe. Are there any tutorials?

Link to comment
Share on other sites

Make a class that implements IRecipe.

Let your IDE auto-implement stub methods for the interface.

Look at the name of each stub and its return type.  Write those methods to do what you want them to.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.

Guest
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.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.