Set the Spawn Point for Players
The /spawnpoint command sets the exact location and facing direction where a player will appear after they die. You can use it on yourself, a specific friend, or every player on the server at once.
Players and map makers often use this command to create checkpoints in adventure maps, parkour courses, or survival bases without needing to place a bed. You need operator permissions (level 2) or cheats enabled in single-player to run it.
/spawnpoint/spawnpoint <targets>/spawnpoint <targets> <pos> [<rotation>]/spawnpoint/spawnpoint <targets>/spawnpoint <targets> <pos> [<rotation>]| Argument | Type | What it means |
|---|---|---|
<targets> | target selector players only | Specifies the player or players to update using a player name, a UUID, or a target selector like @p, @a, or @s. |
<pos> | block position | Defines the block position using three coordinates (x y z), which can include ~ for relative or ^ for local positions. |
<rotation> | rotation | Sets the facing direction using two numbers for yaw and pitch, such as 90 0. |
/spawnpointSets your personal spawn point to the exact spot where you are standing right now.
/spawnpoint @aSets the spawn point for every player currently online to your location.
/spawnpoint Alex 120 64 -350Sets the spawn point for a player named Alex to the block coordinates 120, 64, -350.
/spawnpoint @p ~ ~5 ~Sets the nearest player's spawn point five blocks directly above the command runner or command block.
/spawnpoint @s 0 100 0 90 0Sets your own spawn point to coordinates 0, 100, 0 while facing west (yaw 90, pitch 0).
/spawnpoint Steve -500 72 800 180 15Sets Steve's spawn point to -500, 72, 800 facing north and looking slightly downward.
/spawnpoint @a[distance=..10] ^ ^ ^3 -90 0Sets the spawn point for all players within 10 blocks to a spot 3 blocks in front of you, facing east.
Measured from the game files of every Java release from 1.13 to 26.3.
+ /spawnpoint <targets> <pos> [<rotation>]− /spawnpoint <targets> <pos> [<angle>]+ /spawnpoint <targets>+ /spawnpoint <targets> <pos> [<angle>]− /spawnpoint <targets> [<pos>]Bedrock Edition also has the /spawnpoint command, using the syntax /spawnpoint [player: target] [spawnPos: x y z]. Unlike the newest Java Edition versions, the Bedrock syntax does not include the trailing rotation argument for setting yaw and pitch.
Stand where you want to respawn and type /spawnpoint in the chat with no other arguments.
In Java Edition 1.21.9, the old [ argument was replaced with [, which requires two numbers (yaw and pitch, like 90 0) instead of one.
You need permission level 2, which means you must be a server operator or have cheats turned on in your single-player world.
/advancement/attribute/damage/defaultgamemode/effect/experience/gamemode/kill/ride/rotate/spectate/spreadplayers/summon/swing/teleport/tp