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
/give @p dirt 1 0 {AttributeModifiers:[{Amount:0d,AttributeName:"generic.attackSpeed",Name:"Slot Name Test",Operation:0,UUIDLeast:1,UUIDMost:1,Slot:"torso"}]}
/replaceitem entity @p slot.armor.chest diamond_chestplate
Created Issue:
Armor slots inconsistency
These are the kind of bugs that make things so extreme complicated when working with commands. Can't you just use contants that describe the slots?
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
These are the kind of bugs that make things so extreme complicated when working with commands. Can't you just use contants that describe the slots?
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
These are the kind of bugs that make things so extreme complicated when working with commands. Can't you just use contants that describe the slots?
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
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
A comment with security level 'global-moderators' was removed.
A comment with security level 'global-moderators' was removed.
relates to
Invalid : The Slot value "torso" has been replaced by "chest" (see MC-88569). Then, your UUIDMost and UUIDLeast must not be 0, and they must be different, (see comment on MC-16466)
Here is a fixed command :
/give @p minecraft:elytra 1 0 {AttributeModifiers:[{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:0.2,Operation:0,UUIDLeast:1L,UUIDMost:1L,Slot:"chest"},{AttributeName:"generic.armor",Name:"generic.armor",Amount:10,Operation:0,UUIDLeast:1L,UUIDMost:2L,Slot:"chest"},{AttributeName:"generic.attackSpeed",Name:"generic.attackSpeed",Amount:0.6,Operation:0,UUIDLeast:1L,UUIDMost:3L,Slot:"chest"}],display:{Name:"Flight Wings",Lore:["When Equipped, You Can Fly Infinitely!"]},ench:[{id:0,lvl:5},{id:4,lvl:3},{id:7,lvl:3},{id:34,lvl:10}]}
Confirmed,
but likely won't be fixedEdit:
hm, guess I was wrong