#Why does it not teleport me to {_loc} when I have autoafk on?

1 messages · Page 1 of 1 (latest)

vestal kestrel
#
    trigger:
        if {autoafk::%uuid of sender%} is not set:
            set {autoafk::%uuid of sender%} to true 
            message "{@P} &7You have &cdisabled &7auto AFK."
        else if {autoafk::%uuid of sender%} is true:
            delete {autoafk::%uuid of sender%}
            message "{@P} &7You have &aenabled &7auto AFK."

every 5 minutes:
    loop all players:
        set {_x} to x-coordinate of loop-player
        set {_y} to y-coordinate of loop-player
        set {_z} to z-coordinate of loop-player
        wait 20 seconds
        if {autoafk::%uuid of loop-player%} is true:
            if "%{_x}%, %{_y}%, %{_z}%" is "%x-loc of loop-player%, %y-loc of loop-player%, %z-loc of loop-player%":
                set {_loc} to location at 353, 85, -302 in world "world"
                teleport loop-player to {_loc}```
#

I get no errors though

cosmic pumice
#
        set {_y} to y-coordinate of loop-player
        set {_z} to z-coordinate of loop-player```
#

dont do this

#

use difference between {_loc1} and {_loc2} >= x