- Advancements
- Functions
- Predicates
- 115,272 views • 39 today
- 29,036 downloads • 7 today
- 133
- 147
- 26
Required Resource Pack
58
A Datapack that shows the durability of items,
both main and offhand.
Features
I appreciate any feedback and suggestions



both main and offhand.
Features
- Durability of equipped armor
- Change icon depending on equipped armor (optional resource pack)
- Armor changing Resource pack support (only non-animated vanilla armor items)
- Durability of main and offhand.
- Support vanilla items with durability
- Supports custom weapons with max_damage components.
I appreciate any feedback and suggestions



- Enable icons (requires resourcepack)
/trigger DurabilityHud.resourcepack - Toggle Durability Hud per player
/trigger DurabilityHud.toggle - Show/Hide armor durability
/trigger DurabilityHud.armor
Enable Icons (optional)
- Download and Install the actual datapack (https://modrinth.com/datapack/durability)
- Download the resource pack
- Install and enable the resource pack
- run the command
/trigger DurabilityHud.resourcepack - Enjoy
| Compatibility | Minecraft 1.21 |
| Tags |
8 Update Logs
Update #8 - 1.21.3 re-write : by LeonNikolai 11/06/2024 4:52:22 amNovember 6, 2024 @ 9:52 am UTC
Added commands, and support for 1.21.3 items
- Enable icons (requires resourcepack)
/trigger DurabilityHud.resourcepack - Toggle Durability Hud per player
/trigger DurabilityHud.toggle - Show/Hide armor durability
/trigger DurabilityHud.armor
LOAD MORE LOGS
4311822
119

![Immersive Beekeeping | Beekeeper NPC, Bonus Honeycomb Tools, Queen Bees, MORE. 1.17 [VERSION 0.3.1]](https://static.planetminecraft.com/files/image/minecraft/data-pack/2021/748/14362243-beekeepingpatchnotes_s.jpg)



Have something to say?
One thing I can try to do is add a resourcepack with custom type to create a more visual appealing hud weith more space, similar to what this guy did with colored armor. The sidebar is also a possibility, but then there are technical difficulties when it comes to larger amounts of players. The chat would just be an inconvenient place to print such information.
I have a couple of questions before installing:
Do the numbers only appear when you select the tool / weapon or do they stay on the screen the entire time the tool or weapon is used?
current:
The durability displays for a short duration after any inventory/durability change, and when selecting a new hotbar slot.
Past:
The early versions of this pack displayed the durability 100% of the time, after optimizations to avoid constantly check what item is selected i moved to using advancements to check when durability changes, and the tick function is now only checking if the players selected hotbar has changed.
Future:
So they do not stay the entire time because of performance, but if there is high demand i may re-make a version where it stays up all the time.