Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-259587

Negative item durability causes the durability bar to render incorrectly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 23w51a
    • 1.19.3, 23w04a, 23w05a, 23w06a, 1.19.4, 1.20.1, 23w35a
    • None
    • Confirmed
    • Commands, Items, UI
    • Low
    • Platform

      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.

            Fantastime [Mojang] Maxime Lebrot
            Chrisaura_ Chrisaura_
            Votes:
            5 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: