How do I generate a random vanilla world?

Discussion in 'Plugin Development' started by Sheepii, Jan 19, 2015.

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

    Sheepii

    I want to add a function, where I generate a new world. I will also want to delete the world afterwards. How would I go about doing this?
     
  2. Offline

    adam753

    Code:
    WorldCreator creator = new WorldCreator("MyWorldName");
    You can then use creator to set whatever options you want for your world, such as seed and whether it should generate structures, and for more advanced control you can create your own ChunkGenerator to specify exactly how the world will look. Check the javadoc for all the methods (you don't actually have to specify all these things, but I figure you'll at least want to set the seed.)

    After that:
    Code:
    Bukkit.createWorld(creator);
     
  3. Offline

    Sheepii


    Can I make it so that it won't be an ocean biome?
     
Thread Status:
Not open for further replies.

Share This Page