Chunk options for flat worlds.

Discussion in 'Plugin Development' started by ewized, Feb 14, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    ewized

    Hey I was looking in the API and I cant seem to find any code to change the type of blocks for the flat world like they when you create the world.
     
  2. Offline

    stirante

    You have generator-settings in server.properties file where you type preset. For example this is classic superflat 2;7,2x3,2;1;village
    If you want to change it by plugin give me a second to find it in nms.

    EDIT: It wasn't a second :p Get from nms world worldData object and set in it
    generatorOptions to your preset.
     
  3. Offline

    ewized

    Sorry I dont under stand an nms can you show me an example of the code I want to expand it off of this if possible?
    Code:
    WorldCreator.name(name).type(WorldType.FLAT).environment(World.Environment.NORMAL).createWorld();
    
     
Thread Status:
Not open for further replies.

Share This Page