mojira.dev
MC-248264

/data remove can't remove ArmorItems

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.

Linked issues

Attachments

Comments 7

The second one is MC-112826.

Relates to MC-122008.

Can confirm.

Updated the ticket to only be about ArmorItems

Can confirm in 1.18.2 and 22w14a.

[media]
/data remove entity @e[type=minecraft:zombie,sort=nearest,limit=1] ArmorItems[0]

will remove all the armor from the zombie.

Can confirm in 1.19.

Can confirm in 1.19.2.

This has been fixed in 1.21.4 Pre-release 1.

Ian Jossic

(Unassigned)

Confirmed

Platform

Low

Commands

1.18.1, 1.18.2, 22w15a, 1.19, 1.19.2, 1.20.1, 1.20.2, 1.21.1, 24w37a

1.21.4 Pre-Release 1

Retrieved