Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /rtp:
- aliases: wild
- cooldown: 5 minutes
- cooldown message: &cSlow down! You can only teleport to a random location every 5 minutes!
- trigger:
- set {_x} to round(random number between -5000 and 5000)
- set {_z} to round(random number between -5000 and 5000)
- set {_block} to block at location ({_x}, 0, {_z}) in world event-world
- loop all blocks above {_block}:
- if loop-block is air:
- block below loop-block is not water
- block below loop-block is not lava
- block below loop-block is not air
- block below loop-block is water:
- stop
- block below loop-block is lava:
- stop
- if block above loop-block is air:
- teleport player to highest solid block at location({_x}, 0, {_z}, world "world")
- send "&aYou have been teleported to a random location!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement