mojira.dev
MC-101051

Entering Nether through portal resets all mobs

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

Comments

kumasasa

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

A mob that has had no player within 32 blocks of it for more than 30 seconds has a 1 in 800 chance of despawning on each game tick (1/20th of a second). Therefore, the half-life of monsters not within 32 blocks of a player is 27.73 seconds (after the initial 30 seconds have elapsed).

migrated

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.

migrated

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

migrated

I don't think the bugs are related.

migrated

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.

migrated

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)

SunCat

Dupe of MC-97102

migrated

(Unassigned)

Unconfirmed

Minecraft 1.9.2

Retrieved