mojira.dev
MC-264545

When a mob spawn with armor, use command to replace it with air at the same tick, the armor still display

Example:
Place a repeating command block with this command:
/item replace entity @e[type=zombie] armor.head with air
Active it, then run this command:
/summon zombie ~ ~ ~ {ArmorItems:[{},{},{},{id:"minecraft:iron_helmet",Count:1b}]}
A zombie wearing iron helmet will appear, but if you check its data:
/data get entity <uuid of that zombie> ArmorItems
The command will return this:
Zombie has the following entity data: [{}, {}, {}, {}]

Linked issues

Attachments

Comments 2

Duplicate of MC-197737 (as stated in comments there, armor too; report was just not changed to reflect that).

Thank you for your report!
We're tracking this issue in MC-197737, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

yangsy56302

(Unassigned)

Unconfirmed

(Unassigned)

1.20.1

Retrieved