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
[Mojang] Searge (Michael Stoyke)
2015-09-12, 04:07 PM
2017-02-15, 07:39 PM
2015-11-26, 04:40 PM
1
2
AttributeModifiers, attribute, chest, replaceitem, slot, torso