Jump to content

[1.7.2] Item refuses to Consume other items and repair itself


hugo_the_dwarf

Recommended Posts

I have this special Item I want in my Mod called a "Emblem of Repair" and by having it on you will slowly repair everything damaged in your inventory. However I want it to be upgraded by feeding it an item (test item is Iron Ingots) I was looking at how Bows work and tried to mimic that in the item (near the bottom of the class)

 

What happens is if I do right-click and hold it will consume a ingot however it never really did (visually it works, but in the background it doesn't aka if I simply right-click the ingot reappears and the changes are undone) so How do I make this 'work' correctly? Also I'm new to modding MC (but not to modding or java in general)

 

Any help or advice or explanation would be helpful (Also I read the before you post a topic and should I use Gist or the spoiler+code combo below? apparently spoilers don't open)

 

https://gist.github.com/anonymous/fd0bbdff2adf90bc1851

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.