Jump to content

random chunk loading?


Recommended Posts

so i have this server where a random chunk gets generated and then its pretty much last one standing, but i'm having trouble with the skript, i'm pretty new to this
here is my current skript:
command generateisland:
    trigger:
        import com.sk89q.worldedit.EditSession
        import com.sk89q.worldedit.Vector
        import com.sk89q.worldedit.WorldEdit
        import com.sk89q.worldedit.bukkit.BukkitAdapter
        import com.sk89q.worldedit.function.operation.Operations
        import com.sk89q.worldedit.world.World
        
        set {_world} to world("world")  # Replace "world" with your world name if different
        set {_x} to 100
        set {_y} to 50
        set {_z} to 100
        set {_min} to new Vector({_x * 16}, 0, {_z * 16})  # Adjusting z to _z and setting min height to 0
        set {_max} to new Vector({_x * 16 + 15}, 255, {_z * 16 + 15})  # Adjusting z to _z and setting max height to 255
        set {_worldedit} to WorldEdit.getInstance()
        set {_session} to {_worldedit}.newEditSessionBuilder()
            .world(BukkitAdapter.adapt({_world}))
            .build()
        {_session}.makeCuboidWalls({_min}, {_max})
        send "Island generated from bedrock to height limit at X: {_x}, Z: {_z}"
 

Link to comment
Share on other sites

Moved to Skript Category. Please keep Skript-help posts in the Skript category.

rose city STICKER

RosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaR

i code, animate, develop, UI design, learn, and adapt, as well as make servers, of course

💐Joined Minehut sometime in 2014
💐VIP sometime in 2018
💐Legend in January 2021
💐Helper on 4/11/2021
💐♥ (Retired) on 5/17/2021
💐 Moderator on 8/18/2023

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...