Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P: &8[&7ChunkApoc&8]
- CC: &a
- HC: &6
- Tick.Delay: 25 ticks
- Correct.Usage: /chunk <radius> <world> <percent>
- Broadcast.Messages: false
- command /chunkapoc [<integer>] [<world>] [<integer>]:
- permission: skript.op
- trigger:
- if {ChunkApoc::Running} is true:
- if arg-1 is not set:
- delete {ChunkApoc::Running}
- stop trigger
- else:
- message "{@P}{@CC} {@Correct.Usage}"
- if arg-1 is less than 16:
- message "{@P}{@CC} You cannot run this with a radius less than 16!"
- stop trigger
- if arg-2 is not set:
- message "{@P}{@CC} {@Correct.Usage}"
- stop trigger
- if arg-2 is not set:
- message "{@P}{@CC} {@Correct.Usage}"
- loop 3 times:
- command "/chunkapoc-sound note.harp"
- wait 4 ticks
- broadcast "{@P}{@CC}&r&o----------------------------------"
- broadcast "{@P}{@HC} %command sender%{@CC}: {@HC}%arg-1%{@CC} in {@HC}%arg-2%!"
- broadcast "{@P}{@CC} Beginning ChunkApoc!"
- broadcast "{@P}{@HC} ChunkApoc Skript by Fleft"
- broadcast "{@P}{@CC}&r&o----------------------------------"
- set command sender's gamemode to creative
- set {ChunkApoc::Running} to true
- set {ChunkApoc::Radius} to arg-1
- set {ChunkApoc::World} to arg-2
- set {ChunkApoc::Percent} to arg-3
- set {ChunkApoc::Number} to rounded down (((arg-1)*2)/15.5)
- broadcast "%{ChunkApoc::Number}%"
- set {ChunkApoc::X} to arg-1
- set {ChunkApoc::Z} to arg-1
- loop {ChunkApoc::Number} times:
- loop {ChunkApoc::Number} times:
- chance of {ChunkApoc::Percent}%:
- loop 256 times:
- 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})):
- loop blocks from loop-block-1 to (block 15 west of loop-block-1):
- set loop-block-2 to air
- wait 25 tick
- subtract 15 from {ChunkApoc::X}
- set {ChunkApoc::X} to arg-1
- subtract 15 from {ChunkApoc::Z}
- wait 1 tick
- loop 3 times:
- command "/chunkapoc-sound note.harp"
- wait 3 ticks
- broadcast "{@P}{@CC}&r&o----------------------------------"
- broadcast "{@P}{@CC} Finished!"
- broadcast "{@P}{@CC}&r&o----------------------------------"
- execute console command "/chunkapoc-sound random.explode"
- command /chunkapoc-sound <text>:
- permission: skript.chunkapoc
- trigger:
- loop all players:
- execute console command "/playsound %arg% %loop-player% ~ ~ ~ 1 1 1"
- on physics:
- {ChunkApoc::Running} is true:
- cancel the event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement