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

Mobs and Entities can despawn randomly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: 1.16.100.60 Beta, 1.16.100.58 Beta, 1.16.100.57 Beta, 1.16.100.56 Beta, 1.16.30.52 RTX Beta, 1.16.100.55 Beta, 1.16.100.54 Beta, 1.15.0.11 RTX Beta, 1.16.100.53 Beta, 1.16.100.52 Beta, 1.16.100.51 Beta, 1.16.100.50 Beta, 1.16.20.54 Beta, 1.16.20.52 Beta, 1.16.20.50 Beta, 1.16.0.68 Beta, 1.16.0.67 Beta, 1.16.0.66 Beta, 1.16.0.64 Beta, 1.16.0.63 Beta, 1.16.0.61 Beta, 1.16.0.60 Beta, 1.16.0.59 Beta, 1.16.0.57 Beta, 1.16.0.58 Beta, 1.16.0.55 Beta, 1.16.0.53 Beta, 1.16.0.51 Beta, 1.15.0.55 Beta, 1.15.0.51 Beta, 1.14.20 Hotfix, 1.13.1, 1.14.1 Hotfix, 1.12.0.2 Beta, 1.0.7.0, 1.1.0.55, 1.1.2.50, 1.1.3.52, 1.1.4.51, 1.1.5.0, 1.2.0.22, 1.2.0.81, 1.2.3.3, 1.2.3.6, 1.2.9.1, 1.2.10.2, 1.2.11.4, 1.2.13.10, 1.2.13.54, 1.2.13.60, 1.2.16.3, 1.4.0.5, 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)
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Platform:
      Multiple
    • ADO:
      97757, 112005, 248300

      Description

      Updated description by [Mod] 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-66818, MCPE-51837 and MCPE-16863.

      There are 2 main kinds of random mob despawns discussed in the comments below: individual mobs disappearing near chunk borders, and groups of mobs in a chunk disappearing at the same time. Both of these seem to be connected to chunk saving or loading.

      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 hourses an my animal that I feed is disappear

      Edit by [MCPE Helper] Zeb: When playing on multiplayer, entities can despawn when you travel to the Nether and back to the Overworld.

      Keep in mind that entities that have never been interacted with are SUPPOSED to despawn. When testing this bug, please make sure to interact with the entities you're observing first. If the entity ever sets you as its target, follows you, or gets fed/bred/punched/etc. by you, that counts as an interaction. Also, make sure you are actually experiencing this bug and not MCPE-1982.

      Moderator Note by [MCPE Mod] Dr.Awesome4333: Please only comment New information about the issue.

      Update on this issue:

      We are still working on a solution for this issue. Currently entities can end up being lost if they happen to be positioned on the boundary between two chunks when the game crashes. One workaround for this is to position mobs away from chunk boundaries, which can be calculated using coordinates.

        Attachments

        1. [EX] Chunk border despawn demo.mcworld
          115 kB
        2. 2017-07-01.png
          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
          A0113685-1087-4161-97FC-E7C1B54F925D.jpeg
          1.93 MB
        7. BDED736F-8E02-4616-AD94-B09E0529313C.png
          BDED736F-8E02-4616-AD94-B09E0529313C.png
          1.65 MB
        8. C5A35E2F-73D5-4425-97EA-555BB116E079.png
          C5A35E2F-73D5-4425-97EA-555BB116E079.png
          926 kB
        9. Chunk border despawn demo.mp4
          5.48 MB
        10. horse_corral.jpg
          horse_corral.jpg
          413 kB
        11. Horse.jpg
          Horse.jpg
          486 kB
        12. image-2020-09-10-16-22-17-817.png
          image-2020-09-10-16-22-17-817.png
          997 kB
        13. image-2020-09-21-15-06-24-519.png
          image-2020-09-21-15-06-24-519.png
          830 kB
        14. IMG_0122.png
          IMG_0122.png
          3.53 MB
        15. IMG_0123.png
          IMG_0123.png
          3.48 MB
        16. IMG_0137.png
          IMG_0137.png
          2.23 MB
        17. IMG_2621.PNG
          IMG_2621.PNG
          679 kB
        18. IMG_2622.PNG
          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
          library3.png
          806 kB
        22. Light levels for Rogue Cheddar despawn room.png
          Light levels for Rogue Cheddar despawn room.png
          321 kB
        23. noborder.png
          noborder.png
          803 kB
        24. NoHorse.jpg
          NoHorse.jpg
          490 kB
        25. Pigs_Despawning.png
          Pigs_Despawning.png
          1.33 MB
        26. Screenshot_20200522-195543.png
          Screenshot_20200522-195543.png
          463 kB
        27. screenshot-1.png
          screenshot-1.png
          952 kB
        28. sheep_pen.jpg
          sheep_pen.jpg
          501 kB
        29. Untitled.png
          Untitled.png
          610 kB

          Issue Links