Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #- Chunk Apocalypse Skript
- #- By Mortimier
- options:
- Pre: &b[&2ChunkApoc&b]&3
- PreMess: &b[&2ChunkApoc&b]&c
- PreImpo: &b[&2ChunkApoc&b]&6
- OpPerm: skript.chunkapoc
- PermMess: &cYou don't have permission to do that!
- command /chunkapoc <integer> <integer> <integer> <world>:
- permission: {@OpPerm}
- permission message: {@PermMess}
- usage: "/chunkapoc <map radius> <chunk size> <% of deleted chunks> <world name>"
- trigger:
- set {_chunknum} to 2*arg 1/arg 2
- set {_chunkx} to arg 1
- set {_chunkz} to arg 1
- set {_size} to arg 2
- broadcast "{@PreImpo} Creating a Chunk Apocalypse in world %arg 4%. Expect a lot of lag! Operation should take about %{_chunknum}*{_chunknum}*3/arg 3% seconds."
- loop {_chunknum} times:
- loop {_chunknum} times:
- chance of arg 3%:
- {chunkapoc.cancel} is true:
- set {chunkapoc.cancel} to false
- stop trigger
- broadcast "{@Pre} Deleting Chunk at x: %{_chunkx}%, z: %{_chunkz}%"
- loop blocks from (block at (the location at {_chunkx}, 255, {_chunkz} in arg 4)) to (block at (the location at ({_chunkx}-{_size}+1), 255, {_chunkz} in arg 4)):
- loop blocks from (loop-block-1) to (the block ({_size}-1) meters north of loop-block-1):
- loop blocks from (loop-block-2) to (the block 255 meters below loop-block-2):
- set loop-block-3 to air
- wait 3 seconds
- subtract arg 2 from {_chunkx}
- set {_chunkx} to arg 1
- subtract {_size} from {_chunkz}
- broadcast "{@Pre} Chunk Apocalypse Complete!"
- message "{@PreMess} You should recreate your border now."
- command /chunkcancel:
- permission: {@OpPerm}
- permission message: {@PermMess}
- trigger:
- set {chunkapoc.cancel} to true
- broadcast "{@PreImpo} Chunk Apocalypse Cancelled!"
Advertisement
Add Comment
Please, Sign In to add comment