How to manage WorldBorder in Skript?

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

Mar 16, 2025
7
2
3
25
I tried to change the size of the world border, but it didn't work out, here's my first script:
Code:
command /border:
    trigger:
        set world border of world "world" to 100 #also i tried: set world border of player's world to 100

Next, I decided to try using org.bukkit:
Code:
command /barrier:
    trigger:
        set {_world} to world "world"
        set {_bukkitworld} to {_world} parsed as org.bukkit.World
        set {_border} to {_bukkitworld}.getWorldBorder()
        eval "%{_border}%.setSize(100, 10 * 20)"

But everything also doesn't work, please tell us how to manage the world border in Skript.
 
I tried to change the size of the world border, but it didn't work out, here's my first script:
Code:
command /border:
    trigger:
        set world border of world "world" to 100 #also i tried: set world border of player's world to 100

Next, I decided to try using org.bukkit:
Code:
command /barrier:
    trigger:
        set {_world} to world "world"
        set {_bukkitworld} to {_world} parsed as org.bukkit.World
        set {_border} to {_bukkitworld}.getWorldBorder()
        eval "%{_border}%.setSize(100, 10 * 20)"

But everything also doesn't work, please tell us how to manage the world border in Skript.

SkBee allows you to do this.

Example code:
Python:
set size of world border of world "world" to arg 1