Advertisement
Winter__

Untitled

Aug 19th, 2014
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. options:
  2. Block: bedrock
  3.  
  4. command /setwalls <integer> <world>:
  5. description: Setwalls in world for radius
  6. usage: /setwalls <radius> <world>
  7. permission: skript.setwalls
  8. trigger:
  9. if arg 1 is less than 10:
  10. message "&e[&9Setwalls&e]&a §rToo small radius!"
  11. else:
  12. loop all players:
  13. loop-player has the permission "skript.setwalls"
  14. loop-player is not the command sender
  15. message "&e[&9Setwalls&e]&a §9%command sender% §rin ""§e%arg 2%§r"" with radius §e%arg 1%" to loop-player
  16.  
  17. message "&e[&9Setwalls&e]&a §rSetting in ""§e%arg 2%§r"" with radius §e%arg 1%" to command sender
  18.  
  19. set {_Time} to now
  20. loop 256 times:
  21. # North stripe
  22. loop blocks from (block at (location at (0-(arg 1)-0.5), ((loop-number)-0.5), (0-(arg 1)-0.5) of the world arg 2)) to (block at (location at ((arg 1)+0.5), ((loop-number)-0.5), (0-(arg 1)-0.5) of the world arg 2)):
  23. set loop-block to {@Block}
  24.  
  25. #South stripe
  26. loop blocks from (block at (location at (0-(arg 1)-0.5), ((loop-number)-0.5), ((arg 1)+0.5) of the world arg 2)) to (block at (location at ((arg 1)+0.5), ((loop-number)-0.5), ((arg 1)+0.5) of the world arg 2)):
  27. set loop-block to {@Block}
  28.  
  29. # East stripe
  30. loop blocks from (block at (location at ((arg 1)+0.5), ((loop-number)-0.5), (0-(arg 1)-0.5) of the world arg 2)) to (block at (location at ((arg 1)+0.5), ((loop-number)-0.5), ((arg 1)+0.5) of the world arg 2)):
  31. set loop-block to {@Block}
  32.  
  33. # West stripe
  34. loop blocks from (block at (location at (0-(arg 1)-0.5), ((loop-number)-0.5), (0-(arg 1)-0.5) of the world arg 2)) to (block at (location at (0-(arg 1)-0.5), ((loop-number)-0.5), ((arg 1)+0.5) of the world arg 2)):
  35. set loop-block to {@Block}
  36.  
  37. wait 2 ticks
  38. if {_Time} was more than 2 seconds ago:
  39. message "&e[&9Setwalls&e]&a Status: &c§4%(loop-number)/2.56%§4%% §rdone." to command sender
  40. set {_Time} to now
  41.  
  42. message "&e[&9Setwalls&e]&a §rFinished!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement