Guest User

Untitled

a guest
May 1st, 2016
403
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. #- Originally By Mortimier for Chunk Apocalypse
  2. #- Edited By DancingNinjas_ for Sky Ores
  3.  
  4. options:
  5. P: &b[&aSkyOres&b]&b
  6.  
  7. command /skyores <integer> <integer> <world>:
  8. permission: skript.op
  9. usage: /skyores <map radius> <radius of blocks to change every 5 ticks> <world name>
  10. trigger:
  11. set {_chunknum} to 2*arg 1/arg 2
  12. set {_chunkx} to arg 1
  13. set {_chunkz} to arg 1
  14. set {_size} to arg 2
  15. broadcast "{@P} Generating Sky Ores in '%arg 3%'! There may be lag!"
  16. loop {_chunknum} times:
  17. loop {_chunknum} times:
  18. {skyores.cancel} is true:
  19. set {skyores.cancel} to false
  20. stop trigger
  21. send "{@P} Converting Ores at x: %{_chunkx}%, z: %{_chunkz}%" to all ops
  22. loop blocks from (block at (the location at {_chunkx}, 138, {_chunkz} in arg 3)) to (block at (the location at ({_chunkx}-{_size}+1), 128, {_chunkz} in arg 3)):
  23. loop blocks from (loop-block-1) to (the block ({_size}-1) meters north of loop-block-1):
  24. loop blocks from (loop-block-2) to (the block 128 meters below loop-block-2):
  25. if loop-block-3 is iron ore or diamond ore or gold ore or lapis ore or redstone ore or coal ore or emerald ore:
  26. set block at location (loop-block-3's x coordinate), (256 - (loop-block-3's y coordinate)), (loop-block-3's z coordinate) in arg-3 to block at loop-block-3
  27. set block at loop-block-3 to stone
  28. wait 5 ticks
  29. subtract arg 2 from {_chunkx}
  30. set {_chunkx} to arg 1
  31. subtract {_size} from {_chunkz}
  32. send "{@P} Sky Ores Process Finished!" to all ops
  33.  
  34. command /skyorescancel:
  35. permission: skript.op
  36. trigger:
  37. set {skyores.cancel} to true
  38. send "{@P} Sky Ores Process Cancelled!" to all ops
Advertisement
Add Comment
Please, Sign In to add comment