mojira.dev
MC-167972

Durability bar display error at negative durability

The Bug

In 1.15, If the durability of the item is lower than 0 (negative number), the condition on the picture will be displayed

[media]

In 1.14.4, items below 0 durability will show the same durability bar as 0 durability

[media]

How to Reproduce

Give yourself an item with negative durability, e.g.

/give @s minecraft:golden_axe{Damage: 114548}

Linked issues

Attachments

Comments 6

Changed the images in the Description to thumbnail, and add a command to help reproduce. Hope you will be fine with this.

SPGoding, I got a golden sword from Piglin with a strength of 0. What should I do with it ???

Cannot reproduce in 20w21a.

Cannot reproduce in 1.16 Pre-release 2.

Cannot reproduce in the current release.

Can still reproduce in 23w35a with the following command:

/give @s golden_pickaxe{Damage:2147483647}
[media]

nightsnowlin

(Unassigned)

Confirmed

Low

Rendering, UI

1.15, 1.15.1, 1.15.1 Pre-release 1, 1.15.2 Pre-Release 1, 1.15.2

Retrieved