Skip to content
WikilyWIKILY
All games23 Wikis · pick your game
Commands and cheatsAll commands

Switch game

23 Wikis · pick your game
/spawnpoint

Command

/spawnpoint

Sets the personal spawn point of one or more players.

Syntax

/spawnpoint [<targets> [<pos> [<rotation>]]]

Arguments

ArgumentKind of valueWhat to type
<targets>Target selectorThe players whose spawn point is set. Defaults to the player running the command. One or more players.
<pos>Block positionThe block position of the spawn point. Defaults to the position the command is run from.
<rotation>RotationThe direction the player faces after respawning, as yaw and pitch. Defaults to 0 0.

Details

Permission level2: operators, worlds with cheats on, command blocks and functions
Works inSingleplayer with cheats enabled, multiplayer servers, command blocks and functions. Needs permission level 2 (gamemasters): operators, players in a world with cheats enabled, command blocks and functions.
ResultReports the new spawn point with its coordinates, facing direction and dimension, and the player's name or the number of players. The number /execute store saves is the number of players whose spawn point was set.
No argumentsWithout arguments the spawn point of the player running the command is set to their current block position. This form only works when a player runs it; command blocks and the console must name the targets.
No positionWith targets but no position, the position the command is run from is used.
DimensionThe spawn point is set in the dimension the command is run in. Use /execute in to choose another dimension.
No Bed neededA spawn point set by this command does not need a Bed or Respawn Anchor. The player respawns there as long as the block at the position and the block above it leave room to stand.
RotationThe rotation is yaw and pitch, the direction the player faces after respawning. Without it the direction is 0 0. The pitch is limited to the range -90 to 90.
Position limitsThe position must be within 30,000,000 blocks of the center horizontally and between Y -20,000,000 and Y 20,000,000, otherwise the command fails with "That position is outside the allowed boundaries".

Examples

/spawnpoint

Sets your spawn point to where you are standing.

/spawnpoint @a

Sets the spawn point of all players to the position the command is run from.

/spawnpoint @a 0 64 0

Sets the spawn point of all players to 0, 64, 0.

/spawnpoint Steve 100 70 -50 180 0

Sets Steve's spawn point to 100, 70, -50, facing yaw 180 and pitch 0.

/spawnpoint @p ~ ~1 ~

Sets the nearest player's spawn point one block above the position the command is run from.

/spawnpoint @a[distance=..10] ~ ~ ~ 90 0

Sets the spawn point of all players within 10 blocks to the position the command is run from, facing yaw 90 and pitch 0.

Join the creator communityThe people who build the Minecraft Java Edition wiki are on our Discord. Ask questions or suggest pages.Join Discord (opens Discord in a new tab)