World generation: Getting the seed

Discussion in 'Plugin Development' started by DeMaggo, Sep 14, 2013.

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

    DeMaggo

    Greetings everyone,

    I'm about to write a world generator and want to use the seed to randomize the buildup algorithm. My question is: How do I get the basic seed in the first place?
    public byte[] generate(World world, Random rand, int chunkx, int chunkz)

    Does the Random in this case base off the seed already? Does it change for different chunks?

    Thanks in advance,
    DeMaggo
     
  2. Offline

    DeMaggo

    *bump* No advanced developer around to help me out? =(
     
  3. Offline

    metalhedd


    I'm not 100% sure, so don't take it as gospel, but I am fairly certain that the Random instance you recieve is already seeded by the level seed, but I don't think you can retrieve it that way. You can do world.getSeed() though.
     
Thread Status:
Not open for further replies.

Share This Page