What do you want done?
Giving datapack creators a way to add fake durability bars or hide them on items trough modifying nbt data.
Why do you want something done?
It is currently impossible to add a durability bar to any item that does not have durability or remove one from one that does.
Within the latest snapshot, (24w09a), the nbt data of items were overhauled, and many new tags that could modify the look of items were added, one of them is "minecraft:enchantment_glint_override", which can hide the glint on enchanted items and add them on unenchanted items. This I believe is a great opportunity to add one for durability.
How do you want something done?
Now, a little disclaimer here, I am not super familiar with the code of minecraft, so I am bound to get some things wrong.
But I believe this would be as simple as adding a similar tag to the enchantment glint override (something like "minecraft:durability_bar_override"), which could hide the durability bar on items with one, or have an item without one render a fake durability bar using the already existing "minecraft:damage" tag and another tag (like "minecraft:max_damage"), which would determine the "full" durability of the item. This tag could also give items with actual durability more uses before breaking.
But I believe this would be as simple as adding a similar tag to the enchantment glint override (something like "minecraft:durability_bar_override"), which could hide the durability bar on items with one, or have an item without one render a fake durability bar using the already existing "minecraft:damage" tag and another tag (like "minecraft:max_damage"), which would determine the "full" durability of the item. This tag could also give items with actual durability more uses before breaking.
The fake durability would not affect items in any way, and would only be a visual change.
Please sign in to leave a comment.
3 Comments