/spawnpoint Command in Minecraft Java Edition

Set the Spawn Point for Players

Java EditionPlayers & EntitiesPermission: Level 2Bedrock version →

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.

Syntax (Java 26.3, 3 forms)

  1. /spawnpoint
  2. /spawnpoint <targets>
  3. /spawnpoint <targets> <pos> [<rotation>]

The forms you will use most

/spawnpoint
Sets your own spawn point to the exact position and rotation where you are currently standing.
/spawnpoint <targets>
Sets the spawn point of the chosen player or players to your current position.
/spawnpoint <targets> <pos> [<rotation>]
Sets the spawn point of the chosen players to specific coordinates, with an optional facing direction.

Arguments

ArgumentTypeWhat 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 positionDefines the block position using three coordinates (x y z), which can include ~ for relative or ^ for local positions.
<rotation>rotationSets the facing direction using two numbers for yaw and pitch, such as 90 0.

Examples

Version history

Measured from the game files of every Java release from 1.13 to 26.3.

  1. 1.21.9 Only argument names changed (same forms).
    + /spawnpoint <targets> <pos> [<rotation>]− /spawnpoint <targets> <pos> [<angle>]
  2. 1.16.2 Syntax changed.
    + /spawnpoint <targets>+ /spawnpoint <targets> <pos> [<angle>]− /spawnpoint <targets> [<pos>]
  3. 1.13 Already in the game in 1.13, the oldest Java version we track.

Tips

Common mistakes

Java vs Bedrock

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.

See /spawnpoint in Bedrock Edition →

FAQ

How do I set my own spawn point quickly?

Stand where you want to respawn and type /spawnpoint in the chat with no other arguments.

Why does my command with a single angle number not work anymore?

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.

What permission level do I need to use /spawnpoint?

You need permission level 2, which means you must be a server operator or have cheats turned on in your single-player world.

Related commands

/advancement/attribute/damage/defaultgamemode/effect/experience/gamemode/kill/ride/rotate/spectate/spreadplayers/summon/swing/teleport/tp