How can i get durability of an item in player's inventory?

Started by Vilinta on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can i get durability of an item in player's inventory?

I created variables, but it didn't work.

Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Did you try F3 + H ? It…
Mon, 08/23/2021 - 22:42

Did you try F3 + H ? It shows the advanced tooltips (durability, id...)

Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i need to show it in Overlay 
Tue, 08/24/2021 - 09:31

i need to show it in Overlay 

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need the same thing. I am…
Tue, 11/16/2021 - 17:13

I need the same thing. I am trying to make a mod that adds more inventory pets but I can't figure out how to save the durability in a variable.

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Does the get damage block…
Tue, 11/16/2021 - 18:21

Does the get damage block get the durability of the item? I need it do show the durability.