Commands/spawnpoint

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

Syntax

 * Java Edition


 * Bedrock Edition

Arguments
(BE: )
 * 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.

(BE: )
 * 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) $$ or the command's execution $$.

Result
Fails if the arguments are not specified correctly, or if  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
If you set your spawnpoint in the End, you can't get out because the End Portal to return to the Overworld returns to your spawnpoint, and Nether Portals don't light in the End. However, you can use setblock to create a portal block which will take you to the Nether and you can return through the Nether Portal to go back to the Overworld. Alternatively, you can use the /execute in command to execute a teleport command to return to the overworld without having to go through the Nether.

History
Befehl/spawnpoint Команды консоли/spawnpoint Команди консолі/spawnpoint 命令/spawnpoint