Mojira Archive
MC-175423

Armor values are not displayed past 20

The Bug

When the player is wearing armor that gives them an "armor" value higher than 20, that is not properly displayed to the player.

Steps to Reproduce:

  1. Give the player an armor piece with an armor attribute value of 21:
    /give @p leather_chestplate[attribute_modifiers=[{type:"generic.armor",name:"generic.armor",amount:21,operation:"add_value",uuid:[I;1416253916,-2083827836,-1623441529,-1369255075],slot:"any"}]] 1
    
  2. Wear the armor piece

Observed Results:

Only 20 armor points will be displayed in the player's HUD.

Expected Results:

The armor points displayed would be more than 20.

Screenshots/Videos:

2023-10-12_21-30-20.mp4

Notes:

  1. Functionally, while the player is unable to utilize more than 20 points of armor when they are damaged, the HUD is still displaying incorrect information to the player. That being; the total armor points they have.
  2. This is inconsistent to hearts/absorbtion, which properly displays past 20 hit-points.

Unresolved

[Mod] Jiingy

Chris Walker

2020-03-20, 01:39 AM

2024-04-24, 03:05 AM

5

6

Community Consensus

UI

armor, hud

1.15.2 - 1.20.51.15.2, 20w49a, 1.20.1, 1.20.2, 23w41a, 23w46a, 1.20.3 Pre-Release 4, 1.20.3, 1.20.4, 23w51b, 24w07a, 24w12a, 1.20.5

-