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: Fixed
    • 1.21.4 Pre-Release 1
    • 1.18.1, 1.18.2, 22w15a, 1.19, 1.19.2, 1.20.1, 1.20.2, 1.21.1, 24w37a
    • 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.

        1. MC-248264.mp4
          3.86 MB
          [Mod] Avoma
        2. MC-248264 - After removing ArmorItems.png
          845 kB
          [Mod] Avoma
        3. MC-248264 - Before removing ArmorItems.png
          839 kB
          [Mod] Avoma

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

              Created:
              Updated:
              Resolved:
              CHK: