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

When a mob hits a zombified piglin, and that mob dies, the zombified piglins attack you

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.16 Pre-release 1
    • Minecraft 1.8-pre1, Minecraft 1.8, Minecraft 1.8.1-pre1, Minecraft 1.8.1-pre2, Minecraft 1.8.1-pre3, Minecraft 1.8.1-pre4, Minecraft 1.8.1, Minecraft 1.8.2-pre1, Minecraft 1.8.3, Minecraft 1.8.4, Minecraft 1.8.6, Minecraft 1.8.7, Minecraft 1.8.8, Minecraft 15w32c, Minecraft 15w36d, Minecraft 15w39c, Minecraft 15w49b, Minecraft 15w50a, Minecraft 16w05b, Minecraft 16w06a, Minecraft 16w07a, Minecraft 1.9 Pre-Release 3, Minecraft 1.9 Pre-Release 4, Minecraft 1.9, Minecraft 1.9.1, Minecraft 1.9.2, Minecraft 16w15b, Minecraft 1.9.3 Pre-Release 2, Minecraft 1.9.4, Minecraft 16w20a, Minecraft 1.10.2, Minecraft 16w41a, Minecraft 16w42a, Minecraft 1.11, Minecraft 1.11.2, Minecraft 17w13b, Minecraft 17w14a, Minecraft 17w18a, Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 17w45b, Minecraft 18w05a, Minecraft 18w07a, Minecraft 18w11a, Minecraft 18w20c, Minecraft 18w22c, Minecraft 1.13-pre2, Minecraft 1.13-pre5, Minecraft 1.13-pre7, Minecraft 1.13-pre8, Minecraft 1.13-pre10, Minecraft 1.13, Minecraft 18w30a, Minecraft 18w30b, Minecraft 18w31a, Minecraft 18w32a, Minecraft 18w33a, Minecraft 1.13.1-pre1, Minecraft 1.13.1-pre2, Minecraft 1.13.1, Minecraft 1.13.2-pre1, Minecraft 1.13.2, Minecraft 18w43b, Minecraft 18w45a, Minecraft 18w46a, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 19w04b, Minecraft 19w07a, Minecraft 19w08b, Minecraft 19w09a, Minecraft 19w11a, Minecraft 19w11b, Minecraft 19w12b, Minecraft 19w13a, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14.2, Minecraft 1.14.3, 1.14.4, 19w34a, 1.15.2, 20w06a, 20w07a, 20w08a, 20w09a, 20w10a, 20w11a, 20w12a, 20w13a, 20w14a, 20w15a, 20w16a, 20w17a, 20w18a, 20w19a, 20w20a, 20w20b, 20w21a, 20w22a
    • Confirmed
    • Mob behaviour
    • Important

      The bug

      Zombie pigmen can become aggressive to the player if hit by another mob (i.e. skeletons and blazes), and newly spawned pigmen (even hundreds of blocks from the incident) will spawn aggressive without provocation. They attack only the player if they're hit by a different agro'd hostile mob.

      Replicate: (In creative) Spawn a lot of pigmen (with dispenser and redstone clock), and a skeleton. (Switch to survival) the skeleton will shoot at the player, but hit a pigmen instead. Kill the skeleton, and then all of the pigmen will attack the you, regardless of whether you hit them.

      TL;DR: Any hostile mob hits zombie pigmen. You kill the hostile mob. Pigmen attack you.

      Code analysis

      This behavior might be intended, see this and this comment.

            hkniberg hkniberg
            Asteraoth [Mod] Asteraoth
            Votes:
            208 Vote for this issue
            Watchers:
            74 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: