/spawnpoint
Sets the spawn point for one or more players. When a player dies, they respawn at their spawn point.
Overview
Sets the spawn point for one or more players. When a player dies, they respawn at their spawn point. In vanilla Minecraft Java Edition it is one of the player commands, first added in 1.4.2.
It is invoked as /spawnpoint [<targets>] [<pos>] [<rotation>] and accepts 3 optional arguments ([targets], [pos], and [rotation]).
Each player has an individual spawn point. If the spawn point block becomes obstructed, the player respawns at the world spawn instead.
Each player carries an individual spawn point; if its block is obstructed at respawn the player falls back to the world spawn set by /setworldspawn.
Syntax & Arguments
/spawnpoint [<targets>] [<pos>] [<rotation>]The full syntax is /spawnpoint [<targets>] [<pos>] [<rotation>]. Angle brackets < > mark required arguments and square brackets [ ] mark optional ones; a vertical bar | between words means you pick exactly one of those literals. Every argument is optional, so the bare command is valid on its own. The arguments [targets], [pos], and [rotation] may be omitted, in which case the documented default applies.
- targets
- Optional, of type an entity. The player(s) whose spawn point to set. Defaults to self.
- pos
- Optional, of type a block_pos. The coordinates for the spawn point. Defaults to the executor's position.
- rotation
- Optional, of type a rotation. The yaw and pitch the player faces on respawn, such as 90 0 for west and looking straight ahead. Before Java 1.21.9 this was only the yaw.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| targets | entity | Optional | The player(s) whose spawn point to set. Defaults to self. |
| pos | block_pos | Optional | The coordinates for the spawn point. Defaults to the executor's position. |
| rotation | rotation | Optional | The yaw and pitch the player faces on respawn, such as 90 0 for west and looking straight ahead. Before Java 1.21.9 this was only the yaw. |
Examples
The 3 examples below are ready to copy and adapt. For instance, /spawnpoint @s sets your spawn point to your current location. Each example varies the arguments to show a different real use of /spawnpoint; read the note under every snippet to see exactly what changes.
/spawnpoint @sSets your spawn point to your current location.
/spawnpoint @a 0 64 0Sets all players' spawn points to coordinates 0, 64, 0.
/spawnpoint @p ~ ~ ~ 90 0Sets the nearest player's spawn point to their current location, facing west on respawn.
Permission Level & Requirements
/spawnpoint sits at permission Level 2 - Game Master / Cheats, which means it needs permission level 2, the level cheats grant to single-player worlds and that operators hold by default.
In a single-player world you must have "Allow Cheats" turned on (or open the world to LAN with cheats) before it will run; on a multiplayer server the player needs to be an operator at the matching level.
This reference describes the Java Edition 1.21 form of the command; Bedrock Edition may use slightly different argument formats.
Common Mistakes
- Setting a spawn point inside a solid block, the player may suffocate or be displaced on respawn.
- Confusing /spawnpoint (per-player) with /setworldspawn (global default).
Notes
Each player has an individual spawn point. If the spawn point block becomes obstructed, the player respawns at the world spawn instead.
Related Commands
If /spawnpoint is part of your toolkit, the commands below are the ones you will most often reach for alongside it: /setworldspawn, /tp, and /teleport. They cover closely related tasks, so the links above jump straight to each one.
Frequently Asked Questions about /spawnpoint
What does the /spawnpoint command do in Minecraft?
Sets the spawn point for one or more players. When a player dies, they respawn at their spawn point. It belongs to the player command group and was first added in Java Edition 1.4.2.
What is the correct syntax for /spawnpoint?
/spawnpoint [<targets>] [<pos>] [<rotation>]. The required arguments are none, and the optional ones are targets, pos, and rotation.
What permission level does /spawnpoint need?
It requires permission Level 2 - Game Master / Cheats. On a server the player must be an operator at that level, or have cheats enabled in single-player.
What is a common mistake when using /spawnpoint?
Setting a spawn point inside a solid block, the player may suffocate or be displaced on respawn.
Can you give an example of /spawnpoint in use?
Yes. /spawnpoint @a 0 64 0: sets all players' spawn points to coordinates 0, 64, 0.
Need a Minecraft server?
Try these commands on Astroworld or host your own server.
Try Astroworld Hosting