The Gamepedia and Fandom account systems have now been merged. If your username is incorrect, you have accounts on both platforms that weren't merged, or you have trouble signing in, please submit a support ticket.

Commands/spawnpoint

From Minecraft Wiki
Jump to: navigation, search
spawnpoint
Restrictions

Operator

First introduced

Java Edition 1.4.2 (12w32a)
PE Alpha 0.16.0 (PE Alpha 0.16.0 build 1)

Sets the spawn point for a player. You can now set your spawnpoint in the Nether and End.

Syntax[edit]

  • Java Edition
spawnpoint [<targets>] [<pos>]
spawnpoint [<targets>] [<pos>] [<angle>][upcoming: JE 1.16.2]
  • Bedrock Edition
spawnpoint [player: target] [spawnPos: x y z]

Arguments[edit]

<targets> (BE: player: target) (optional)

Specifies the player whose spawn point should be set. Must be a player name or a target selector. If not specified, defaults to the command's executor. Not optional when executor isn't a player.
Entities other than players are not allowed.

<pos> (BE: spawnPos: x y z) (optional)

Specifies the coordinates of the player's new spawn point. May use tilde and caret notation to specify coordinates relative to the command's execution. If not specified, defaults to the position of the specified player(s) in Bedrock Edition or the command's execution in Java Edition.

<angle>[upcoming: JE 1.16.2] (optional)

Floating point yaw angle in degrees. Supports the relative tilde notation, which defaults to the direction the executing player is facing.

Result[edit]

Fails if the arguments are not specified correctly, or if <targets> fails to resolve to one or more online players.

On success, sets the spawn point of the targeted player(s) to the specified coordinate.

Trivia[edit]

If you set your spawnpoint in the End, you can't get out because the End Portal gets you back to your spawnpoint, and Nether Portals can't be lit in the End. However, you can use /setblock to create a nether portal block, which can take you to the Nether and then you can return back to the Overworld through a nether portal. Alternatively, in Java Edition, you can use the /execute in <dimension> run tp <pos> command to return to the overworld without having to go through the Nether.

History[edit]

Java Edition
1.4.212w32aAdded /spawnpoint.
Upcoming Java Edition
1.16.220w29aAdded angle parameter for setting the default facing angle of a respawning player.
Pocket Edition Alpha
0.16.0build 1Added /spawnpoint.

See also[edit]