Iron Golems attack Zombie Pigmen, triggering Zombie Pigmen to be hostile towards players.
What I expected to happen was...:
Iron Golems used to attack Zombie Pigmen without triggering them to be hostile towards the player, this is what I expect to happen. Iron Golems should not cause Zombie Pigmen to be hostile towards players, either by them not attacking non hostile Pigmen, or by their actions not turning Pigmen against players.
What actually happened was...:
Iron Golems target Zombie Pigmen and trigger the Zombie Pigmen to be hostile towards players. And Iron Golems target specific random Zombie Pigmen, meaning they often won't even defend the player because they are too busy targetting an unreachable Zombie Pigmen.
This means that if there is a single Iron Golem in the Nether, it's impossible to not have Pigmen hostile towards the player, and cause Zombie Pigmen in the normal world to attack the player if there are multiple from gates near a village.
Note: This does not even involve player made Iron Golems, but rather Iron Golems spawned from villages.
Steps to Reproduce:
1. Have a group of Zombie Pigmen and an Iron Golem anywhere near each other.
2. Have a player near Zombie Pigmen.
3. Zombie Pigmen will attack all players forever.
Linked issues
duplicates 1
Comments 6
So, isn't this a duplicate of MC-69032?
Not sure, I know iron golems used to attack pigmen and it didn't trigger pigmen to attack the player. And I think it didn't start until much after the bug you mention started.
Iron golems are unique in that they are naturally hostile to pigmen, where as the bug you state requires the player to intervene and get a skeleton or something to attack a pigman, and then for the player to kill the skeleton. It could be the case that all that is required for the bug is that the pigmen become hostile to a mob and that mob to die (so lets say they manage to kill the iron golem or skeleton without the player killing either) and then, still being hostile but their hostile target being dead, so they remain hostile and default to the player.
So I'm not sure. I think they're unique bugs, but they could be involved somehow.
Confirmed for
1.9-pre4
Might be works by design as they are angry and are supposed to search for a new target.
Probably duplicates MC-69032
Now it only happens when the VillagerGolem dies
Confirmed.
Iron golems, both naturally spawned and player built will attack any zombie pigman they see. When attacked, the zombie pigmen ignore the iron golem and become aggressive toward the player.
Zombie pigmen can also become hostile toward the player when struck by a blaze fireball, however it doesn't always happen. Most hits do not turn them hostile but it is not uncommon for a hit to make them hostile to the player. I have not yet adequately tested this with skeleton arrows or ghast fireballs, but I believe these attacks will also sometimes make zombie pigmen turn hostile towards the player.
versions in which I have experienced these bugs: 1.8.3, 1.8.4, 1.8.5