Guest User

RandomTP

a guest
Jun 21st, 2018
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. options:
  2. x-min: -3000
  3. x-max: 3000
  4. z-min: -3000
  5. z-max: 3000
  6. on right click:
  7. if clicked block is stone button:
  8. if block behind clicked block is sponge:
  9. set {_x} to random integer between {@x-min} and {@x-max}
  10. set {_y} to 256
  11. set {_z} to random integer between {@z-min} and {@z-max}
  12. set {_location} to location at {_x}, {_y}, {_z}
  13. set {randomtp.god.%player%} to true
  14. teleport player to {_location}
  15. send " &8» &7Przeteleportowano w losowe koordynaty &6(x: %{_x}% | z: %{_z}%)&7."
  16. stop
  17. on damage:
  18. if victim is player:
  19. if {randomtp.god.%victim%} is true:
  20. cancel event
  21. delete {randomtp.god.%victim%}
  22. stop
Add Comment
Please, Sign In to add comment