Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #---------------------------------------------------------------------
- options:
- #159:3, 35:8, 159:3, 159:11, 35:8, 159:3, 95:0, or 95:10
- #PUT BLOCK NAMES AFTER THE "blocks: "
- #If you have multiple, chain them with a "," and a space after it,
- #and the last one should be "or". Like in the example line you downloaded this with
- blocks: 159:3, 35:8, 159:3, 159:11, 35:8, 159:3, 95:0, or 95:10
- #---------------------------------------------------------------------
- #Don't edit anything below here.
- command /setwalls <world> <integer>:
- description: Setwalls in world for radius
- usage: /setwalls <world> <radius>
- permission: skript.setwalls
- trigger:
- if arg 2 is less than 10:
- message "&8[&bFavonius&8]&r §rToo small radius!"
- else:
- loop all players:
- if loop-player has the permission "skript.setwalls":
- message "&8[&bFavonius&8]&e %command sender%&r: Setting walls with radius &a%arg-2%" to loop-player
- else:
- message "§f[§7Setwalls§f] §aSetting walls §rin ""§e%arg 1%§r"" with radius §e%arg 2%" to loop-player
- set {_TickTime} to now
- set {_BCTime} to now
- loop 256 times:
- # North stripe
- 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))):
- set loop-block to {@blocks}
- #South stripe
- 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))):
- set loop-block to {@blocks}
- # East stripe
- 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))):
- set loop-block to {@blocks}
- # West stripe
- 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))):
- set loop-block to {@blocks}
- if {_TickTime} was more than 0.05 seconds ago:
- wait 1 ticks
- set {_TickTime} to now
- if {_BCTime} was more than 1 second ago:
- set {_BCTime} to now
- broadcast "&8[&bFavonius&8]&r Status: &a%(loop-number)/2.56%§a%% §rdone. &8[§b%loop-number%§8/&a256&8]"
- broadcast "&8[&bFavonius&8]&e Finished!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement