Neonowsky

[SK] RandomTP

Aug 28th, 2015
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. options:
  2. xMin: -5000
  3. xMax: 5000
  4. zMin: -5000
  5. zMax: 5000
  6. yMin: 70
  7. yMax: 90
  8. world: world
  9. aliases:
  10. blocktpr = 1, 2, 3, 4, 12, 13, 49, 7, 8, 5, 18, 172, 24, 9
  11. on rightclick on stone button:
  12. block behind target block is sponge:
  13. set {_targetx} to a random integer between {@xMin} and {@xMax}
  14. set {_targetz} to a random integer between {@zMin} and {@zMax}
  15. set {_targety} to a random integer between {@yMin} and {@yMax}
  16. set {_random.pos} to location at {_targetx}, {_targety}, {_targetz}
  17. biome at {_random.pos} is ocean or river or deep ocean:
  18. send "&4Blad! &cLokacja znajduje sie na oceanie!"
  19. else:
  20. loop blocks above the block at location of {_random.pos}:
  21. if block at location of loop-block is blocktpr:
  22. if block above the block at location of loop-block is air or water:
  23. if block 1 above the block at location of loop-block is air:
  24. if block 2 above the block at location of loop-block is air:
  25. set {_pos} to block above the block at location of loop-block
  26. apply speed 3 to the player for 15 seconds
  27. apply regeneration 10 to the player for 10 seconds
  28. send "&7Przeteleportowano na kordynaty &6x: %{_targetx}% z: %{_targetz}%&7!"
  29. add 64 cooked porkchop to player
  30. teleport player to {_pos}
Advertisement
Add Comment
Please, Sign In to add comment