command /testrtp:
trigger:
set {_l} to player's location
set {_p} to player
send action bar "&7Teleporting in 5" to {_p}
play sound "entity.enderman.teleport" to {_p}
if player's location is not {_l}:
send action bar "&c&lTeleport canceled: You moved."
stop
wait 1 seconds
send action bar "&7Teleporting in 4" to {_p}
play sound "entity.enderman.teleport" to {_p}
if player's location is not {_l}:
send action bar "&c&lTeleport canceled: You moved."
stop
wait 1 seconds
send action bar "&7Teleporting in 3" to {_p}
play sound "entity.enderman.teleport" to {_p}
if player's location is not {_l}:
send action bar "&c&lTeleport canceled: You moved."
stop
wait 1 seconds
send action bar "&7Teleporting in 2" to {_p}
play sound "entity.enderman.teleport" to {_p}
if player's location is not {_l}:
send action bar "&c&lTeleport canceled: You moved."
stop
wait 1 seconds
send action bar "&7Teleporting in 1" to {_p}
play sound "entity.enderman.teleport" to {_p}
if player's location is not {_l}:
send action bar "&c&lTeleport canceled: You moved."
stop
wait 1 seconds
make player run command "/advancedteleport:rtp world" as op
play sound "entity.experience_orb.pickup" to {_p}
currently this is a movement cancelation system when teleporting
im trying to find how to still use movement cancelation but can move your head / move crosshair
trigger:
set {_l} to player's location
set {_p} to player
send action bar "&7Teleporting in 5" to {_p}
play sound "entity.enderman.teleport" to {_p}
if player's location is not {_l}:
send action bar "&c&lTeleport canceled: You moved."
stop
wait 1 seconds
send action bar "&7Teleporting in 4" to {_p}
play sound "entity.enderman.teleport" to {_p}
if player's location is not {_l}:
send action bar "&c&lTeleport canceled: You moved."
stop
wait 1 seconds
send action bar "&7Teleporting in 3" to {_p}
play sound "entity.enderman.teleport" to {_p}
if player's location is not {_l}:
send action bar "&c&lTeleport canceled: You moved."
stop
wait 1 seconds
send action bar "&7Teleporting in 2" to {_p}
play sound "entity.enderman.teleport" to {_p}
if player's location is not {_l}:
send action bar "&c&lTeleport canceled: You moved."
stop
wait 1 seconds
send action bar "&7Teleporting in 1" to {_p}
play sound "entity.enderman.teleport" to {_p}
if player's location is not {_l}:
send action bar "&c&lTeleport canceled: You moved."
stop
wait 1 seconds
make player run command "/advancedteleport:rtp world" as op
play sound "entity.experience_orb.pickup" to {_p}
currently this is a movement cancelation system when teleporting
im trying to find how to still use movement cancelation but can move your head / move crosshair