Mojira Archive
MC-259587

Negative item durability causes the durability bar to render incorrectly

If the current durability of an item is less than zero. The durability bars starts to render backwards and can go off-screen. The more durability under zero, the longer the bar becomes.

In 1.19.3 and earlier. The durability bar would just be empty if the current durability is below zero.

Steps to Reproduce:
1. Give yourself an item that has durability (Armor, tools). With the damage tag set to a value greater than the total durability of the item.

/give @s minecraft:iron_helmet{Damage:10000}

2. Notice how the durability bar is rendering incorrectly.

Fixed

Chrisaura_

[Mojang] Maxime Lebrot

2023-01-31, 07:40 PM

2024-08-17, 11:12 AM

2023-12-12, 09:22 AM

5

4

Confirmed

Low

Platform

Commands, Items, UI

1.19.3 - 23w35a1.19.3, 23w04a, 23w05a, 23w06a, 1.19.4, 1.20.1, 23w35a

23w51a