Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #BorderShrink by AudaxMC
- options:
- world: uhc
- command /bordershrink <text>:
- usage: /bodershrink <distance to shrink to (500 or 1000)>
- aliases: /bs
- permission: skript.op
- trigger:
- if arg 1 is equal to "1000":
- command "/scoreboard objectives setdisplay sidebar UHC"
- broadcast "&6The border will shrink to 1000x1000 in 5 minutes!"
- wait 4 minutes
- broadcast "&6The border will shrink to 1000x1000 in 1 minute!"
- wait 30 seconds
- broadcast "&6The border will shrink to 1000x1000 in 30 seconds!"
- wait 20 seconds
- broadcast "&6The border will shrink to 1000x1000 in 10 seconds!"
- wait 7 seconds
- broadcast "&6The border will shrink to 1000x1000 in 3 seconds!"
- wait 1 second
- broadcast "&6The border will shrink to 1000x1000 in 2 seconds!"
- wait 1 second
- broadcast "&6The border will shrink to 1000x1000 in 1 seconds!"
- wait 1 second
- broadcast "&6All players that were outside of 1000x1000 were teleported to 1000, 1000!"
- loop all players:
- if loop-player's x-coordinate is smaller than -1000:
- if loop-player's z-coordinate is smaller than -1000:
- command "/tp %loop-player% -999 200 -999"
- command "/setwalls {@world} 1000"
- command "/wb uhc setcorners 1000 -1000 -1000 1000"
- if loop-player's x-coordinate is larger than 1000:
- if loop-player's z-coordinate is larger than 1000:
- command "/tp %loop-player% 999 200 999"
- command "/setwalls {@world} 1000"
- command "/wb uhc setcorners 1000 -1000 -1000 1000"
- if loop-player's x-coordinate is larger than 1000:
- if loop-player's z-coordinate is smaller than -1000:
- command "/tp %loop-player% 999 200 -999"
- command "/setwalls {@world} 1000"
- command "/wb uhc setcorners 1000 -1000 -1000 1000"
- if loop-player's x-coordinate is smaller than -1000:
- if loop-player's z-coordinate is larger than 1000:
- command "/tp %loop-player% -999 200 999"
- command "/setwalls {@world} 1000"
- command "/wb uhc setcorners 1000 -1000 -1000 1000"
- if arg 1 is equal to "500":
- command "/scoreboard objectives setdisplay sidebar UHC"
- broadcast "&6The border will shrink to 500x500 in 5 minutes!"
- wait 4 minutes
- broadcast "&6The border will shrink to 500x500 in 1 minute!"
- wait 30 seconds
- broadcast "&6The border will shrink to 500x500 in 30 seconds!"
- wait 20 seconds
- broadcast "&6The border will shrink to 500x500 in 10 seconds!"
- wait 7 seconds
- broadcast "&6The border will shrink to 500x500 in 3 seconds!"
- wait 1 second
- broadcast "&6The border will shrink to 500x500 in 2 seconds!"
- wait 1 second
- broadcast "&6The border will shrink to 500x500 in 1 seconds!"
- wait 1 second
- broadcast "&6All players that were outside of 500x500 were teleported to 500, 500!"
- loop all players:
- if loop-player's x-coordinate is smaller than -500:
- if loop-player's z-coordinate is smaller than -500:
- command "/tp %loop-player% -499 200 -499"
- command "/setwalls {@world} 500"
- command "/wb uhc setcorners 500 -500 -500 500"
- if loop-player's x-coordinate is larger than 500:
- if loop-player's z-coordinate is larger than 500:
- command "/tp %loop-player% 499 200 499"
- command "/setwalls {@world} 500"
- command "/wb uhc setcorners 500 -500 -500 500"
- if loop-player's x-coordinate is larger than 500:
- if loop-player's z-coordinate is smaller than -500:
- command "/tp %loop-player% 499 200 -499"
- command "/setwalls {@world} 500"
- command "/wb uhc setcorners 500 -500 -500 500"
- if loop-player's x-coordinate is smaller than -500:
- if loop-player's z-coordinate is larger than 500:
- command "/tp %loop-player% -499 200 499"
- command "/setwalls {@world} 500"
- command "/wb uhc setcorners 500 -500 -500 500"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement