How would I make an Inventory-Pet-type item?

Started by swelkinn_n on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How would I make an Inventory-Pet-type item?

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)

Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
By inventory pet, do you…
Wed, 05/11/2022 - 17:52

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?

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
inventory pet like   the mod…
Sat, 05/14/2022 - 22:33

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%

Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
IDK I wanted to do this too,…
Mon, 06/13/2022 - 22:49

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.