mojira.dev
MC-88569

Armor slots inconsistency

The bug

Armor slots have different names for /replaceitem and the Slot tag for AttributeModifiers:

replaceitem

AttributeModifiers Slot

slot.armor.feet

feet

slot.armor.legs

legs

slot.armor.chest

torso

slot.armor.head

head

slot.weapon.mainhand

mainhand

slot.weapon.offhand

offhand

You do not have to make it more complicated than it is already...

Note: The translation for Slot:"torso" in the item description is also

When on body:

Which still only affects the chest slot

How to reproduce

Use the following commands

AttributeModifiers

/give @p dirt 1 0 {AttributeModifiers:[{Amount:0d,AttributeName:"generic.attackSpeed",Name:"Slot Name Test",Operation:0,UUIDLeast:1,UUIDMost:1,Slot:"torso"}]}

replaceitem

/replaceitem entity @p slot.armor.chest diamond_chestplate

Linked issues

Comments 1

Confirmed, but likely won't be fixed

Edit:
hm, guess I was wrong

marcono1234

michael

Confirmed

AttributeModifiers, attribute, chest, replaceitem, slot, torso

Minecraft 15w37a, Minecraft 15w44b, Minecraft 15w46a

Minecraft 15w49a

Retrieved