Despawning

Despawning occurs to any mob after it has spawned into the world. If Despawning did not occur many of the maximum amount of active mobs would be far away have not died yet. Despawning happens after a random timer[citation needed]. Despawning is less likely to happen when a mob is in an immediade premisis of the player[citation needed]. Sometimes mobs visibly despawn before the player.