Mojira Archive
MC-255080

Parrots imitate hostile mobs in their death animation

The bug

Parrots are designed to imitate hostile mobs like zombies or skeletons, but they also seem to continue to imitate them in their death animation. This doesn't make sense as all mobs are meant to ignore other mobs in their death animation like if a zombie and skeleton fight each other and for say the skeleton dies, the zombie will immediately lose aggro on that skeleton when in its death animation. This makes an exception for parrots as they still will imitate the hostile mob in their death animation. Parrots are meant to imitate hostile mobs as a "warning" for players and if they can imitate them in their death animation, you may just kill a creeper and your nearby parrot will imitate that creeper, making you think there might be another one nearby.

To reproduce

To replicate this, spawn a few parrots then use the following command to summon a zombie in its death state and see that the parrots will go over and imitate that zombie.

/summon zombie ~ ~ ~ {Health:0b,DeathTime:-500s}

You will hear that the parrots make a zombie groan noise and if you have subtitles on, you will see Parrot Groans.

Code analysis

Code analysis by [Mod] Avoma can be found in this comment.