Hey there. I'm quite confused on how to cancel the teleportation when someone moves..
Here's the code.
Here's the code.
Code:
command testtp:
aliases: tt, ttp
trigger:
wait 0.25 seconds
console command "effect give %player% blindness 3 200"
console command "effect give %player% slowness 3 10"
play sound "ui.button.click" with volume 1 with pitch 1 to player
send title "{@prefix1}"
send subtitle "test"
wait 0.75 seconds
play sound "ui.button.click" with volume 0.5 with pitch 1 to player
send title "{@prefix1}"
send subtitle "test."
wait 0.75 seconds
play sound "ui.button.click" with volume 0.5 with pitch 1 to player
send title "{@prefix1}"
send subtitle "test.."
wait 0.75 seconds
play sound "ui.button.click" with volume 0.5 with pitch 1 to player
send title "{@prefix1}"
send subtitle "test..."
teleport player to {test}
send "{@prefix} &fYou have been teleported to &etest&f." to player
play sound "minecraft:entity.experience_orb.pickup" to player