Mojira Archive
MC-280215

Attribute armor

I applied netherite armor values to trimed gold armor via these commands:

  1. /give @p golden_helmet[trim={material:"minecraft:redstone",pattern:"minecraft:silence"},attribute_modifiers=[\{id:"armor",type:"armor",amount:3,operation:"add_value",slot:"head"},\{id:"armor_toughness",type:"armor_toughness",amount:3,operation:"add_value",slot:"head"},\{id:"knockback_resistance",type:"knockback_resistance",amount:1,operation:"add_value",slot:"head"},\{id:"block_interaction_range",type:"block_interaction_range",amount:1,operation:"add_value",slot:"head"},\{id:"entity_interaction_range",type:"entity_interaction_range",amount:1,operation:"add_value",slot:"head"}],custom_name='{"bold":true,"color":"#FCF400","text":"H","underlined":true},{"color":"#FCE300","text":"e"},{"color":"#FCD100","text":"l"},{"color":"#FDC000","text":"m"},{"color":"#FDAE00","text":"e"},{"color":"#FD9D00","text":"t "},{"color":"#FD8B00","text":"o"},{"color":"#FE7A00","text":"f "},{"color":"#FE6900","text":"W"},{"color":"#FE5700","text":"i"},{"color":"#FE4600","text":"s"},{"color":"#FE3400","text":"d"},{"color":"#FF2300","text":"o"},{"color":"#FF0000","text":"m"}',enchantments={levels:{"minecraft:protection":4,"minecraft:thorns":3,"minecraft:aqua_affinity":1,"minecraft:respiration":3,"minecraft:mending":1,"minecraft:unbreaking":3}},max_damage=408] 1
  2. /give @p golden_leggings[trim={material:"minecraft:redstone",pattern:"minecraft:silence"},attribute_modifiers=[\{id:"armor",type:"armor",amount:6,operation:"add_value",slot:"legs"},\{id:"armor_toughness",type:"armor_toughness",amount:3,operation:"add_value",slot:"legs"},\{id:"knockback_resistance",type:"knockback_resistance",amount:1,operation:"add_value",slot:"legs"},\{id:"movement_speed",type:"movement_speed",amount:0.3,operation:"add_multiplied_base",slot:"legs"}],custom_name='{"bold":true,"color":"#FCF400","text":"L","underlined":true},{"color":"#EFF50D","text":"e"},{"color":"#E1F51B","text":"g"},{"color":"#D4F628","text":"g"},{"color":"#C7F636","text":"i"},{"color":"#BAF743","text":"n"},{"color":"#ACF751","text":"g"},{"color":"#9FF85E","text":"s "},{"color":"#92F96B","text":"o"},{"color":"#85F979","text":"f "},{"color":"#77FA86","text":"S"},{"color":"#6AFA94","text":"w"},{"color":"#5DFBA1","text":"i"},{"color":"#50FCAE","text":"f"},{"color":"#42FCBC","text":"t"},{"color":"#35FDC9","text":"n"},{"color":"#28FDD7","text":"e"},{"color":"#1BFEE4","text":"s"},{"color":"#00FFFF","text":"s"}',enchantments={levels:{"minecraft:protection":4,"minecraft:thorns":3,"minecraft:swift_sneak":3,"minecraft:mending":1,"minecraft:unbreaking":3}},max_damage=556] 1
  3. /give @p golden_boots[trim={material:"minecraft:redstone",pattern:"minecraft:silence"},attribute_modifiers=[\{id:"armor",type:"armor",amount:3,operation:"add_value",slot:"feet"},\{id:"armor_toughness",type:"armor_toughness",amount:3,operation:"add_value",slot:"feet"},\{id:"knockback_resistance",type:"knockback_resistance",amount:1,operation:"add_value",slot:"feet"},\{id:"water_movement_efficiency",type:"water_movement_efficiency",amount:1.3,operation:"add_value",slot:"feet"}],enchantments={levels:{"minecraft:feather_falling":4,"minecraft:protection":4,"minecraft:thorns":3,"minecraft:soul_speed":3,"minecraft:mending":1,"minecraft:unbreaking":3}},custom_name='{"bold":true,"color":"#00FFFF","text":"B","underlined":true},{"color":"#09EFFF","text":"o"},{"color":"#11DFFF","text":"o"},{"color":"#1ACFFF","text":"t"},{"color":"#22BFFF","text":"s "},{"color":"#2BAFFF","text":"o"},{"color":"#339FFF","text":"f "},{"color":"#3C8FFF","text":"l"},{"color":"#4480FF","text":"o"},{"color":"#4D70FF","text":"s"},{"color":"#5560FF","text":"t "},{"color":"#5E50FF","text":"S"},{"color":"#6640FF","text":"o"},{"color":"#6F30FF","text":"u"},{"color":"#7720FF","text":"l"},{"color":"#8800FF","text":"s"}',max_damage=482] 1
  4. /give @p elytra[attribute_modifiers=[\{id:"armor",type:"armor",amount:8,operation:"add_value",slot:"chest"},\{id:"armor_toughness",type:"armor_toughness",amount:3,operation:"add_value",slot:"chest"},\{id:"knockback_resistance",type:"knockback_resistance",amount:1,operation:"add_value",slot:"chest"},\{id:"safe_fall_distance",type:"safe_fall_distance",amount:5,operation:"add_value",slot:"chest"}],enchantments={levels:{"minecraft:thorns":3,"minecraft:mending":1,"minecraft:unbreaking":3}},custom_name='{"bold":true,"color":"#8800FF","text":"M","underlined":true},{"color":"#7900FF","text":"a"},{"color":"#6A00FF","text":"g"},{"color":"#5B00FF","text":"e "},{"color":"#4C00FF","text":"W"},{"color":"#3C00FF","text":"i"},{"color":"#2D00FF","text":"n"},{"color":"#1E00FF","text":"g"},{"color":"#0000FF","text":"s"}',unbreakable={}] 1

 

 

But the armor bar didn't show the correct amount of armor, and I took more damage when hit as I did when wearing the equivalent of netherite armor. If I put on the helmet, the armorbar shows the correct amount of armor. But Once I put on another piece of armor, the armor bar only shows the armor value of the last equipped piece. If any of the pieces is unequipped, the armor bar disappears, even if the other pieces are still equipped (screenshots).

Unresolved

KingEnte03

2025-02-09, 07:04 PM

2025-02-09, 07:06 PM

0

0

Unconfirmed

(Unassigned)

Amor, AttributeModifiers, armor, attribute, attributes

1.21.4

-