GlowstoneMC / Glowstone-Legacy

An open-source server for the Bukkit Minecraft modding interface
Other
363 stars 122 forks source link

Add ability to specify World Generator (and settings) for every stock world #630

Open Ribesg opened 9 years ago

Ribesg commented 9 years ago

The world section of glowstone.yml would then look like this, for example:

world:
    name: world
    # [...]
    generator: MyGeneratorPlugin:Overworld
    allow-nether: true
    nether-generator: MyGeneratorPlugin:Nether
    allow-end: true
    end-generator: MyGeneratorPlugin:End
Ribesg commented 9 years ago

I found that, as the behaviour of things seems to have been copy-pasted from Bukkit basically, you can define generators the same way you do in Bukkit:

world:
    name: world
    # [...]

worlds:
    world:
        generator: MyGeneratorPlugin:Overworld
    world_nether:
        generator: MyGeneratorPlugin:Nether
    world_the_end:
        generator: MyGeneratorPlugin:End

It works, but maybe it's a bit weird.

turt2live commented 9 years ago

Extension of #76.