Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- tag: &r &6&LM&E&LS &r&7»
- on rightclick on wooden button:
- if block behind clicked block is sponge:
- randomtp(player)
- wait 10 tick
- loop all players in radius 10 around event-location:
- if "%region at loop-player%" contains "randomtp":
- teleport loop-player to player
- send loop-player title "&b> &3Random Teleport &b<" with subtitle "&fLokacja to: &a%player's location%" for 4 seconds
- wait 1 tick
- on rightclick on stone button:
- if block behind clicked block is sponge:
- randomtp(player)
- function randomtp(p: player):
- if {TELEPORT::%{_p}%} is not set:
- apply nausea 5 to {_p} for 5 seconds
- set {TELEPORT::%{_p}%} to player
- apply blindness 4 to {_p} for 3 seconds
- while {_p} is online:
- set {_l} to location at (random integer between -4000 and 4000), (random integer between 50 and 80), (random integer between -4000 and 4000) in world ("world" parsed as world)
- if block under {_l} is not air:
- if block at {_l} is air:
- if block 1 over {_l} is air:
- if block 2 over {_l} is air:
- teleport {_p} to {_l}
- delete {TELEPORT::%{_p}%}
- send {_p} title "&b> &3Random Teleport &b<" with subtitle "&fLokacja to: &a%{_l}%" for 4 seconds
- send "{@tag} &bLokacja to: &3%{_l}%" to {_p}
- stop
- chance of 20%:
- wait 1 tick
- every 10 seconds:
- clear {TELEPORT::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement