It seems like if the executing entity is in another dimension other than the overworld, the functions will fail (storage gm:io is {out:"fail"}).
Seems like this issue is because of some of the commands rely on teleporting the math entity, and when the executing entity teleport the math entity, it will teleport them to the specified position, but in their dimension, causing the math entity then enter a unloaded chunk.
Adding the following two lines in the gm:zzz/load seems to solve the issue.
execute in minecraft:the_nether run forceload add 29999999 91665
execute in minecraft:the_end run forceload add 29999999 91665
Or adding execute in minecraft:overworld run in front of every line that uses position solves it too, and it doesn't require forceloading another two chunks.
Alternatively whenever invoking the functions, add execute in minecraft:overworld run solves it too without modifying the library itself.
It seems like if the executing entity is in another dimension other than the overworld, the functions will fail (storage gm:io is
{out:"fail"}).Seems like this issue is because of some of the commands rely on teleporting the math entity, and when the executing entity teleport the math entity, it will teleport them to the specified position, but in their dimension, causing the math entity then enter a unloaded chunk.
Adding the following two lines in the
gm:zzz/loadseems to solve the issue.Or adding
execute in minecraft:overworld runin front of every line that uses position solves it too, and it doesn't require forceloading another two chunks.Alternatively whenever invoking the functions, add
execute in minecraft:overworld runsolves it too without modifying the library itself.