Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P: &8[&5Voidscape&8]&r
- IS: Invalid syntax - /voidscape help!
- command /setupvoidscape <integer> <world>:
- permission: skript.op
- usage: "/setupvoidscape <radius> <world>"
- trigger:
- set {vs.world} to arg 2
- if arg 1 is greater than 0:
- set {vs.radius} to arg 1
- else:
- message "<red> That radius is not valid!"
- stop trigger
- set {vs.running} to true
- set {vs.slice} to 0
- set {vs.totalslice} to 0
- broadcast "<green>Starting setup for Voidscape in world %{vs.world}%"
- loop blocks from the block at (the location at {vs.radius}, 0, {vs.radius} of the world {vs.world}) to the block at (the location at {vs.radius}, 0, (-1*{vs.radius}) of the world {vs.world}):
- loop blocks from (loop-block-1) to (the block (2*{vs.radius}+1) meters west of loop-block-1):
- loop blocks from (loop-block-2) to (the block 255 meters above loop-block-2):
- if loop-block-3 is stone:
- set loop-block-3 to air
- else if loop-block-3 is bedrock:
- set loop-block-3 to air
- else if loop-block-3 is gravel:
- if the block below loop-block-3 is air:
- set loop-block-3 to air
- add 1 to {vs.slice}
- broadcast "%{vs.slice}%"
- if {vs.slice} is equal to 4:
- add 4 to {vs.totalslice}
- set {vs.slice} to 0
- broadcast "<green>Voidscape Progress: %({vs.totalslice}*100)/({vs.radius}*2+1)% percent. Buffering..."
- wait 1 second
- broadcast "<green>Voidscape complete!"
- delete {vs.running}
- on physics:
- {vs.running} is true
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement