This is the code I have so far:
The looping works, I see that with debug mode, but the variable and command doesn't.
I'm returning to Skript after an almost 12-month abscence so sorry if the issue is obvious
every 1 tick:
loop all players:
if loop-player's y-coordinate is 320:
set {moonreturn.%loop-player's uuid%} to location of loop-player
execute console command "/execute in minecraft:the_end run tp {%loop-player%} 0 64 0"
loop all players:
if loop-player's y-coordinate is 320:
set {moonreturn.%loop-player's uuid%} to location of loop-player
execute console command "/execute in minecraft:the_end run tp {%loop-player%} 0 64 0"
The looping works, I see that with debug mode, but the variable and command doesn't.
I'm returning to Skript after an almost 12-month abscence so sorry if the issue is obvious