mojira.dev
MC-299770

Chunks loaded by ender pearls permanently unload upon player death even when enderPearlsVanishOnDeath is set to false

This bug is related to MC-289348, as it gets the ender pearl in a bugged state where they no longer load chunks at all even when the player associated with it is online. (the pearl gets deloaded).

What happens is the pearl is temporarily not loading chunks when the player is dead. If you don’t rapidly respawn (click the respawn button within 2 seconds after death) the chunk the pearl is within will deload. And not reload when you respawn (which would be expected, as pearls should load chunks.). The only way to get the pearl to load these chunks again is to manually load them by walking to the chunk.

When enderPearlsVanishOnDeath is set to false, pearls still vanish on death. They just reappear when you respawn. A simple fix to this bug would be to make sure pearls continue to load the chunk they are in when they are in this temporary vanished state.


I have attached a simple world that allows you to see this bug in action. I made sure to set spectatorsGenerateChunks to false so you can see when your ender pearl is loading chunks.


Repro steps when in example world:

  1. Click the button that sets you to spectator mode and teleports you to your ender pearl location. Observe how the chunk your pearl is in is loaded.

  2. Teleport back to your spawn location /execute in minecraft:overworld run tp @s -6.49 63.00 10009.60 359.33 39.47

  3. Exit spectator mode.

  4. Run the /kill command, make sure to wait for more than two seconds before clicking respawn. (chunks pearl is in will deload)

  5. Click the button. You will see your pearl is not loading any chunks even though you have respawned.

To see how it should work, kill your player in step 4, but rapidly click the respawn button so you respawn in under two seconds. (preventing the chunks from deloading) You will see your pearl is still loading chunks.

Environment

Windows 11 Home 64-bit (10.0, Build 22631)

Linked issues

Attachments

Comments 8

With MC-289348 being fixed, it should be tested to see if whatever fix was made also fixed this issue.

@John Is this still an issue for you? When clicking the button now, the chunk doesn’t appear loaded until I change out of spectator mode.

@[MOD] Greymagic27 The intended behavior is the chunks SHOULD be loaded when you teleport in spectator mode. The death of your player is causing your pearls chunks to permanently deload, and they don’t reload upon your respawn. (you teleport in spectator mode to see if they are loaded with spectatorsGenerateChunks set to false).

Since they are not loaded for you, you have successfully replicated the issue.

End credits can also cause ender pearl chunks to permanently unload. Likely cause of MC-298184

@[MOD] Greymagic27 Can you please update the confirmation status of this issue?

Confirmed this bug is still present in 25w31a. The fix for MC-289348 does not fix this bug.

John

Shugoh

Confirmed

Platform

Normal

Chunk loading, Entities

1.21.7, 1.21.8 Release Candidate 1, 1.21.8, 25w31a

25w32a

Retrieved