Advertisement
fleft17

Untitled

Oct 3rd, 2014
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.29 KB | None | 0 0
  1. #---------------------------------------------------------------------
  2. options:
  3.  
  4. #159:3, 35:8, 159:3, 159:11, 35:8, 159:3, 95:0, or 95:10
  5. #PUT BLOCK NAMES AFTER THE "blocks: "
  6. #If you have multiple, chain them with a "," and a space after it,
  7. #and the last one should be "or". Like in the example line you downloaded this with
  8.  
  9. blocks: light gray clay, cyan clay, or blue clay #locked chest:0, locked chest:8, or locked chest:9
  10.  
  11.  
  12. P: &7[&eWalls&7]
  13.  
  14. HC: &b
  15.  
  16. CC: &r
  17. #---------------------------------------------------------------------
  18.  
  19. #Don't edit anything below here.
  20.  
  21. command /setwalls <world> <integer>:
  22. description: Setwalls in world for radius
  23. usage: /setwalls <world> <radius>
  24. permission: skript.setwalls
  25. trigger:
  26. command sender is player:
  27. broadcast "{@P}{@HC} %command sender%{@CC}: Setting walls with radius {@HC}%arg-2%"
  28.  
  29. set {_TickTime} to now
  30. set {_BCTime} to now
  31.  
  32. loop 256 times:
  33. # North stripe
  34. loop blocks from (block at (location at (0-(arg 2)-0.5), ((loop-number)-0.5), (0-(arg 2)-0.5) of the world (arg 1))) to (block at (location at ((arg 2)+0.5), ((loop-number)-0.5), (0-(arg 2)-0.5) of the world (arg 1))):
  35. set loop-block to {@blocks}
  36.  
  37. #South stripe
  38. loop blocks from (block at (location at (0-(arg 2)-0.5), ((loop-number)-0.5), ((arg 2)+0.5) of the world (arg 1))) to (block at (location at ((arg 2)+0.5), ((loop-number)-0.5), ((arg 2)+0.5) of the world (arg 1))):
  39. set loop-block to {@blocks}
  40.  
  41. # East stripe
  42. loop blocks from (block at (location at ((arg 2)+0.5), ((loop-number)-0.5), (0-(arg 2)-0.5) of the world (arg 1))) to (block at (location at ((arg 2)+0.5), ((loop-number)-0.5), ((arg 2)+0.5) of the world (arg 1))):
  43. set loop-block to {@blocks}
  44.  
  45. # West stripe
  46. loop blocks from (block at (location at (0-(arg 2)-0.5), ((loop-number)-0.5), (0-(arg 2)-0.5) of the world (arg 1))) to (block at (location at (0-(arg 2)-0.5), ((loop-number)-0.5), ((arg 2)+0.5) of the world (arg 1))):
  47. set loop-block to {@blocks}
  48.  
  49. if {_TickTime} was more than 0.05 seconds ago:
  50. wait 1 ticks
  51. set {_TickTime} to now
  52.  
  53. if {_BCTime} was more than 5 second ago:
  54. set {_BCTime} to now
  55. broadcast "{@P} {@HC}%(loop-number)/2.56%%%"
  56.  
  57. broadcast "{@P}{@CC} Finished!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement