{{About|player spawning|mob spawning|Mob spawning|other uses|Spawn (disambiguation)}}

The '''World Spawn''' is where [[player]]s generate in the ''Minecraft'' world.

== Spawn ==
[[File:Spawning Area.png|thumb|World spawning area. White represents the extent of singleplayer, blue represents multiplayer, and yellow represents the world spawn point.]]
{{see also|Spawn/Multiplayer details|title1=Multiplayer spawning details}}

New players initially spawn within a small area surrounding the world spawn point when the server is ''not'' in Adventure mode. Upon death or return from [[the End]] dimension, the player respawns within this area unless the player's [[#Individual spawn|individual spawn point]] changed (by using a [[bed]], [[respawn anchor]], or {{cmd|spawnpoint}} ).

This area is 21×21 blocks by default {{in|Java}} or 10x10 {{in|Bedrock}}, but can be changed by the <code>spawnRadius</code> gamerule in both single and multiplayer.

[[File:Bedrock Respawn Radius.png|thumb|Bedrock Edition's Respawn Radius setting interface.]]
When set to 0, the player spawns in the crosshair of four blocks. When set to 1, the player always spawns on the northwest of those four blocks. The maximum spawn radius is 99999999 blocks but when rejoining the world, it resets to 128 blocks. However, {{in|Bedrock}} on the discontinued "[[Old]]" world type, the maximum spawn radius in 256 blocks instead.
[[File:Bedrock Edition's new Respawn Radius interface..png|thumb|Bedrock Edition's new respawn radius interface.]]
When the player first loads into the world or respawns, the game searches within the world spawn area and tries to place the player on a random [[grass block]]. Upon spawning, the player is placed on the highest valid spawn point block of the X and Z spawn [[coordinates]], regardless of elevation. If a grass block that was invalid, due to being obstructed by a block above it, the game checks the closest two free spaces from below the grass block and the player spawns there. However, if there are no valid grass blocks, the player spawns directly at the world spawn point. The player is still placed at the highest valid block at the world spawn point. This can result in players falling into the [[void]] after spawning if there are no blocks at that location.

The world spawn point is also the center of the permanent [[spawn chunk]]s.

The world spawn point can be changed using the {{cmd|setworldspawn}} command.

==== Bedrock world spawn search ====
{{update|Spawn search rules have changed in 1.18; more biomes are available to spawn in.|section=1}}
{{IN|bedrock}}, when a [[player]] creates a new world, the world spawn point is restricted to specific biomes. The algorithm starts searching from coordinate 0,0, continuing outward until an acceptable biome is found for the world spawn point. Using add-ons, a rare biome can be designated to cause the player to spawn at a distant location, but the game crashes if the biome does not exist or cannot generate.

The algorithm searches for these biomes:
* {{BiomeLink|Plains}}
** At main plains biome
** Small islands in an [[ocean]] (islands are usually a plains biome)
** Patch of plains next to [[desert]], [[badlands]], or [[snowy plains]]
* {{BiomeLink|Forest}}
** At main forest biome
** Small islands in an [[ocean]] (islands can also be a forest biome)
* {{BiomeLink|Dark Forest}}
* {{BiomeLink|Taiga}}
** At main taiga biome
** Patch of taiga next to [[old growth pine taiga]]
** Near [[beach]], [[snowy taiga]], or [[windswept hills]]
* {{BiomeLink|Jungle}}
* {{BiomeLink|Savanna}} (only regular variants)

The player spawns within a 5-block radius of the point selected in the chosen biome, sometimes resulting in the player spawning outside the intended spawn biome, ending up in a beach, river, or swamp biome. It is also possible (but rare) for a player to spawn initially underwater and start drowning.<ref>{{bug|MCPE-120237}}</ref>

A search for a valid world spawn biome is ''not'' performed for [[Flat]] and [[Old]] world-types.

==== Adventure mode ====
When the server's settings specify the default game mode as Adventure (using the server.properties), then the normal spawning mechanic is ignored, and players are spawned directly on the world spawn point. This includes the X, Y, and Z coordinates, even if there is no block there, and even if there are blocks above it.

If the Y coordinate is not within a valid spawning area, then the server looks up until it finds one, up to a maximum of Y=256. If there is space to spawn, but it is in mid-air, the player spawns in mid-air, even falling into the void if there is a hole.

==== Location ====
There are several ways to determine the world spawn point:
* A [[compass]] (that hasn't been assigned to a [[lodestone]]) always points to the world spawn point.
* Doing the [[command]]s {{cmd|gamerule spawnRadius 0}} then {{cmd|kill}}.
* If commands are disabled, remove all the [[grass blocks]] in the 21×21 spawn area (or place a block above them to make them invalid), make sure the individual spawn point is disabled, and die.
* Entities, other than players, falling into the [[exit portal]] in [[the End]] land exactly at the world spawn point. Items thrown in mark the spot in the [[Overworld]]. Players spawn like they normally do, allowing this action to be used to perform the above without dying, and thus can be performed in [[hardcore mode]].
* Mods or external programs, such as [[Programs and editors/NBTExplorer|NBTExplorer]] or [[MCEdit]], can also be used to find and set the world spawn point.

=== Individual spawn ===
The individual spawn point of the player can be changed by sleeping in a [[bed]], using a [[respawn anchor]], or using the {{cmd|setworldspawn}} or {{cmd|spawnpoint}} command. If the individual spawning area of the player is obstructed upon death, the player respawns at the world spawn.

Sleeping in a bed allows for leniency in obstruction, in that the player respawns on other blocks near the bed if the original point becomes blocked. The same is true for the respawn anchor. If the spawn point set via {{cmd|setworldspawn}} or {{cmd|spawnpoint}} becomes obstructed, the player is not given this leniency in respawning. If the block obstructing the player's spawn point is a bed in the Overworld or a respawn anchor in the Nether, regardless of if the bed or respawn anchor was used to set the spawnpoint, this leniency will still be given.

For the spawn point to be considered unobstructed, certain criteria need to be met. Generally, for a spawn point set via {{cmd|/setworldspawn}} or {{cmd|/spawnpoint}}, there must be a two-block-tall space at the spawn point which is free of [[solid blocks]]. However, there are also some solid blocks which do not obstruct spawning, some examples including the [[Heavy Core|heavy core]], [[candles]], and [[Head|player and mob heads]]. [[Lava]] and [[water]] will also obstruct the spawn point despite being non-solid, however, aquatic plants, such as [[kelp]] and [[seagrass]], will not, even when in water. The player will always be spawned in the center of the spawn point block and {{frac|1|10}} of a block above the bottom of the block, even if there is a non-obstructing solid block occupying the space, such that the player can sometimes be spawned inside of a block they would otherwise have collision with. Unlike when respawning around a bed or respawn anchor, the block below the spawn point is not considered, meaning the player can be spawned on top of dangerous blocks such as [[Magma Block|magma block]]s, or over a non-solid block. The state of any blocks occupying the two-block-tall spawning space is also not considered. For example, an open [[Fence Gate|fence gate]] will still obstruct the spawn point even though the player has no collision with it.

{{Collapse
|title='''List of Non-Obstructing Blocks For A Spawn Point Set With Commands'''
|head=1
}}
* [[Air]] (air, cave air, and void air)
* All {{BlockSprite|banners}} [[banner]]s
* All {{BlockSprite|beds}} [[bed]]s (in the Overworld only; will apply bed respawn positioning logic)
* All {{BlockSprite|buttons}} [[button]]s
* All {{BlockSprite|candles}} [[candle]]s
* All {{BlockSprite|carpets}} {{BlockSprite|moss carpet}} {{BlockSprite|pale moss carpet}} [[carpet]]s (including [[Moss Carpet|moss carpet]] and [[Pale Moss Carpet|pale moss carpet]])
* All {{BlockSprite|coral}} {{BlockSprite|coral fans}} {{BlockSprite|dead coral}} {{BlockSprite|dead coral fans}} [[coral plant]]s and [[coral fan]]s (including dead variants)
* All crops
* All {{BlockSprite|flower pot}} [[flower pot]]s
* All {{BlockSprite|flowers}} [[flower]]s (including two-high flowers)
* All {{BlockSprite|mushrooms}} {{BlockSprite|fungi}} [[mushroom]]s and [[fungi]]
* All {{BlockSprite|mob heads}} player and mob [[head]]s
* All {{BlockSprite|end portal}} {{BlockSprite|nether portal}} portals ([[End Portal (block)|end portal]], [[End Gateway (block)|end gateway]], and [[Nether Portal (block)|nether portal]])
* All {{BlockSprite|pressure plates}} [[pressure plate]]s
* All {{BlockSprite|rail}} {{BlockSprite|powered rail}} [[rail]]s
* All {{BlockSprite|saplings}} [[sapling]]s (including [[azalea]]s and  [[Flowering Azalea|flowering azalea]]s, but not [[bamboo]] saplings)
* All {{BlockSprite|signs}} {{BlockSprite|hanging signs}} {{BlockSprite|wall hanging signs}} [[sign]]s (including [[hanging sign]]s and wall hanging signs)
* All {{BlockSprite|torch}} {{BlockSprite|soul torch}} {{BlockSprite|redstone torch}} torches and wall torches ([[torch]]es, [[Soul Torch|soul torch]]es, and [[Redstone Torch|redstone torch]]es)
* All {{BlockSprite|vines}} {{BlockSprite|twisting vines}} {{BlockSprite|weeping vines}} {{BlockSprite|cave vines}} vines ([[vines]], [[Twisting Vines|twisting vines]], [[Weeping Vines|weeping vines]], and [[cave vines]])
* {{BlockSprite|big dripleaf}} [[Big Dripleaf|Big dripleaf]]
* {{BlockSprite|big dripleaf stem}} Big dripleaf stem
* {{BlockSprite|chorus flower}} [[Chorus Flower|Chorus flower]]
* {{BlockSprite|chorus plant}} [[Chorus Plant|Chorus plant]]
* {{BlockSprite|cocoa}} [[Cocoa Beans|Cocoa]]
* {{BlockSprite|roots}} [[Crimson Roots|Crimson roots]] and [[Warped Roots|warped roots]]
* {{BlockSprite|dead bush}} [[Dead Bush|Dead bush]]
* {{BlockSprite|fire}} {{BlockSprite|soul fire}} [[Fire]] and [[Soul Fire|soul fire]]
* {{BlockSprite|frogspawn}} [[Frogspawn]]
* {{BlockSprite|hanging roots}} [[Hanging Roots|Hanging roots]]
* {{BlockSprite|heavy core}} [[Heavy Core|Heavy core]]
* {{BlockSprite|kelp}} [[Kelp]]
* {{BlockSprite|ladder}} [[Ladder]]
* {{BlockSprite|lever}} [[Lever]]
* {{BlockSprite|light}} [[Light (block)|Light]]
* {{BlockSprite|lily pad}} [[Lily Pad|Lily pad]]
* {{BlockSprite|nether sprouts}} [[Nether Sprouts|Nether sprouts]]
* {{BlockSprite|pale hanging moss}} [[Pale Hanging Moss|Pale hanging moss]]
* {{BlockSprite|pink petals}} [[Pink Petals|Pink petals]]
* {{BlockSprite|powder snow}} [[Powder Snow|Powder snow]]
* {{BlockSprite|redstone comparator}} [[Redstone Comparator|Redstone comparator]]
* {{BlockSprite|redstone repeater}} [[Redstone Repeater|Redstone repeater]]
* {{BlockSprite|resin clump}} [[Resin Clump|Resin clump]]
* {{BlockSprite|respawn anchor}} [[Respawn Anchor|Respawn anchor]] (in the Nether only; will apply respawn anchor respawn positioning logic, even if uncharged)
* {{BlockSprite|scaffolding}} [[Scaffolding]]
* {{BlockSprite|sea pickle}} [[Sea Pickle|Sea pickle]]
* {{BlockSprite|seagrass}} [[Seagrass]]
* {{BlockSprite|short grass}} {{BlockSprite|tall grass}} [[Short Grass|Short grass]] and [[Tall Grass|tall grass]]
* {{BlockSprite|small dripleaf}} [[Small Dripleaf|Small dripleaf]]
* {{BlockSprite|snow layer}} [[Snow]] (any number of layers)
* {{BlockSprite|spore blossom}} [[Spore Blossom|Spore blossom]]
* {{BlockSprite|structure void}} [[Structure Void|Structure void]]
* {{BlockSprite|sugar cane}} [[Sugar Cane|Sugar cane]]
* {{BlockSprite|sweet berry bush}} [[Sweet berry bush]]
* {{BlockSprite|tripwire}} [[Tripwire]]
* {{BlockSprite|tripwire hook}} [[Tripwire Hook|Tripwire hook]]
{{Collapse|tail=1}}

== History ==

{{HistoryTable
|{{HistoryLine|java infdev}}
|{{HistoryLine||20100327|The [[player]] now drops their [[inventory]] and respawns at the spawn location upon death, rather than having to reload the last save.}}
|{{HistoryLine||20100611|The [[player]] now only spawns on sand blocks.  As a result, the player will often spawn in beaches, but spawning on deserts is also a possibility.}}
|{{HistoryLine|java beta}}
|{{HistoryLine||1.4_01|[[Bed]]s now act as respawn points for players.}}
|{{HistoryLine||1.8|dev=Pre-release|The player's spawn point is now bound to a specific biome rather than to any sand block. The player can spawn in forest, swamp and taiga biomes.}}
|{{HistoryLine|java}}
|{{HistoryLine||1.1|dev=12w01a|The biomes valid for the player's spawn location were adjusted. Players can now spawn in forest, plains, taiga, forest hills and taiga hills biomes.}}
|{{HistoryLine||1.2.1|dev=12w03a|The player's spawn point can now also be located in jungle and jungle hills biomes.}}
|{{HistoryLine||1.4.2|dev=12w32a|Added the [[command]] {{cmd|spawnpoint}}.}}
|{{HistoryLine||1.7.2|dev=13w43a|Added the command {{cmd|setworldspawn}}.}}
|{{HistoryLine||1.9|dev=15w51a|Added the game rule <code>spawnRadius</code> to control the size of the world spawn area.}}
|{{HistoryLine||1.15|dev=19w36a|Added the game rule <code>doImmediateRespawn</code>.}}
|{{HistoryLine||1.18|dev=21w42a|Reworked world spawn selection algorithm. Players now spawn according to the same climate parameters that control biome placement and world generation: players should no longer spawn in the ocean or some other inconvenient locations.}}
|{{HistoryLine||1.20.5|dev=24w03a|Added [[game rule]] <code>spawnChunkRadius</code> to control the size of the spawn chunks.
|The default spawn chunk propagation is now 3×3 instead of 19×19.}}
|{{HistoryLine|pocket alpha}}
|{{HistoryLine||0.1.0|Added the world spawn point. The spawn point is always located in the center of the world (X/Z: 128).}}
|{{HistoryLine||0.9.0|dev=build 1|The player's spawn point is now located in specific biomes in the Infinite world type.|On the Old world type, the player still spawns on the center of the world, but the exact position is no longer consistent between worlds. Instead, the position is determined by the world seed.}}
|{{HistoryLine|bedrock}}
|{{HistoryLine||1.9.0|Added the Immediate Respawn game rule.}}
|{{HistoryLine|console}}
|{{HistoryLine||xbox=TU1|xbone=CU1|ps3=1.00|psvita=1.00|ps4=1.00|wiiu=Patch 1|switch=1.0.1|Added the world spawn point.}}
|{{HistoryLine||xbox=TU12|xbone=CU1|ps3=1.00|psvita=1.00|ps4=1.00|wiiu=Patch 1|switch=1.0.1|The player's spawn point can now also be located in jungle and jungle hills biomes.}}
|{{HistoryLine||xbox=?|xbone=?|ps3=?|psvita=?|ps4=?|wiiu=?|switch=1.0.1|Added a [[host options|host option]] that allows players to change the world spawn point.{{info needed|Was this added in TU19?}}}}
|{{HistoryLine||xbox=none|xbone=none|ps3=none|psvita=none|ps4=1.88|wiiu=none|switch=none|Added the Immediate Respawn host option.}}
}}

== Issues ==
{{issue list}}

== Trivia ==
* In ''Java Edition'', the world spawn (the point where players spawn if they have no valid bed spawn) is usually a random (seed determined) point between -500 and +500 on the X and Z axis. If the chosen point is in water (due to nothing but ocean biomes in the -500 to +500 range), a second attempt is made between -1500 to +1500. If this fails due to ocean, the game gives up and puts the world spawn in the middle of the ocean (still at the surface) (attempting to play the flat lands preset Water World does this, for example). Normally, a player who spawns in the water does so near the shore because the world spawn itself picked a spot there.

== Gallery ==
=== Screenshots ===
<gallery>
Idealspawn.png|An ideal spawn location, with trees and animals nearby.
Notidealspawn.png|A non-ideal spawn location. In a desert, unless a player finds an exposed mineshaft, it is much more difficult to find wood.
Survival island.png|A spawn location on an island, with trees nearby.
Dangerous spawn.png|A dark forest's dense foliage can protect hostile mobs from sun, making this biome dangerous.
</gallery>

== References ==
{{reflist}}

== External links ==
*[https://www.minecraft.net/en-us/article/spawning-and-dying How spawning, dying and respawning works in Minecraft] – Minecraft.net on September 22, 2023

== Navigation ==
{{Navbox gameplay}}

[[Category:Gameplay]]

[[cs:Výskyt]]
[[de:Spawn]]
[[es:Aparición]]
[[fr:Apparition]]
[[ja:スポーン]]
[[ko:생성]]
[[nl:Spawnen]]
[[pl:Odradzanie]]
[[pt:Geração]]
[[ru:Спаун]]
[[th:Spawn]]
[[uk:Спавн]]
[[zh:生成]]
