Affects Version/s: Minecraft 18w50a, Minecraft 19w02a, Minecraft 19w03c, Minecraft 19w04a, Minecraft 19w04b, Minecraft 19w05a, Minecraft 19w06a, Minecraft 19w07a, Minecraft 19w08b, Minecraft 19w09a, Minecraft 19w11b
Fix Version/s: Minecraft 19w12b
Entities keep being accessible via the global entity list, even after the chunk they belong to appears to be unloaded (blocks can't be accessed with commands).
It appears that the entities only get removed from the global list once all chunks in a 23×23 area around them are unloaded. Though that might only be the case when the player leaves the chunks. By changing the render distance I was also able to get entities staying on the list which were over 30 chunks from the next loaded chunk.
Setup: Superflat world, render distance 8.
- Teleport away from the spawn
- Summon a tagged armor stand
- Run the following commands
→ Both should output the entity
- Teleport about 10 chunks away.
- Run the commands again
→ Only the latter will output the entity now
This command will find entities using the global entity list, so it will be able to find the entity when it is on there.
This command will first find the entity using the global list but then use the local chunk list to find the entity again. Only if the entity can be found on both lists it will produce an output.
The bug is, that the entity is not removed from the global entity list.
If you keep moving further way and keep checking with the global entity list command, you will find that the entity will get removed from the global list once all chunks in a 23×23 area around it are unloaded.