Advertisement
fleft17

Untitled

Jul 27th, 2014
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. options:
  2.  
  3. P: &8[&5Voidscape&8]&r
  4.  
  5. IS: Invalid syntax - /voidscape help!
  6.  
  7.  
  8.  
  9.  
  10. command /setupvoidscape <integer> <world>:
  11. permission: skript.op
  12. usage: "/setupvoidscape <radius> <world>"
  13. trigger:
  14. set {vs.world} to arg 2
  15. if arg 1 is greater than 0:
  16. set {vs.radius} to arg 1
  17. else:
  18. message "<red> That radius is not valid!"
  19. stop trigger
  20. set {vs.running} to true
  21. set {vs.slice} to 0
  22. set {vs.totalslice} to 0
  23. broadcast "<green>Starting setup for Voidscape in world %{vs.world}%"
  24. 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}):
  25. loop blocks from (loop-block-1) to (the block (2*{vs.radius}+1) meters west of loop-block-1):
  26. loop blocks from (loop-block-2) to (the block 255 meters above loop-block-2):
  27. if loop-block-3 is stone:
  28. set loop-block-3 to air
  29. else if loop-block-3 is bedrock:
  30. set loop-block-3 to air
  31. else if loop-block-3 is gravel:
  32. if the block below loop-block-3 is air:
  33. set loop-block-3 to air
  34. add 1 to {vs.slice}
  35. broadcast "%{vs.slice}%"
  36. if {vs.slice} is equal to 4:
  37. add 4 to {vs.totalslice}
  38. set {vs.slice} to 0
  39. broadcast "<green>Voidscape Progress: %({vs.totalslice}*100)/({vs.radius}*2+1)% percent. Buffering..."
  40. wait 1 second
  41. broadcast "<green>Voidscape complete!"
  42. delete {vs.running}
  43.  
  44. on physics:
  45. {vs.running} is true
  46. cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement