mojira.dev
MC-272602

Items with custom attributes do not display armor stats correctly

Steps to reproduce:

 

1) Obtain 2 custom items with custom armor attributes with commands.

/give @p minecraft:iron_helmet[attribute_modifiers=[{id:"generic.armor",type:"generic.armor",amount:10,operation:"add_value",slot:"head"}]] 1
/give @p minecraft:iron_chestplate[attribute_modifiers=[{id:"generic.armor",type:"generic.armor",amount:10,operation:"add_value",slot:"chest"}]] 1

 

2) Equip custom armor.

 

3) Armor stats do not display properly. (area above hearts, see image.)

 

Attachments

Comments 1

You need to provide different IDs for the two attribute modifiers for both to take effect.

WeswePengu

(Unassigned)

Unconfirmed

(Unassigned)

1.21 Pre-Release 1

Retrieved