Advertisement
fleft17

Untitled

Jul 26th, 2014
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 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: 159:3, 35:8, 159:3, 159:11, 35:8, 159:3, 95:0, or 95:10
  10.  
  11. #---------------------------------------------------------------------
  12.  
  13. #Don't edit anything below here.
  14.  
  15. command /setwalls <world> <integer>:
  16. description: Setwalls in world for radius
  17. usage: /setwalls <world> <radius>
  18. permission: skript.setwalls
  19. trigger:
  20. if arg 2 is less than 10:
  21. message "&8[&bFavonius&8]&r §rToo small radius!"
  22. else:
  23. loop all players:
  24. if loop-player has the permission "skript.setwalls":
  25. message "&8[&bFavonius&8]&e %command sender%&r: Setting walls with radius &a%arg-2%" to loop-player
  26. else:
  27. message "§f[§7Setwalls§f] §aSetting walls §rin ""§e%arg 1%§r"" with radius §e%arg 2%" to loop-player
  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 1 second ago:
  54. set {_BCTime} to now
  55. broadcast "&8[&bFavonius&8]&r Status: &a%(loop-number)/2.56%§a%% §rdone. &8[§b%loop-number%§8/&a256&8]"
  56.  
  57. broadcast "&8[&bFavonius&8]&e Finished!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement