Hibbsi wrote:I've figured out something annoying. A game-generated world that is the result of not entering a seed cannot be reproduced.
I know that Minecraft uses the java.util.Random implementation of a generator. If it wasn't, then my earlier test of using strings that happened to have the same hash codes creating exactly the same world wouldn't have gone the way it did.
Java's implementation of a pseudo-random generator uses two constructors:and the system time is retrieved with:
- Random() : uses system time as seed
- Random(long seed) : uses "seed" as the seed
- currentTimeMillis() : returns the difference, measured in milliseconds, between the current time and midnight, January 1, 1970 UTC as a long value.
The strings entered as seeds produce hash codes from -2,147,483,648 to 2,147,483,647.
As of right now, the current UNIX time in milliseconds is about 1,300,000,000,000.
So, unless the system time of your computer reverts back to some time in the first 25 days of 1970, you can't possibly have a time-seeded world that can be reproduced with an entered seed.
I kinda wanted to post some my older worlds' seeds because they are awesome, but it's impossible
That' really agitating. =\
I've punched in about 30-50 seeds and they all seem to be rolling mountains or sandy dunes and 1-3 lone massive mountains. Seems the more interesting hash codes are in the area of 100,000-9,999,999




