Jump to content

Draining hunger instead of item durability


Recommended Posts

Hi!

I'm making a modded character. Everything is fine, except that I'm stuck with an idea and I have no idea how to code it… I don't even know if it's possible, so any help will be appreciated :)

I'd like my character to drain hunger instead of losing durability of the items he uses and stuff he wear. For example, if I use a firestaff, the idea woold be that the firestaff doesn't lose durability but instead my character loses hunger. If I wear an armor and take damage, the armor won't take damage but I'll lose hunger. If I wear a winter hat it won't lose durability over time but my hunger will drain faster…

 

Thanks a lot and have a nice day :)

 

PS : sorry for my bad English, I've done my best

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...