Maploader

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

Peivi

Member
Jan 28, 2018
25
0
0
22
there.
Category: Skript

Suggested name: no name included

What I want:
I want a map loader for minigames. The maps could remove and apply themselves. The problem with it is that how could i set spawn to just a second ago loaded map. Also i want to load maps, because the players could place blocks there.

The maps should be maps that i made for duels. Not just randomly-generated maps. Thanks!!

Ideas for commands: no commands

Ideas for permissions: no permissions

When I'd like it by: asap. in a couple days would be nice.
 
hope this helps enough if you set the spawn settings and like gamerule settings of orginalWorld it will be copyed to world and you can create multiple worlds and make a randommizer that can copy to 1 world.

code_language.skript:
command /generatemap:
    trigger:
        broadcast "&cStarting..."
        
        save "OriginalWorld"
        
        broadcast "&cUnloading..."
        mv unload world "World"
        broadcast "&cUnloaded!"
        
        wait 1 second
        
        broadcast "&cDeleteing..."
        delete dir "World"
        broadcast "&cDeleted!"
        
        wait 1 second
        
        broadcast "&cGenerating..."
        mv clone world "OriginalWorld" to "World"
        broadcast "&cGenerated!"
        
        wait 1 second
        
        broadcast "&cLoading..."
        mv load world "World"
        broadcast "&cLoaded!"