Seed (level generation)

Seeds are values made up of character(s) (including negative or positive integers) that are used as the basis for generating every Minecraft world.A Sohrt Demystification of the 'Map Seed' - Jens Bergensten on Mojang.com; February 23, 2011
== Compatibility ==
Seeds are somewhat compatible across editions, with terrain generation and biomes being the same. However, structure locations still remain different between Java Edition and Bedrock Edition.
== World generation ==
Whenever the game has to generate a new world, it calls upon an algorithm known as Perlin noise. This algorithm outputs a pseudo-random value that is then used to determine the characteristics and features of the world. However, the algorithm always outputs the same value each time for a constant starting point (seed). Thus, the same seed generates the same terrain every time.
A world's seed is set when that world is created. By default, it is decided automatically, but it can also be set manually. Setting and reusing a seed from one world generates the same world. Either a number or a word/phrase can be used, including negatives. If a word/phrase is used, it is converted into a 32-bit integer.
Whenever the world generation algorithm is updated (usually by adding new biomes to the game), the same seed no longer generates the same terrain. If the seed or generator changes in a saved world, new chunks are based on the new seed and no longer match those from the old seed. Deleted chunks can regenerate if the seed and generator remain the same, but changes if either the seed or generator changes. In fact, deleting chunks is sometimes done to let newly-introduced features appear in an old world; see Tutorials/Updating old oceans in 1.13 using MCEdit.
Because seeds are simply random values read into an algorithm and not actually names of different worlds, using a certain seed does not result in a world with any relevance to the value of that seed. For instance, using a biome name as the seed does not necessarily result in the creation of a world with primarily that biome, nor does it spawn the player within the said biome.
== Determining the seed ==
, the player can enter the command to view the world's seed. This command is available in singleplayer worlds even if cheats are off. The player can also select 'Re-create' in the Worlds menu to see the seed.
, the seed can be found on the world options screen. There are also seed templates that offers the player several pre-set seeds to generate worlds with specific features near the spawn point. Additionally, the beta version has a visible seed on the top of the screen.
== Technical ==
=== Realms ===
, a player can type in the chat. , the seed is not visible when playing on Realms.
=== General ===
If the seed contains characters other than numbers or is greater than or equal to 20 characters in length, the Java String.hashCode() function is used to generate a number seed. This restricts Minecraft to a subset of the possible worlds to 232 (or 4,294,967,296), due to the datatype used. Number seeds or a default world seed must be used to access the full set of possible worlds (264, or 18,446,744,073,709,551,616).
=== Overlap between editions ===
All Java and Bedrock Edition seeds in the range from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807, generate the same terrain and biomes in both Java and Bedrock editions, although with differing structures, decorator placements, carver caves, and mob spawns.
===Generation quirks ===
Through certain seeds, it is possible to observe interesting effects.
====Changing terrain without changing some structures ====
Only certain sections of the seed are used to generate specific features within the world. It is possible to generate multiple worlds with identical cave systems, Nether biomes and other arrangements of generated structures simply by converting the seed into binary and tweaking the desired bits.https://www.minecraftforum.net/forums/minecraft-java-edition/seeds/2229720-can-two-different-seeds-produce-identical-worlds An example is the seed generator using only the first 48 bits to generate cave systems and badlands clay banding layers.
==== Repetition ====
Certain seeds return 0 in the internal code,http://stackoverflow.com/questions/3065554/can-javas-random-function-be-zero causing infinite arrays of caves and other structures to generate. , the seed returns 0 on the first call and returns 0 on the second call, causing mineshafts, caves and underwater ravines to loop on the X and Z axes respectively.https://www.reddit.com/r/MCPE/comments/5i6sae/recursive_infinite_mineshaft_seeds_on_mcpe/
Features in seeds can repeat, such as decorations. These generate diagonally.https://www.youtube.com/watch?v=UtNXUMrSIxQ
, diagonal cave, ravine, dungeon, and decoration repetition occur with the seeds and . Mineshaft generation repeats vertically in the seeds and .
Any seed calculated as also generate maps with repeating features.
==Video==
==History==
== Trivia ==
=== Notable Java Edition seeds ===
The following map seeds have, at one point or another, been used for generating official Minecraft maps and resources or otherwise significant community material.
* The Java Edition demo world seed can be played in the full version by entering in the seed input.
* The PC Gamer demo world seed can be played in the appropriate era by entering , all lowercase unlike the famous seed where the G is capitalized, in the seed input.
* The seed for each title screen panorama are as follows:
**The panorama used between Beta 1.8 Pre-release and 18w22c is either or ,https://www.reddit.com/r/Minecraft/comments/hthrmk/big_news_we_have_found_the_seed_of_minecrafts/ generated between Beta 1.6.6 and Beta 1.7.
** The panorama used for Java Edition 1.13 is , which is the seed resulting from typing in as a seed, generated in snapshot 18w22a.
** Java Edition 1.14 is , taken in 18w48a.
** Java Edition 1.15 is , taken in 19w40a.
** Java Edition 1.16 is , taken in 20w13a.
** Java Edition 1.18 is , taken in 21w40a.
**The panorama used for Java Edition 1.19 is , which is the seed resulting from typing in as a seed, generated in snapshot 22w15a.
** Java Edition 1.20 is , taken in 23w14a.
* The seed for the original pack.png file is , generated in Alpha v1.2.2, and is also Minecraft Bedrock Edition's New UI of Create New World's Example Seed since Bedrock Edition beta 1.18.20.21 and this seed spawns you in a Biome in with these structures and other biomes since Bedrock beta 1.18.20.21.https://www.reddit.com/r/MinecraftAtHome/comments/iocx6f/packpng_seed_was_found_explanation_tutorial_and It can also be generated between Alpha v1.2.0 and Beta 1.7.3 with minor population differences.
* The seed for the Skull on Fire painting is either or , generated in Alpha v1.1.2_01 or prior.https://www.reddit.com/r/Minecraft/comments/iqg3ey/the_original_screenshot_seed_of_the_minecraft/
* The seed used for the original Herobrine doctored screenshot is , generated in Alpha v1.0.16_02.
* The seed used for the original Herobrine hoax livestream is , generated in Alpha v1.0.17_04.
== References ==
== External links ==
=== Bedrock and Java Editions ===
* Chunkbase Minecraft Apps: Online seed/map explorer tool
* Minecraft Seeds on Reddit: Community-driven Minecraft Seeds
* Minecraft Seeds: Community-driven Minecraft Seeds
* LookingForSeed: Find Minecraft seeds from various categories
* Minemap.org: High resolution maps for good seeds for the Java and Windows 10 (Bedrock) Edition
=== Java Edition only ===
* Random Seed Reader: Local Java tool
* Minecraft SeedHunt: Selected Seeds from various categories for Java 1.16
* Minecraft Seeds Java Edition: New Seeds for 1.16.4 Version
* SeedCracker: guess a seed from a multiplayer server
* Seeder: Seed/map explorer tool and finder for Java
cs:Zdroj
de:Startwert
es:Semilla (generación de mundo)
fr:Graine (génération de carte)
ja:シード値
ko:시드
nl:Seed (wereldgeneratie)
pl:Ziarno generatora
pt:Semente (geração de níveis)
ru:Зерно
uk:Зерно (генерація світу)
zh:种子（世界生成）