[WGEN] Removing Biomes

Discussion in 'Plugin Development' started by alexmack929, Nov 1, 2012.

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

    alexmack929

    Hello there, does anybody know a easy way to stop a Biome from appearing, for example removing it as soon as it is generated without the use of a custom Chunk Generator?

    Thanks,
    alexmack929
     
  2. try chunk.setBiome
    I am unsure the exact function was called like that, if not, look at worldedit source for theirs //setbiome command
     
  3. Offline

    alexmack929

    Thanks for helping, but Biome's are done by block now, not chunk.
    Also, I need to remove it before the terrain is generated.
     
  4. Code:java
    1.  
    2. if(world.getBlockAt(chunkX, 0, chunkZ).getBiome() == Biome.JUNGLE) { //<- Because i hate Jungels
    3. world.getBlockAt(chunkX, 0, chunkZ).setBiome(Biome.SWAMPLAND); //<- Swampland is much better :)
    4. }
    5.  


    Haven't tested jet but schould work :))
     
Thread Status:
Not open for further replies.

Share This Page