Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-255080

Parrots imitate hostile mobs in their death animation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19.2, 22w42a, 22w43a, 22w44a, 22w45a, 22w46a, 1.19.3 Pre-release 2, 1.19.3 Release Candidate 1, 1.19.3, 23w03a, 1.19.4 Pre-release 1, 1.19.4 Pre-release 3, 1.19.4, 23w12a, 23w13a, 23w14a, 23w16a, 23w17a, 23w18a, 1.20 Pre-release 1, 1.20 Pre-release 2, 1.20 Pre-release 4, 1.20 Pre-release 5, 1.20 Pre-release 6, 1.20 Pre-release 7, 1.20 Release Candidate 1, 1.20, 1.20.1, 23w31a, 1.20.2, 23w41a, 23w43b, 23w44a, 23w46a, 1.20.3 Pre-Release 2, 1.20.3 Pre-Release 4, 1.20.4, 23w51b, 24w03b, 24w04a, 24w06a, 24w07a, 24w09a, 24w10a, 24w11a, 24w12a, 1.20.5 Pre-Release 2, 1.20.5 Release Candidate 2
    • None
    • Confirmed
    • Mob behaviour, Sound
    • Low
    • Gameplay

      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 Avoma can be found in this comment.

        1. MC-255080.mp4
          6.17 MB
        2. MC-255080.png
          MC-255080.png
          2.11 MB
        3. MC-255080 - Current Code.png
          MC-255080 - Current Code.png
          55 kB
        4. MC-255080 - Fixed Code.png
          MC-255080 - Fixed Code.png
          55 kB
        5. Parrots Immitating Zombie in Death Animation.png
          Parrots Immitating Zombie in Death Animation.png
          152 kB

            Unassigned Unassigned
            matthewdog6 Matthew
            Votes:
            6 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              CHK: