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: light gray clay, cyan clay, or blue clay #locked chest:0, locked chest:8, or locked chest:9
- P: &7[&eWalls&7]
- HC: &b
- CC: &r
- #---------------------------------------------------------------------
- #Don't edit anything below here.
- command /setwalls <world> <integer>:
- description: Setwalls in world for radius
- usage: /setwalls <world> <radius>
- permission: skript.setwalls
- trigger:
- command sender is player:
- broadcast "{@P}{@HC} %command sender%{@CC}: Setting walls with radius {@HC}%arg-2%"
- 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 5 second ago:
- set {_BCTime} to now
- broadcast "{@P} {@HC}%(loop-number)/2.56%%%"
- broadcast "{@P}{@CC} Finished!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement