Solved Set biome while generating the world?

Discussion in 'Plugin Development' started by V10lator, Nov 22, 2012.

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

    V10lator

    For private use I try to manipulate the CleanroomGenerator to generate chunks with a specific biome only.
    For that to work I added this to the CleanroomBlockPopulator:
    Code:java
    1. chunk.getBlock(0, 0, 0).setBiome(Biome.DESERT);
    [/syntax]
    I also tried
    Code:java
    1. for(int x = 0; x < 16; x++)
    2. for(int z = 0; z < 16; z++)
    3. chunk.getBlock(x, 0, z).setBiome(Biome.DESERT);

    as well as
    Code:java
    1. for(int x = 0; x < 16; x++)
    2. for(int y = 0; y < 256; y++)
    3. for(int z = 0; z < 16; z++)
    4. chunk.getBlock(x, y, z).setBiome(Biome.DESERT);

    But it doesn't work. What am I doing wrong?

    Never mind, the CleanroomGenerator returns a empty populator list if no data values are specified. I removed that ad now it's working. :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 30, 2016
Thread Status:
Not open for further replies.

Share This Page