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

Started by Vilinta on

Topic category: Help with modding (Java Edition)

Last seen on 15:28, 25. Aug 2021
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.

Last seen on 16:41, 12. Mar 2022
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...)

Last seen on 15:28, 25. Aug 2021
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 

Last seen on 15:18, 21. Oct 2023
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.

Last seen on 15:18, 21. Oct 2023
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.