mojira.dev
MC-69032

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

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.

Linked issues

MC-14006 1.62 Logged When Dismounting Minecart, Boat, or Horse Resolved MC-69715 Pigmen agressive Resolved MC-70089 Zombie pigmen spawn hostile Resolved MC-71541 Blaze fireball angers Zombie Pigmen towards player Resolved MC-76292 Zombie Pigmen attack without provocation Resolved

Attachments

Comments 129

Can confirm now!
Blaze shot a Pigmen and all of them got agressive to me.
Relogged and Pigmen were friendly again.
Previous:
I think you meant "if hit by another Mob" right?
Cannot reproduce.
I think your pigmen were aggresive before a e.g. Skelton hit them.
Then they got aggresive to the Skelton and didn´t hunt you anymore.
If you kill the Skelton they will become aggresive to the players again.
(i´m not sure but thats the only thing I can think of and reproduce)

Also unable to reproduce.

Updated with how I replicated it.

Updated the replication. Video by Gourley is also descriptive.

119 more comments

Still present in 20w19a

Confirmed for 20w20b. The zombified piglin that got attacked by the mob does not attack, but the other zombified piglins attack. So to test this bug you nees at least two zombified piglins.

Confirmed for 20w21a

Confirmed for 20w22a

Henry

[Mod] Asteraoth

migrated

Confirmed

Important

Mob behaviour

killing, zombified_piglin

Minecraft 1.8-pre1, Minecraft 1.8, Minecraft 1.8.1-pre1, Minecraft 1.8.1-pre2, Minecraft 1.8.1-pre3, ..., 20w19a, 20w20a, 20w20b, 20w21a, 20w22a

1.16 Pre-release 1

Retrieved