Advertisement
fleft17

Untitled

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