Jump to content

How do I create an item that changes durability when crafted with?


Recommended Posts

Posted

I'm new to modding, so this question may have a simple solution.

 

I want to create a crafting item (in this case Super Glue) that when used to craft items doesn't delete itself like a normal item, it instead lowers the durability. How would I go about doing this?

 

Here's the code for the item:

SuperGlue = new SuperGlue().setUnlocalizedName("SuperGlue").setCreativeTab(CreativeTabs.tabMisc).setTextureName(MainRegistry.MODID + ":SuperGlue Texture");

 

But from there I have no idea what I need to put in the SuperGlue class. Any help would be appreciated.

  • Guest locked this topic
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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