Started by
swelkinn_n
on
Topic category: Help with Minecraft modding (Java Edition)
My only issue is really making the item appear to be at 0 durability until it eats, as the rest is fairly easy, but it is still a huge issue as thats pretty much a third of what makes an inventory pet an inventory pet
I don't know how to accurately get an item's durability, and I know even less how to get an item to have pseudo-durability like that, so any help would be appreciated (if it cant be done, i would still like to. at least know how to get an item's durability accurately)
By inventory pet, do you mean something you consume to bring out a pet? There's a coding block to detect durability of an item, but why do you need it to appear as 0?
inventory pet like the mod inventory pets
they have a durability bar that doesnt actually make them break, but shows how many uses left they have until they need to be fed back to 100%
IDK I wanted to do this too, but I just made the durability utterly massive like 1,000,000 and made things subtract 9,999 durability instead of 1. And it (kinda) worked. Another thing would be to have multiple versions of the item and just have a fake drawn-on durability bar, or some kinda indicator on the actual texture of the pet.