options:
min.x: 200
max.x: 3000
min.z: 200
max.z: 3000
min.y: 0
max.y: 230
cooldown: 5 minutes
SpamMsg: &4Merci de ne pas spammer cette commande. &7&oDisponible tous les 5 minutes.
Command /rtp:
permission: permission
permission message: &cTun'as pas la perm
trigger:
if difference between {cooldowns.randomtp.%player%} and now < {@cooldown}:
send "{@SpamMsg}"
else:
send "&f&lTera&6&lnia &f: &eTéléportation en cours de chargement. Merci de ne pas bouger" to player
wait 1 tick
send "&7Téléportation dans 5 secondes."
set {_x.%player%} to x-location of player
set {_y.%player%} to y-location of player
set {_z.%player%} to z-location of player
wait 20 ticks
if {_x.%player%} is x-location of player:
if {_y.%player%} is y-location of player:
if {_z.%player%} is z-location of player:
set {_true.%player%} to true
if {_true.%player%} is true:
wait 20 ticks
if {_x.%player%} is x-location of player:
if {_y.%player%} is y-location of player:
if {_z.%player%} is z-location of player:
set {_true2.%player%} to true
if {_true2.%player%} is true:
wait 20 ticks
if {_x.%player%} is x-location of player:
if {_y.%player%} is y-location of player:
if {_z.%player%} is z-location of player:
set {_true3.%player%} to true
if {_true3.%player%} is true:
wait 20 ticks
if {_x.%player%} is x-location of player:
if {_y.%player%} is y-location of player:
if {_z.%player%} is z-location of player:
set {_true4.%player%} to true
if {_true4.%player%} is true:
wait 20 ticks
if {_x.%player%} is x-location of player:
if {_y.%player%} is y-location of player:
if {_z.%player%} is z-location of player:
set {_loc::new} to location at random number between {@min.x} and {@max.x}, random number between {@min.y} and {@max.y}, random number between {@min.z} and {@max.z}
set {_loc::new2} to {_loc::new}
set block at {_loc::new} to glass
add 1 to y-coordinate of {_loc::new2}
teleport player to {_loc::new2}
set {_Dist1} to {_loc::new}
set {_Dist2} to {_loc::new}
add 4 to x-coordinate of {_Dist1}
add -4 to z-coordinate of {_Dist1}
add -4 to x-coordinate of {_Dist2}
add 4 to z-coordinate of {_Dist2}
loop blocks within {_Dist1} to {_Dist2}:
set loop-block to glass
else:
send "&cVous ne devez pas bouger ! Téléportation annulé."
else:
send "&cVous ne devez pas bouger ! Téléportation annulé."
else:
send "&cVous ne devez pas bouger ! Téléportation annulé."
else:
send "&cVous ne devez pas bouger ! Téléportation annulé."