Problem with the first spawn on my map generator

Discussion in 'Plugin Development' started by nicoxxl, Nov 2, 2012.

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

    nicoxxl

    Hi everybody,

    I'm trying to make a new map generator, because I want ua uderground world.

    It create a world full of stone, with a bedrock layer on top and bottom, and an empty room for the spawn (it's basic for the moment). I define the spawn (in the code), then I go to this world (first connection, no nicoxxl.dat) I spawn over the bedrock. And when I suicide (with /kill), I spawn on the spawn.
    The piece of code:
    Code:
    @Override
    public Location getFixedSpawnLocation(World world, Random random)
    {
      int x = 8;
      int z = 8;
      int y = 66;
      return new Location(world, x, y, z);
    }
    Someone know what I'm doing wrong?
     
Thread Status:
Not open for further replies.

Share This Page