Advertisement
Guest User

rtp/wild skript

a guest
Apr 2nd, 2021
417
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. command /rtp:
  2. aliases: wild
  3. cooldown: 5 minutes
  4. cooldown message: &cSlow down! You can only teleport to a random location every 5 minutes!
  5. trigger:
  6. set {_x} to round(random number between -5000 and 5000)
  7. set {_z} to round(random number between -5000 and 5000)
  8. set {_block} to block at location ({_x}, 0, {_z}) in world event-world
  9. loop all blocks above {_block}:
  10. if loop-block is air:
  11. block below loop-block is not water
  12. block below loop-block is not lava
  13. block below loop-block is not air
  14. block below loop-block is water:
  15. stop
  16. block below loop-block is lava:
  17. stop
  18. if block above loop-block is air:
  19. teleport player to highest solid block at location({_x}, 0, {_z}, world "world")
  20. send "&aYou have been teleported to a random location!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement