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

/data remove can't remove ArmorItems

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.18.1, 1.18.2, 22w15a, 1.19, 1.19.2, 1.20.1, 1.20.2
    • None
    • Confirmed
    • Commands
    • Low
    • Platform

      How to reproduce

      1. Summon an zombie with diamond armour with
        /summon minecraft:zombie ~ ~ ~ {ArmorItems:[{id:"minecraft:diamond_boots",Count:1},{id:"minecraft:diamond_leggings",Count:1},{id:"minecraft:diamond_chestplate",Count:1},{id:"minecraft:diamond_helmet",Count:1}]}
        
      2. Try to remove the armour with
        /data remove entity @e[type=minecraft:zombie,sort=nearest,limit=1] ArmorItems
        

        and see that it does not work.

      3. However, removing only the helmet with
        /data remove entity @e[type=minecraft:zombie,sort=nearest,limit=1] ArmorItems[3]
        

        does work.

            Unassigned Unassigned
            MCjossic Ian Jossic
            Votes:
            9 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              CHK: