Hello, I am trying to put a delay on my /spawn command and when the player moves it will cancel the event
I am aware that the bottom half of this is very wrong.
Code:
#! Script Version 2.6.3:
#!Minecraft Version: 1.17.1
#! this part is fine
command /setspawn:
permission: op
trigger:
set {spawn} to location of player
send "[&c&lBread&r] &bSpawn set to %{spawn}%" to player
#! this part needs help
command /spawn:
trigger:
send "[&c&lBread&r] &bTeleporting you to &aspawn &bin 3 seconds" to player
wait "%{3}% seconds" parsed as timespan
if player moves
end event
send "[&c&lBread&r] &bYou Moved!"
teleport player to {spawn}
I am aware that the bottom half of this is very wrong.