Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-88569

Armor slots inconsistency

XMLWordPrintable

    • Confirmed

      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
      

            searge [Mojang] Searge (Michael Stoyke)
            marcono1234 [Mod] Marcono1234
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: