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.

Syntax[edit]

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

Arguments[edit]

<targets> (BE: player: target)

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)

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.

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.

History[edit]

Java Edition
1.4.212w32aAdded /spawnpoint.
Pocket Edition Alpha
0.16.0build 1Added /spawnpoint.