Guest User

Rozdzka teleportujaca

a guest
Feb 18th, 2014
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.10 KB | None | 0 0
  1. on script load:
  2.     register new shaped recipe for stick of knockback 2 named "&4Rozdzka teleportujaca" using air, gold block, air, air, stick, air, air, stick, air
  3.    
  4. on rightclick:
  5.     if name of player's tool is "&4Rozdzka teleportujaca":
  6.         execute console command "pex user %player% add sk.rozdzka"
  7.         apply nausea 2 to the player for 30 seconds
  8.         wait 3 second
  9.         execute player command "/teleport"
  10.         execute console command "pex user %player% remove sk.rozdzka"
  11.         remove nausea from player
  12.         remove 1 stick named "&4Rozdzka teleportujaca" from player
  13.         send "&6Teleportuje na spawn"
  14.    
  15. command /spawn:
  16.     trigger:
  17.         send "&cAby przeteleportowac na spawn musisz miec rozdzke teleportacyjna"
  18.         send "&cAby ja stworzyc potrzebujesz 1 blok zlota i 2 patyki"
  19.         send "&cAlbo isc na kordy: y:%{y}% z:%{z}%"
  20.         stop
  21.        
  22. command /setspawn:
  23.     trigger:
  24.         set {y} to x-location of player
  25.         set {z} to z-location of player
  26.         set {spawn.spawn} to location of player
  27.         send "&aPomyslnie ustawiles spawn"
  28.        
  29. command /teleport:
  30.     trigger:
  31.         if player has permission "sk.rozdzka":
  32.             teleport the player to {spawn.spawn}
Advertisement
Add Comment
Please, Sign In to add comment