1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Border shrink checker

Discussion in 'Requests' started by SandyVerse, May 20, 2017.

  1. SandyVerse

    SandyVerse Active Member

    Joined:
    Mar 19, 2017
    Messages:
    51
    Likes Received:
    0
    Category: Border Shrink

    Suggested name: Border Shrink

    What I want:
    Essentially, using the Minecraft vanilla 1.8 border, I want a /checkborder to see what the border would be at currently (down to the last block, preferably). Ex: The border is at 752x752, when I run /checkborder, it shows that exact size, but when I do /checkborder again, it shows the newly updated border shrink.

    Ideas for commands: /checkborder

    Ideas for permissions: skript.op

    When I'd like it by: ASAP








    (Using the code from this)
    Code (Skript):
    1. #This is a shrink border skript made by OrganizedMadness!
    2. #Feel free to edit anything  in the Options that you want!
    3.  
    4. #Before using the /shrink command, make sure you have the worldborder set up in the chosen world first
    5. #Use /minecraft:worldborder center 0 0 on the chosen world
    6. #Then do /minecraft:worldborder set [Diameter] - Not to be confused with radius!
    7.  
    8. #WARNING: If the world border is still moving whilst you execute a command, the border will glitch. Please wait till the shrink is complete.
    9.  
    10. Options:
    11.     P: &8[&bAbyssal&8]&R #Set server name and colour's
    12.     N: %command sender%&6 #Set colour of the command sender
    13.     C: &7 #Set the colour of the text - default is organge
    14.     Q: &c&L #Set the second colour of the text - default is red bold/&c&L
    15.  
    16. command /shrink <integer> <integer>:
    17.     usage: /shrink <diameter OR halt> <time in minutes>
    18.     permission: skript.op
    19.     trigger:
    20.         set {_Shrink} to true
    21.         if arg 1 is a number:
    22.             broadcast "{@P}{@C} Preparing to Shrink Border to {@Q}%arg 1/2%x%arg 1/2%{@C} over {@Q}%arg 2% Minutes{@C}!"
    23.             wait 1 second
    24.             broadcast "{@P}{@C} Shrinking Border in {@Q}5"
    25.             wait 1 second
    26.             broadcast "{@P}{@C} Shrinking Border in {@Q}4"
    27.             wait 1 second
    28.             broadcast "{@P}{@C} Shrinking Border in {@Q}3"
    29.             wait 1 second
    30.             broadcast "{@P}{@C} Shrinking Border in {@Q}2"
    31.             wait 1 second
    32.             broadcast "{@P}{@C} Shrinking Border in {@Q}1"
    33.             wait 1 second
    34.             broadcast "{@P}{@C} Shrinking Border to {@Q}%arg 1/2%x%arg 1/2%{@C} over {@Q}%arg 2% Minutes{@C}!"
    35.             make sender execute command "minecraft:worldborder set %arg 1% %arg 2 * 60%"
    36.             set {_delay} to arg 2
    37.             set {_delay} to {_delay} * 15
    38.             while {_delay} is greater than 0:
    39.                 wait 1 second
    40.                 set {_delay} to {_delay} - 1
    41.             broadcast "{@P}{@C} Shrinking Border to {@Q}%arg 1/2%x%arg 1/2%{@C} - {@Q}25%% {@C}Complete!"
    42.             set {_delay} to arg 2
    43.             set {_delay} to {_delay} * 15
    44.             while {_delay} is greater than 0:
    45.                 wait 1 second
    46.                 set {_delay} to {_delay} - 1
    47.             broadcast "{@P}{@C} Shrinking Border to {@Q}%arg 1/2%x%arg 1/2%{@C} - {@Q}50%% {@C}Complete!"
    48.             set {_delay} to arg 2
    49.             set {_delay} to {_delay} * 15
    50.             while {_delay} is greater than 0:
    51.                 wait 1 second
    52.                 set {_delay} to {_delay} - 1
    53.             broadcast "{@P}{@C} Shrinking Border to {@Q}%arg 1/2%x%arg 1/2%{@C} - {@Q}75%% {@C}Complete!"
    54.             set {_delay} to arg 2
    55.             set {_delay} to {_delay} * 15
    56.             while {_delay} is greater than 0:
    57.                 wait 1 second
    58.                 set {_delay} to {_delay} - 1
    59.             broadcast "{@P}{@C} Shrinking Border to {@Q}%arg 1/2%x%arg 1/2%{@C} - {@Q}100%% {@C}Complete!"
    60.             set {_delay} to arg 2
    61.             wait 1 second
    62.             broadcast "{@P}{@C} World border was shrunk to {@Q}%arg 1/2%x%arg 1/2%{@C} by {@Q}{@N}{@C}!"
    63.            
    64. command /shrinkcenter:
    65.     permission: skript.op
    66.     trigger:
    67.         make player execute command "/minecraft:worldborder center 0 0"
    68.         send "{@P} &7You have centered the border!"
    69.        
    70. command /shrinksize <integer>:
    71.     permission: skript.op
    72.     trigger:
    73.         make player execute command "/minecraft:worldborder set %arg-1% 0"
    74.         make player execute command "/minecraft:worldborder damage buffer 10"
    75.         make player execute command "/minecraft:worldborder damage amount 0.001"
    76.         send "{@P} &7Border set!"
    77.  
     

Share This Page

Loading...