Advertisement
fleft17

Untitled

Sep 14th, 2014
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.53 KB | None | 0 0
  1. options:
  2.  
  3. P: &8[&7ChunkApoc&8]
  4. CC: &a
  5. HC: &6
  6. Tick.Delay: 25 ticks
  7. Correct.Usage: /chunk <radius> <world> <percent>
  8. Broadcast.Messages: false
  9.  
  10. command /chunkapoc [<integer>] [<world>] [<integer>]:
  11. permission: skript.op
  12. trigger:
  13. if {ChunkApoc::Running} is true:
  14. if arg-1 is not set:
  15. delete {ChunkApoc::Running}
  16. stop trigger
  17. else:
  18. message "{@P}{@CC} {@Correct.Usage}"
  19. if arg-1 is less than 16:
  20. message "{@P}{@CC} You cannot run this with a radius less than 16!"
  21. stop trigger
  22. if arg-2 is not set:
  23. message "{@P}{@CC} {@Correct.Usage}"
  24. stop trigger
  25. if arg-2 is not set:
  26. message "{@P}{@CC} {@Correct.Usage}"
  27. loop 3 times:
  28. command "/chunkapoc-sound note.harp"
  29. wait 4 ticks
  30. broadcast "{@P}{@CC}&r&o----------------------------------"
  31. broadcast "{@P}{@HC} %command sender%{@CC}: {@HC}%arg-1%{@CC} in {@HC}%arg-2%!"
  32. broadcast "{@P}{@CC} Beginning ChunkApoc!"
  33. broadcast "{@P}{@HC} ChunkApoc Skript by Fleft"
  34. broadcast "{@P}{@CC}&r&o----------------------------------"
  35. set command sender's gamemode to creative
  36. set {ChunkApoc::Running} to true
  37. set {ChunkApoc::Radius} to arg-1
  38. set {ChunkApoc::World} to arg-2
  39. set {ChunkApoc::Percent} to arg-3
  40. set {ChunkApoc::Number} to rounded down (((arg-1)*2)/15.5)
  41. broadcast "%{ChunkApoc::Number}%"
  42. set {ChunkApoc::X} to arg-1
  43. set {ChunkApoc::Z} to arg-1
  44. loop {ChunkApoc::Number} times:
  45. loop {ChunkApoc::Number} times:
  46. chance of {ChunkApoc::Percent}%:
  47. loop 256 times:
  48. loop blocks from (block at (the location at {ChunkApoc::X}, (256-(loop-number-3)), {ChunkApoc::Z} of the world {ChunkApoc::World})) to (block at (the location at {ChunkApoc::X}, (256-(loop-number-3)), ({ChunkApoc::Z}-16) of the world {ChunkApoc::World})):
  49. loop blocks from loop-block-1 to (block 15 west of loop-block-1):
  50. set loop-block-2 to air
  51. wait 25 tick
  52. subtract 15 from {ChunkApoc::X}
  53. set {ChunkApoc::X} to arg-1
  54. subtract 15 from {ChunkApoc::Z}
  55. wait 1 tick
  56. loop 3 times:
  57. command "/chunkapoc-sound note.harp"
  58. wait 3 ticks
  59. broadcast "{@P}{@CC}&r&o----------------------------------"
  60. broadcast "{@P}{@CC} Finished!"
  61. broadcast "{@P}{@CC}&r&o----------------------------------"
  62. execute console command "/chunkapoc-sound random.explode"
  63.  
  64.  
  65. command /chunkapoc-sound <text>:
  66. permission: skript.chunkapoc
  67. trigger:
  68. loop all players:
  69. execute console command "/playsound %arg% %loop-player% ~ ~ ~ 1 1 1"
  70.  
  71.  
  72. on physics:
  73. {ChunkApoc::Running} is true:
  74. cancel the event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement