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

When a mob hits a pigman, and that mob dies, the pigmen attack you

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: 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
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      Mob behaviour
    • Mojang Priority:
      Important

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Asteraoth [Mod] Asteraoth
              • Votes:
                168 Vote for this issue
                Watchers:
                69 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: