Worldborder setcenter Skript-mirror

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

MeHow

Active Member
Feb 6, 2017
140
13
18
22
Lithuania
Hey guys, I am trying to make worldborder with skript mirror and It's doesn't work. I am trying to extract coordinates from location and set size
code_language.skript:
command /wbe [<number>]:
    trigger:
        if player is op:
            Set {_x} To x-coordinate of {mb.worldboarder.%arg-1%}
            Set {_z} To z-coordinate of {mb.worldboarder.%arg-1%}   
            set {_w} to "{@world}" parsed as a world
            #send "%{mb.worldboarder.%arg-1%}% %{_w}%  %{_x}%,%{_z}%"
            {_w}.getWorldBorder().setSize(600,0)
            {_w}.getWorldBorder().setCenter(%{_x}%,%{_z}%)
            wait 30 seconds
            {_w}.getWorldBorder().setSize(200,60)
            wait 30 seconds
            {_w}.getWorldBorder().setSize(100,60)   
            wait 30 seconds
            {_w}.getWorldBorder().setSize(50,60)   
            wait 30 seconds
            {_w}.getWorldBorder().setSize(25,60)
Thanks for help
 
Hey guys, I am trying to make worldborder with skript mirror and It's doesn't work. I am trying to extract coordinates from location and set size
code_language.skript:
command /wbe [<number>]:
    trigger:
        if player is op:
            Set {_x} To x-coordinate of {mb.worldboarder.%arg-1%}
            Set {_z} To z-coordinate of {mb.worldboarder.%arg-1%}  
            set {_w} to "{@world}" parsed as a world
            #send "%{mb.worldboarder.%arg-1%}% %{_w}%  %{_x}%,%{_z}%"
            {_w}.getWorldBorder().setSize(600,0)
            {_w}.getWorldBorder().setCenter(%{_x}%,%{_z}%)
            wait 30 seconds
            {_w}.getWorldBorder().setSize(200,60)
            wait 30 seconds
            {_w}.getWorldBorder().setSize(100,60)  
            wait 30 seconds
            {_w}.getWorldBorder().setSize(50,60)  
            wait 30 seconds
            {_w}.getWorldBorder().setSize(25,60)
Thanks for help

You don't need %'s around {_x} and {_z}. Also you need semicolons at the end of the lines that set the size and center of the worldborder
 
Status
Not open for further replies.