Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-21416

Mobs and Entities can despawn randomly


    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Preview, Preview, Preview, 1.18.32, Preview, Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, 1.17.11 Hotfix, Beta, Beta, Beta, 1.17.10, Beta, Beta, 1.17.1 Hotfix, Beta, Beta, Beta, Beta, 1.16.220, Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, RTX Beta, Beta, Beta, RTX Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, Beta, 1.14.20 Hotfix, 1.13.1, 1.14.1 Hotfix, Beta,,,,,,,,,,,,,,,,,,, 1.6.1, 1.8.1, 1.11.1, 1.11.2, 1.11.4, 1.12.1, 1.13.0, 1.14.30 Hotfix, 1.14.60 Hotfix, 1.16.0, 1.16.1, 1.16.10, 1.16.21, 1.16.20, 1.16.50 Hotfix (iOS), 1.16.40 Hotfix, 1.16.61 (PS4), 1.16.100, 1.16.101 Hotfix, 1.16.200, 1.16.201 Hotfix, 1.16.210, 1.16.221 Hotfix, 1.17.0, 1.17.2 Hotfix, 1.17.30, 1.17.32, 1.17.33, 1.17.34, 1.17.40, 1.17.41 Hotfix, 1.18.0, 1.18.1 Hotfix, 1.18.2 Hotfix, 1.18.10, 1.18.12 Hotfix, 1.18.30, 1.18.31, 1.19.2 Hotfix, 1.19.10, 1.19.11 Hotfix, 1.19.22 Hotfix, 1.19.30, 1.19.31 Hotfix, 1.19.40, 1.19.41, 1.19.51, 1.19.60, 1.19.63, 1.19.71, 1.19.72, 1.19.80, 1.19.81 Hotfix, 1.20.12 Hotfix, 1.20.14 Hotfix, 1.20.30, 1.20.31 Hotfix, 1.20.32 Hotfix, 1.20.41 Hotfix, 1.20.71 Hotfix, 1.20.73 Hotfix, 1.20.80, Preview, 1.20.81 Hotfix, 1.21.1 Hotfix, 1.21.2 Hotfix
    • Confirmed
    • Multiple
    • 97757, 112005, 248300

      Update November 2021

      We are tracking an issue with all or nearly all mobs in the area around the player vanishing when the world is reloaded in versions 1.17.30 through 1.18.2 Hotfix at MCPE-144208. Please do not comment here if that describes your experience.

      Moderator Note by DrAwesome4333 and GoldenHelmet

      Please limit comments to New information about the issue. A short list of what is most helpful and what is not is listed below. Please take the time to read this brief list before commenting.

      A list of mobs you have lost is not helpful information. We know this bug can impact any mob, we know that leashed mobs that despawn will leave behind a leash knot, and we know that when villagers despawn their beds and workstations remain linked to the missing villager until you break them or 20 minutes pass. What might be helpful are details about things like

      • what you were doing leading up to the mobs disappearing
      • single vs. multiplayer, local vs server/realm
      • how far you traveled
      • how long the current or previous play session lasted
      • whether the despawns were near a player spawn point or if you had changed your player spawn point during the session,
      • if you experienced lag or anything else abnormal.
      Workaround (updated Dec. 5, 2020)

      Some cases of persistent mobs despawning can be traced to them crossing chunk borders between saves, so one way to guard against randomly losing mobs is to prevent them from crossing chunk borders (you can read about finding chunk borders on the wiki). However, this is not a guarantee or a fix. Positioning mobs away from chunk borders does not mean you will never lose a persistent mob again. Many cases of mobs randomly despawning remain unexplained by the tracker staff and player community.

      Updated description by GoldenHelmet July 22, 2020
      This ticket is used as parent for all otherwise unexplained mob disappearances. It covers mobs disappearing related to nether portal travel, long distance single-dimension travel, crashes, realm lag, and any other circumstance, except for the specific circumstances covered by MCPE-88322, MCPE-66818, MCPE-51837, MCPE-16863, and MCPE-108568, MCPE-141539, and MCPE-144208.

      Some random mob despawns can be explained by the mobs crossing chunk borders between auto-saves. Other random mob despawns are reported for mobs that were unable to cross chunk borders.

      I have attached a test world that can be used to reproduce despawning on chunk borders due to a crash with the following steps to reproduce:

      1. Load [EX] Chunk border despawn demo.mcworld.
      2. Press the button to spawn a villager.
      3. Save & quit, then reload, to confirm that the the villager is kept in the world save.
      4. Open the world, flip the lever, and start a stopwatch.
      5. After about 10-15 seconds, close Minecraft without exiting the world (for example, in Windows 10 press alt-F4).
      6. Reopen Minecraft and reopen the test world.

      Expected result

      The villager is still present.

      Actual result

      Sometimes the villager will be gone. I estimate this occurs about once out of 20 attempts. You can see the entire sequence in Chunk border despawn demo.mp4.

      What happens when the villager disappears is that sometime between flipping the lever and force-closing the game, the chunk in which the player is located gets auto-saved and the chunk to the right does not. You can verify this by observing that a honey block is also missing--the fact it was pushed out of the left chunk by the piston is saved, but the fact it was pushed into the right chunk is not.

      Original description
      When I go to Nether and I went back my horses an my animal that I feed is disappear

      Edit by SuperGeniusZeb: When playing on multiplayer, entities can despawn when you travel to the Nether and back to the Overworld.

      Keep in mind that naturally-spawned monsters and animals that have never been interacted with are SUPPOSED to despawn. When testing this bug, please make sure to interact with monsters or animals you're observing first, by tempting them with food, breeding, or name-tagging them. This is not necessary for villagers or iron golems.

        1. [EX] Chunk border despawn demo.mcworld
          115 kB
        2. 2017-07-01.png
          423 kB
        3. 2017-07-01 (1).png
          2017-07-01 (1).png
          703 kB
        4. 2017-07-01 (2).png
          2017-07-01 (2).png
          106 kB
        5. 2018-05-12 16.21.12.png
          2018-05-12 16.21.12.png
          2.01 MB
        6. A0113685-1087-4161-97FC-E7C1B54F925D.jpeg
          1.93 MB
        7. BDED736F-8E02-4616-AD94-B09E0529313C.png
          1.65 MB
        8. C5A35E2F-73D5-4425-97EA-555BB116E079.png
          926 kB
        9. Chunk border despawn demo.mp4
          5.48 MB
        10. horse_corral.jpg
          413 kB
        11. Horse.jpg
          486 kB
        12. image-2020-09-10-16-22-17-817.png
          997 kB
        13. image-2020-09-21-15-06-24-519.png
          830 kB
        14. IMG_0122.png
          3.53 MB
        15. IMG_0123.png
          3.48 MB
        16. IMG_0137.png
          2.23 MB
        17. IMG_2621.PNG
          679 kB
        18. IMG_2622.PNG
          988 kB
        19. library 1.png
          library 1.png
          691 kB
        20. library 2.png
          library 2.png
          754 kB
        21. library3.png
          806 kB
        22. Light levels for Rogue Cheddar despawn room.png
          Light levels for Rogue Cheddar despawn room.png
          321 kB
        23. Minecraft 6_29_2020 11_01_23 PM.png
          Minecraft 6_29_2020 11_01_23 PM.png
          1.13 MB
        24. noborder.png
          803 kB
        25. NoHorse.jpg
          490 kB
        26. Pigs_Despawning.png
          1.33 MB
        27. Screenshot_20200522-195543.png
          463 kB
        28. screenshot-1.png
          952 kB
        29. sheep_pen.jpg
          501 kB
        30. Untitled.png
          610 kB