[MC-1820] Cannot create world with seed 0 Created: 02/Nov/12  Updated: 19/Jan/22  Resolved: 02/Nov/12

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.2
Fix Version/s: None

Type: Bug
Reporter: Alex Campbell Assignee: Unassigned
Resolution: Works As Intended Votes: 0
Labels: None

Issue Links:
Relates
relates to MC-94025 A world with seed 0 cannot be copied ... Resolved
Confirmation Status: Unconfirmed

 Description   

If 0 is entered as the seed in the world generation screen, Minecraft will choose a random seed instead.



 Comments   
Comment by Connor Steppie [ 19/Jan/22 ]

Does 22w03a allow this to happen?

Comment by Mateus Pereira Milbradt [ 07/Oct/20 ]

If you want to get the seed 0, type "creashaks organzine". I also found a pink sheep on this seed.

Comment by Marcono1234 [ 10/Jan/16 ]

Duplicates MC-44944

Comment by bob [ 08/Dec/15 ]

This is a bug, there is a difference between a valid seed (which is any signed 64 bit number including 0) and a 'null' seed which should make it generate based on system time.

Comment by Jeuv [ 22/Nov/13 ]

I think this is a bug, creating a world and then changing the seed to 0 with an NBT editor works just fine.

Comment by Mustek [ 02/Nov/12 ]

I believe the reason here is that the game treats 0 as no seed given.
This causes it to randomly roll a seed based on your current system time.

So AFAIK, this is intended.

Comment by Do [ 02/Nov/12 ]

I don't see any particular reason to expect 0 to act one way or the other in this situation, so I'm marking this "Works As Intended" until I hear otherwise.

Comment by Do [ 02/Nov/12 ]

There's also been some confusion in MCPE, which does accept 0, which is treated the same as -0, and 0.1, and in fact any string starting with 0... but there probably would have been just as much confusion if 0 acted like a non-seed.

Comment by [Mod] CubeTheThird [ 02/Nov/12 ]

Yes that would make sense.

Comment by Simons Mith [ 02/Nov/12 ]

In multiplayer games the seed is hidden (and displayed as zero) so that you can't recreate a server world offline, and then loot the online world for stuff you found in the offline version. Given this, forbidding an actual seed of zero makes some sense, even though using seed 0 in an single player game would be harmless.

Comment by [Mod] CubeTheThird [ 02/Nov/12 ]

It is certainly possible that the algorithm doesn't work with 0, but as a computer scientist, I can almost certainly say that if it works with any other 19 digit numbers, it should also work with 0. I've also tried this with -0, and 0000000000000000000, and the behaviour does not change.

Comment by Dustin Dowell [ 02/Nov/12 ]

I wouldn't call this a bug. I think it's intentional. What does minecraft have to work with if you give it nothing? Zero probably breaks the algorithm that's used to generate the world. I know nothing of algoritims or anything but.. Zero multiplied by anything is zero.

Comment by [Mod] CubeTheThird [ 02/Nov/12 ]

Can confirm

Generated at Sun Jan 12 11:55:45 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.