Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- Block: bedrock
- command /setwalls <integer> <world>:
- description: Setwalls in world for radius
- usage: /setwalls <radius> <world>
- permission: skript.setwalls
- trigger:
- if arg 1 is less than 10:
- message "&e[&9Setwalls&e]&a §rToo small radius!"
- else:
- loop all players:
- loop-player has the permission "skript.setwalls"
- loop-player is not the command sender
- message "&e[&9Setwalls&e]&a §9%command sender% §rin ""§e%arg 2%§r"" with radius §e%arg 1%" to loop-player
- message "&e[&9Setwalls&e]&a §rSetting in ""§e%arg 2%§r"" with radius §e%arg 1%" to command sender
- set {_Time} to now
- loop 256 times:
- # North stripe
- 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)):
- set loop-block to {@Block}
- #South stripe
- 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)):
- set loop-block to {@Block}
- # East stripe
- 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)):
- set loop-block to {@Block}
- # West stripe
- 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)):
- set loop-block to {@Block}
- wait 2 ticks
- if {_Time} was more than 2 seconds ago:
- message "&e[&9Setwalls&e]&a Status: &c§4%(loop-number)/2.56%§4%% §rdone." to command sender
- set {_Time} to now
- message "&e[&9Setwalls&e]&a §rFinished!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement