SHARE
TWEET

Untitled

a guest Jun 20th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. options:
  2.     tag: &r &6&LM&E&LS &r&7»
  3.  
  4. on rightclick on wooden button:
  5.     if block behind clicked block is sponge:
  6.         randomtp(player)
  7.         wait 10 tick
  8.         loop all players in radius 10 around event-location:
  9.             if "%region at loop-player%" contains "randomtp":
  10.                 teleport loop-player to player
  11.                 send loop-player title "&b> &3Random Teleport &b<" with subtitle "&fLokacja to: &a%player's location%" for 4 seconds
  12.                 wait 1 tick
  13.        
  14. on rightclick on stone button:
  15.     if block behind clicked block is sponge:
  16.         randomtp(player)
  17.        
  18. function randomtp(p: player):
  19.     if {TELEPORT::%{_p}%} is not set:  
  20.         apply nausea 5 to {_p} for 5 seconds
  21.         set {TELEPORT::%{_p}%} to player
  22.         apply blindness 4 to {_p} for 3 seconds
  23.         while {_p} is online:
  24.             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)
  25.             if block under {_l} is not air:
  26.                 if block at {_l} is air:
  27.                     if block 1 over {_l} is air:
  28.                         if block 2 over {_l} is air:
  29.                             teleport {_p} to {_l}
  30.                             delete {TELEPORT::%{_p}%}
  31.                             send {_p} title "&b> &3Random Teleport &b<" with subtitle "&fLokacja to: &a%{_l}%" for 4 seconds
  32.                             send "{@tag} &bLokacja to: &3%{_l}%" to {_p}
  33.                             stop
  34.             chance of 20%:
  35.                 wait 1 tick
  36.                
  37.                
  38. every 10 seconds:
  39.     clear {TELEPORT::*}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top