Recover a minecraft seed
The world I've been playing crashed recently and took the level.dat with it, so I've recreated it, however I have no idea what my seed used to be, and I really don't want to end up with another corrupted game world from exploring with the wrong seed.
How can I recover the seed which was used to generate my world?
21 Answer
This can be done using a third party tool, NBTExplorer which reads the data files used by Minecraft:
Open the save folder for the world, e.g.
.minecraft\saves\MyWorldFind the file called
level.dat_mcrand copy it out of the save folderRename the file to
level.datOpen it with NBTExplorer
Expand the 'Data' tab by clicking on the
[+]button next to it.Double click on the
RandomSeedkey, and you'll get a popup window containing the original seed for the level, like this:Copy this value into the same place in the new
level.datfor your save file, then save and close it.
Your new level.dat file will then have the same seed as the old one.