7mm

Skript: AquaHatch: SASUKE

7mm
Dec 4th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. command /sasuke1-1st-1-1 [<boolean>]:
  2. permission: skript.sasuke
  3. trigger:
  4. if arg 1 is true:
  5. set {sasuke1-1st-1-1::using} to false
  6. wait a tick
  7. if {sasuke1-1st-1-1::using} is true:
  8. stop
  9. set {sasuke1-1st-1-1::using} to true
  10. set {_location} to location at (4010, 5, 4008)
  11. set {_distance-short} to 10^8
  12. loop all players:
  13. set {_distance} to distance between loop-player and {_location}
  14. if {_distance-short} > {_distance}:
  15. set {_distance-short} to {_distance}
  16. set {_player} to loop-player
  17. if {_player} is not set:
  18. set {sasuke1-1st-1-1::using} to false
  19. stop
  20. apply speed 1 to {_player} for 70 ticks
  21. wait 50 ticks
  22. command "fill 4034 4 4009 4034 4 4007 redstone_block"
  23. wait 20 ticks
  24. command "fill 4034 4 4009 4034 4 4007 stained_glass 14"
  25. set {sasuke1-1st-1-1::using} to false
  26.  
  27. command /sasuke1-1st-1-2:
  28. permission: skript.sasuke
  29. trigger:
  30. if {sasuke1-1st-1-2::using} is true:
  31. stop
  32. set {sasuke1-1st-1-2::using} to true
  33. wait 1 ticks
  34. command "setblock 4044 13 4002 water"
  35. wait 60 ticks
  36. command "setblock 4044 13 4002 air"
  37. wait 100 ticks
  38. set {sasuke1-1st-1-2::using} to false
  39.  
  40. command /sudo <player> <text>:
  41. executable by: console
  42. trigger:
  43. execute arg-1 command arg-2
Add Comment
Please, Sign In to add comment