• check_circle Advancements
  • check_circle Functions
  • check_circle Predicates
  • 81,870 views, 47 today
  • 21,130 downloads, 13 today
  • 130
  • 142
  • 26
LeonNikolai
Level 66 : High Grandmaster Procrastinator Programmer
53
A Datapack that shows the durability of items,
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

Durability Hud Minecraft Data Pack
Durability Hud Minecraft Data PackDurability Hud Minecraft Data Pack
  • 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)

  1. Download and Install the actual datapack (https://modrinth.com/datapack/durability)
  2. Download the resource pack
  3. Install and enable the resource pack
  4. run the command /trigger DurabilityHud.resourcepack
  5. Enjoy
CompatibilityMinecraft 1.21
Tags

8 Update Logs

Update #8 - 1.21.3 re-write : by LeonNikolai 11/06/2024 4:52:22 amNov 6th, 2024

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

Create an account or sign in to comment.

02/03/2021 8:48 pm
This reply was removed by the poster or a moderator.
VeltabexHD
08/31/2020 7:41 pm
Level 1 : New Explorer
Hey how do I switch to the third picture you showed?
1
LeonNikolai
09/03/2020 5:44 am
Level 66 : High Grandmaster Procrastinator Programmer
When the durability is low (less than 5 i think) it switches to that, else it shows only the numbers.
2
Atolite
08/31/2020 10:55 am
Level 2 : Apprentice System
You should do an update for armour. That aside, really cool!
1
LeonNikolai
09/03/2020 5:55 am
Level 66 : High Grandmaster Procrastinator Programmer
The problem with armor is the lack of screen space. I can extend the "actionbar" text, but then it becomes a really long string of text, unreadable.

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.
1
Shireen
07/29/2020 1:21 pm
Level 74 : Legendary Pokémon
This looks like a good pack!

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?
1
LeonNikolai
07/29/2020 6:11 pm
Level 66 : High Grandmaster Procrastinator Programmer
history

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.
2
Shireen
07/30/2020 11:41 am
Level 74 : Legendary Pokémon
Alright, thanks - I appreciate it.
1
ZigZagson0710TTV
07/20/2020 3:49 pm
Level 1 : New Miner
I use Badlion so I already have this, but I love effort.
1

Welcome