/data remove can't remove ArmorItems
How to reproduce
- 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}]} - 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.
- However, removing only the helmet with
/data remove entity @e[type=minecraft:zombie,sort=nearest,limit=1] ArmorItems[3]
does work.
Linked Issues
relates to5
Created Issue:
Highly inconsistent behaviour in /data remove
How to reproduce
- Summon an zombie with diamond armour with {{/summon minecraft:zombie ~ ~ ~
Unknown macro: {ArmorItems}}}
- 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.
- However, removing only the helmet with /data remove entity @e[type=minecraft:zombie,sort=nearest,limit=1] ArmorItems[3] _does _work.
Alternatively:
- Summon a villager with some wheat seeds in his inventory with {{/summon minecraft:villager ~ ~1 ~
Unknown macro: {Inventory}}}
- Try to remove his entire inventory with /data remove entity @e[type=minecraft:villager,sort=nearest,limit=1] Inventory, then check his inventory with /data get entity @e[type=minecraft:villager,sort=nearest,limit=1] Inventory to see that he still has the seeds.
- Try to remove only the first item in his inventory with /data remove entity @e[type=minecraft:villager,sort=nearest,limit=1] Inventory[0] and check his inventory (with the same command as before) to see that he still has the seeds.
How to reproduce
- Summon an zombie with diamond armour with {{/summon minecraft:zombie ~ ~ ~
Unknown macro: {ArmorItems}}}
- 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.
- However, removing only the helmet with /data remove entity @e[type=minecraft:zombie,sort=nearest,limit=1] ArmorItems[3] _does
_work.Alternatively:
- Summon a villager with some wheat seeds in his inventory with {{/summon minecraft:villager ~ ~1 ~
Unknown macro: {Inventory}}}
- Try to remove his entire inventory with /data remove entity @e[type=minecraft:villager,sort=nearest,limit=1] Inventory, then check his inventory with /data get entity @e[type=minecraft:villager,sort=nearest,limit=1] Inventory to see that he still has the seeds.
- Try to remove only the first item in his inventory with /data remove entity @e[type=minecraft:villager,sort=nearest,limit=1] Inventory[0] and check his inventory (with the same command as before) to see that he still has the seeds.
How to reproduce
- Summon an zombie with diamond armour with
{{/summon minecraft:zombie ~ ~ ~Unknown macro: {ArmorItems}}}
- 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.
- However, removing only the helmet with
/data remove entity @e[type=minecraft:zombie,sort=nearest,limit=1] ArmorItems[3] _does_work.Alternatively:
- Summon a villager with some wheat seeds in his inventory with
{{/summon minecraft:villager ~ ~1 ~Unknown macro: {Inventory}}}
- Try to remove his entire inventory with /data remove entity @e[type=minecraft:villager,sort=nearest,limit=1] Inventory
, then check hisinventory with /data get entity @e[type=minecraft:villager,sort=nearest,limit=1] Inventoryto see that he still has the seeds.
- Try to remove only the first item in his inventory with
/data remove entity @e[type=minecraft:villager,sort=nearest,limit=1] Inventory[0]and check his inventory (with the same command as before) to see that he still has the seeds.
How to reproduce
- 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}]}- Try to remove the armour with
/data remove entity @e[type=minecraft:zombie,sort=nearest,limit=1] ArmorItemsand see that it does not work.
- However, removing only the helmet with
/data remove entity @e[type=minecraft:zombie,sort=nearest,limit=1] ArmorItems[3]does work.
Alternatively:
- Summon a villager with some wheat seeds in his inventory with
/summon minecraft:villager ~ ~1 ~ {Inventory:[{id:"minecraft:wheat_seeds",Count:8}]}- Try to remove his entire inventory with
/data remove entity @e[type=minecraft:villager,sort=nearest,limit=1] Inventory, then check his inventory with
/data get entity @e[type=minecraft:villager,sort=nearest,limit=1] Inventoryto see that he still has the seeds.
- Try to remove only the first item in his inventory with
/data remove entity @e[type=minecraft:villager,sort=nearest,limit=1] Inventory[0]and check his inventory (with the same command as before) to see that he still has the seeds.
relates to
How to reproduce
- 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}]}- Try to remove the armour with
/data remove entity @e[type=minecraft:zombie,sort=nearest,limit=1] ArmorItemsand see that it does not work.
- However, removing only the helmet with
/data remove entity @e[type=minecraft:zombie,sort=nearest,limit=1] ArmorItems[3]does work.
Alternatively:
- Summon a villager with some wheat seeds in his inventory with
/summon minecraft:villager ~ ~1 ~ {Inventory:[{id:"minecraft:wheat_seeds",Count:8}]}- Try to remove his entire inventory with
/data remove entity @e[type=minecraft:villager,sort=nearest,limit=1] Inventory, then check his inventory with
/data get entity @e[type=minecraft:villager,sort=nearest,limit=1] Inventoryto see that he still has the seeds.
- Try to remove only the first item in his inventory with
/data remove entity @e[type=minecraft:villager,sort=nearest,limit=1] Inventory[0]and check his inventory (with the same command as before) to see that he still has the seeds.
How to reproduce
- 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}]}
- Try to remove the armour with
/data remove entity @e[type=minecraft:zombie,sort=nearest,limit=1] ArmorItemsand see that it does not work.
- However, removing only the helmet with
/data remove entity @e[type=minecraft:zombie,sort=nearest,limit=1] ArmorItems[3]does work.
Highly inconsistent behaviour in /data remove/data remove can't remove ArmorItmes
/data remove can't remove ArmorItmes/data remove can't remove ArmorItems
How to reproduce
- 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}]}
- Try to remove the armour with
/data remove entity @e[type=minecraft:zombie,sort=nearest,limit=1] ArmorItemsand see that it does not work.
- However, removing only the helmet with
/data remove entity @e[type=minecraft:zombie,sort=nearest,limit=1] ArmorItems[3]does work.
How to reproduce
- 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}]}- Try to remove the armour with
/data remove entity @e[type=minecraft:zombie,sort=nearest,limit=1] ArmorItemsand see that it does not work.
- However, removing only the helmet with
/data remove entity @e[type=minecraft:zombie,sort=nearest,limit=1] ArmorItems[3]does work.
relates to
relates to


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. MC-248264.mp4
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.