The bug
When I log into a world and go into the nether and hit a pigman, they all come and attack me. but then, when I die and go back into the nether, the attacking pigmen keep attacking me along with newly-generated ones. This is a huge problem because in survival I cannot go into the nether without being ambushed by pigmen.
Explanation
by @unknown
On video
[media], We are tracking the pigmen Anger
data value. Value is initially 0 until you attack a pigman, then the value is set at 800 and decrease at tick speed. The issue happens because the anger value for each pigman is continuously built up by other pigmen spreading their anger, which leads to eventually never reach 0. This issue only persists if the pigmen continue to naturally spawn and despawn, as with normal survival gameplay. The old ones seem to spread this value to the new ones until they despawn and so on, making this a entire way to maintain this process forever.
Linked issues
is duplicated by 47
relates to 2
Attachments
Comments 76
i stood next to multiple zombie pigmen upwards of 2 hours on our 1.14 server and they would not lose aggression, it took over a week of messing around until we finally got them to forgive us
Confirmed, this is also happening on our server (1.14). I recently built a rail spanning 1100 blocks in the nether and encounter a few groups of Zombie Pigmen along the way. The areas I chose to kill the pigmen have not lost agro. When spending hours in the overworld (or other areas of the nether) and then returning to those areas the pigmen auto-agro without further engagement. This only happens for the areas I agro'd the pigmen. Other areas along the span of the 1100 blocks the pigmen are neutral. Other members of the server have confirmed this is all the case for them. If "Zombie pigmen are meant to stay hostile for 20 to 39.95 seconds" then that is not happening. I have even tried to kite them for minutes (without hitting them) to see if they will de-agro. They will not return to neutral.
Can confirm for 1.14. I have tried the method of escaping their aggro range and something weird happens. It seems to work for a couple seconds but the pigmen will aggro that are WAY out of the original range. I have also tried building up a few blocks and built a cage around me and sat for an hour. Didn't change anything.
Definitely seems like a bug and the "Zombie pigmen are meant to stay hostile for 20 to 39.95 seconds" is just not happening for me. This does not seem as a "Works as intended" either because it doesn't matter if they despawn. Newly spawned pigmen will aggro me no matter what.
It is nearly impossible to go ANYWHERE in the Nether.
Edit: Confirmed for 1.14.1. My more concrete test of this issue is I sprinted 500 blocks away from where the pigmen were tracking me. Obviously they stopped tracking after around I got around 40 blocks away. What should happen is that these new pigmen will stay neutral until hit. What instead happens is when I enter the area of these new pigmen, they are peaceful for up to a minute. Then seemingly-randomly they all get aggressive towards me. The "bug" seems to be that newly spawned pigmen that are out of the "aggro range" will randomly get aggressive towards you.
This issue occurred on a server I'm playing on.
An ALTERNATE WORKAROUND is to properly use a Potion of Invisibility (maybe more than one) and visit the nether with all armor and weapons removed (in fact I went in with just food and torches).
Make sure you don't bump against the mobs. Maybe hide in a corner or crybox until the potion runs out. Since the mobs can't see any players but are loaded the timer will actually expire.
The work-around I have found for this is to enter the nether in creative mode (if you're on a server, have an admin do it). I then reloaded the chunks and went back into survival. Unlike despawning (which doesn't seem to change the anger status) or entering peaceful mode (also just despawning the mobs), creative seems to force the anger to be reset (mobs present but non-aggressive). I have not had aggro issues since, nor have the other players on the server. Although this would obviously have to be repeated any time someone hits a zombie pigman, it seems to be a pretty solid repair for the specific instance of the issue when it happens.
@QueenDarkLady this has been resolved in the 1.14.3 release. Pigmen no longer work the way they did before 1.14, but at least they don't stay permanently angry/passing anger to every other pigman in range eternally.
My realms server in 1.14.4 has this issue of pigmen passing agro endlessly even after they kill you and if you are in the nether with a player that hits a pigman they will go after you if that player goes through a portal
This is a "Works as Intended".
Pigmen have an anger NBT data tag. You need to wait for them to despawn (don't go into the nether portal right away), or for their anger to go away. You can do this by building up a couple of blocks so they can't hit you.
Unless you can provide further info on why it's a bug...your description is just a regular feature of MC.