I built a guardian xp farm that sends guardians to the nether to kill them with a potion of harming. However I noticed that they sometimes despawned and couldn't figure out why.
I got someone to open the portals in the overworld whilst I stayed in spectator mode in the nether and watched the guardians come flooding in. However as soon as he went came through into the nether right above the guardians they all despawned. On further testing I noticed that ALL the mobs in the nether are reset when someone enters the nether. By reset I mean that all the mobs despawn and new ones respawn around the player. There were no other players in the nether during the testing.
This bug means that any farm that sends mobs to the nether will no longer work unless someone is on the other side to prevent them from despawning.
On further testing I don't think this issue affects single player worlds. Also when I went on the server and was the only person on-line the farm worked fine.
Related issues
duplicates
Comments


No they are about 26 blocks away and like I said EVERY mob in the nether despawns in that area and new ones respawn around the player following normal mob spawning algorithms the instant a player enters the nether. The guy testing it with me hit a pigman then went back to the overworld (I remained in spectator mode). All the mobs remained in the nether in exactly the same position they were before he left. The moment he reentered the nether the pigman that was standing right by the portal despawned as did every other mob and new ones spawned. Then the pigmen were no longer agro.

I have not tried to repro this, but I can imagine that MC-89928 could cause this.

I don't think the bugs are related.

Well they could be, due to the sheer distance between the old and correct coordianted, the mobs might already despawn from that.
Marking as related.

I think one could determine if it's causal by seeing if it does not repro with a portal at 0,0 but does repro at a portal that's about 140 blocks from spawn (so the temporary bad coordinates would be > 128 blocks away for insta-despawn but also within render distance in a default-10-chunk server)

Dupe of MC-97102
Are the mobs more than 32 blocks away from the entering portal ?
See http://minecraft.gamepedia.com/Spawn#Despawning