Grant's Guide to Working Around MC-227930 Being Resolved as "Works As Intended"
As of Minecraft 1.17, we can't forceload
a chunk, summon an entity into the chunk, and immediately select that entity, all in the same tick. In fact, we can't select any entities in newly loaded chunks until an arbitrary amount of ticks have passed while the chunk fully loads. I've come up with a few ways to work around this, depending on your use case, but none of these solutions are flawless. I may edit this post to include more or make revisions in the future. If you have feedback or suggestions on any of this, feel free to post a comment or message me on Discord @Grant#2604.
- Because chunks now take an arbitrary, unknown amount of ticks to fully load, we can't just schedule a constant time ahead. So there's not really any way to do this other than running a function that tries to select your entity, and schedules itself to run again eve