BloodHead2001

Untitled

Dec 28th, 2014
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. command /setspawnwand:
  2. permission message: &cBlad: &4Brak Uprawnien
  3. permission: wand.set
  4. trigger:
  5. set {WandSpawn} to location of player
  6. send "&aPomyslnie ustawiles spawn rozdzki teleportujacej!"
  7. stop
  8. on right click with a stick of unbreaking 10:
  9. if {WandSpawn} is set:
  10. set {_posx.%player%} to x-location of player
  11. set {_posz.%player%} to z-location of player
  12. set {_posy.%player%} to y-location of player
  13. set {TPWandSpawn.%player%} to true
  14. set {_TPWandSpawn.%player%} to 10
  15. send "&aZa %{_TPWandSpawn.%player%}% sekund zostaniesz przeleportowany."
  16. wait 1 second
  17. loop 10 times:
  18. difference between x-location of player and {_posx.%player%} is bigger than 0.1:
  19. send "&cBlad:&4Ruszyles sie! Teleportacja anulowana..."
  20. set {TPWandSpawn.%player%} to false
  21. stop
  22. difference between z-location of player and {_posz.%player%} is bigger than 0.1:
  23. send "&cBlad:&4Ruszyles sie! Teleportacja anulowana..."
  24. set {TPWandSpawn.%player%} to false
  25. stop
  26. difference between y-location of player and {_posy.%player%} is bigger than 0.1:
  27. send "&cBlad:&4Ruszyles sie! Teleportacja anulowana..."
  28. set {TPWandSpawn.%player%} to false
  29. stop
  30. add -1 to {_TPWandSpawn.%player%}
  31. {_TPWandSpawn.%player%} is 0:
  32. teleport player to {WandSpawn}
  33. send "&aTeleportowanie na spawna..."
  34. remove 1 stick of unbreaking 10 named "&c[EASYHC] &6Rozdzka na spawn!" from player
  35. set {TPWandSpawn.%player%} to false
  36. stop
  37. wait 1 second
  38. stop
  39. else:
  40. send "&cSpawn zostal nie ustawiony!"
  41. send "&c - Ustaw go komeda /SetSpawnWand."
  42. on load:
  43. register new shaped recipe for stick of unbreaking 10 named "&c[EASYHC] &6Rozdzka na spawn!" using none, gold block, none, none, gold block, none, none, gold block, none
Advertisement
Add Comment
Please, Sign In to add comment