Advertisement
Guest User

Minecraft Skript Random teleport with easy customization

a guest
Dec 15th, 2019
1,299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. #--Random Tp--#
  2. # __ ___ ___ ____
  3. #\ /\ / /\ |__| | | O | | |
  4. # \ / \ / /--\ |\ | | | | | | ___
  5. # \/ \/ / \ | \ | | | | | |____|
  6. #This plugin will work for normal worlds, It is just not
  7. #optimized for that yet. When a player is teleported, all
  8. #of the blocks around them are set to air to prevent them
  9. #from dying. This plugin was made for a flat world so
  10. #use at your own risk. Don't want to take your chances?
  11. #then try it yourself before giving players the ability
  12. #to use this command.
  13.  
  14.  
  15. options:
  16. #Minimum amount of blocks farm from X cord to tp to
  17. min.x: -10000
  18. #maximum amount of blocks farm from X cord to tp to
  19. max.x: 10000
  20. #Minimum amount of blocks farm from Z cord to tp to
  21. min.z: -10000
  22. #maximum amount of blocks farm from Z cord to tp to
  23. max.z: 10000
  24. #What y will the player be at when rtped (A grass block will be placed underneath the player)
  25. tp.y: 4
  26.  
  27. #Cooldown
  28. cooldown: 10 minutes
  29. #Cooldown Message
  30. cooldownm: &cYou need to wait 10 minutes between uses of this command!
  31.  
  32. #Permission
  33. permission: randomtp.use
  34. #No permission message
  35. PermMsg: &4You do not have permission to use this command!
  36.  
  37.  
  38. Command /randomtp:
  39. description: Teleports player to random location not in water
  40. permission: {@permission}
  41. permission message: {@PermMsg}
  42. aliases: /rtp, /wild, /random
  43. cooldown: {@cooldown}
  44. cooldown message: {@cooldownm}
  45. trigger:
  46. set {_loc::new} to location at random number between {@min.x} and {@max.x}, {@tp.y}, random number between {@min.z} and {@max.z}
  47. teleport player to {_loc::new}
  48. set block beneath player to grass block
  49. loop all blocks in radius 1 around player:
  50. set loop-block to air
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement