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

Durability bar can appear empty even if the item still has remaining uses

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.1, 23w35a, 1.20.2 Pre-release 1, 1.20.2 Pre-release 2, 1.20.2
    • None
    • Confirmed
    • UI
    • Normal
    • Platform

      The bug

      The durability bar used by damageable items can appear completely empty even in cases where it has remaining uses.

      I consider this to be an issue for much the same reason as MC-120664 was fixed: empty durability should imply the tool is no longer usable at all, rather than having a tiny pool of residual uses.

      How to reproduce

      Have an item, preferably one with high base durability, that is a small matter of uses (greater than one) from breaking.

      Expected results

      As the item can still be used, the durability bar should appear at its lowest level, but not empty (i.e. one red pixel). Empty durability bars should only be used if the durability is 0 or a negative number.

      Actual results

      The tool can still be used even when the durability bar looks empty, even though this logically doesn't make much sense.

      Code analysis

      Code analysis by LegoEmmetMC can be found in this comment.

            Unassigned Unassigned
            Awesoman3000 Connor Steppie
            Votes:
            5 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              CHK: