EmptyWorldGenerator - no land
#2
Here a small plugin that creates a empty world

Code:
function Initialize(Plugin)
    Plugin:SetName("EmptyWorld")
    Plugin:SetVersion(1)

    PLUGIN = Plugin
    cPluginManager:AddHook(cPluginManager.HOOK_CHUNK_GENERATING, OnChunkGenerating)
        
    return true
end
    
function OnChunkGenerating(a_World, a_ChunkX, a_ChunkZ, a_ChunkDesc)
    if (a_World:GetName() == "emptyworld") then
        a_ChunkDesc:SetUseDefaultBiomes(false)
        a_ChunkDesc:SetUseDefaultHeight(false)
        a_ChunkDesc:SetUseDefaultComposition(false)
        a_ChunkDesc:SetUseDefaultFinish(false)
    end
end


1) Create a directory named EmptyWorld inside of the directory Plugins and a file named EmptyWorld.lua and add the code
2) Open the file settings.ini (Server has to be started once, to generate the file)
3) Add under [Plugins] the line Plugin=EmptyWorld
4) Add under [Worlds] the line World=emptyworld

If you join the server you can then use the portal command to join the world: /portal emptyworld. If you get a permission warning run command "/rank <username> Admin" from console.
Reply
Thanks given by:


Messages In This Thread
EmptyWorldGenerator - no land - by feardevilz - 09-09-2016, 10:47 AM
RE: EmptyWorldGenerator - no land - by Seadragon91 - 09-09-2016, 02:32 PM
RE: EmptyWorldGenerator - no land - by feardevilz - 09-09-2016, 06:01 PM
RE: EmptyWorldGenerator - no land - by DrMasik - 09-09-2016, 07:02 PM
RE: EmptyWorldGenerator - no land - by feardevilz - 09-09-2016, 09:59 PM



Users browsing this thread: 1 Guest(s)