The bug
Armor slots have different names for /replaceitem
and the Slot
tag for AttributeModifiers
:
|
|
---|---|
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
Confirmed,
but likely won't be fixedEdit:
hm, guess I was wrong