Skip to content

Does not work when the executing entity is not in overworld #19

@Ehrdn

Description

@Ehrdn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions