Solved Creating a void world?

Discussion in 'Plugin Development' started by unforgiven5232, Jun 7, 2014.

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

    unforgiven5232

    I have no idea why this is so hard for me, but can someone help me create a world thats completely void

    PS: I don't want to loop through blocks replacing them to air.
     
  2. Offline

    Timbals

  3. Offline

    unforgiven5232

    Timbals i have, but i remember using a extremely simple way of making a void world, but i cannot remember.
     
  4. Offline

    lenis0012

    Go like this:
    Code:java
    1. WorldCreator creator = new WorldCreator("world");
    2. creator.generator(new ChunkGenerator() {
    3. @Override
    4. public byte[] generate(World world, Random random, int x, int z) {
    5. return new byte[32768]; //Empty byte array
    6. }
    7. });
    8. World world = creator.createWorld();
     
  5. Offline

    unforgiven5232

    lenis0012 Thanks it makes the world, but when i try teleporting to that world, it gives an error on the p.teleport();

    EDIT: I had a bad import, im sorry but it works great now thanks alot
     
Thread Status:
Not open for further replies.

Share This Page