Would it be possible to add another variant to /forceload that has this synchronous behavior? As mentioned, a lot of mechanisms rely on this for correctness, even if it causes lag.
We did this ourselves in 1.16 on a Bukkit/Paper server -
/forceload add x1 z1 x2 z2
loads synchronously (vanilla behavior in 1.16), allowing subsequent commands to access everything in that chunk the same tick
loads chunks asynchronously (sounds like the new behavior in 1.17, possibly taking several ticks) and optionally runs a function when those chunks have all finished loading
Would it be possible to add another variant to /forceload that has this synchronous behavior? As mentioned, a lot of mechanisms rely on this for correctness, even if it causes lag.
We did this ourselves in 1.16 on a Bukkit/Paper server -
/forceload add x1 z1 x2 z2
loads synchronously (vanilla behavior in 1.16), allowing subsequent commands to access everything in that chunk the same tick
/forceload addlazy x1 z1 x2 z2 [namespace:myfunction]
loads chunks asynchronously (sounds like the new behavior in 1.17, possibly taking several ticks) and optionally runs a function when those chunks have all finished loading