I'm writing a script that teleports players when they stand on a beacon, and cancels the teleportation when they move while standing on it. I've tried many expression to detect such movement ('on any movement', 'on walk over beacon', 'on move on beacon'...), but whatever expression I use, the server always returns an error while reloading the plugins: [Server thread/ERROR can't understand this condition: 'on walk over beacon']. Any idea what causes this or how to fix it?
Code:
entering region "tpn":
if {tpcooldown} is 1:
stop
else:
play sound "block_beacon_activate"
message "&7Move to cancel teleportation"
on walk over beacon:
play sound "block_beacon_deactivate"
message "&4Teleportation cancelled"
stop