Gamepedia was upgraded to MediaWiki version 1.31 on Wednesday November 14th. To learn more about the upgrade and its effects click here.
Sets the spawn point for a player.
- Java Edition
spawnpoint <player> <x> <y> <z>
- Bedrock Edition
spawnpoint [player: target] [spawnPos: x y z]
- player (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 user. Not optional in command blocks.
- x y z (BE: spawnPos: x y z) (optional)
- Specifies the coordinates of the player's new spawn point. x and z must be integers within the range -30,000,000 to 30,000,000 (inclusive). y must be an integer between 0 and 256 (inclusive). May use tilde notation to specify coordinates relative to the command's execution. If not specified, defaults to the position of the specified player(s).
- Fails if the arguments are not specified correctly, or if player fails to resolve to one or more online players.
- On success, sets the spawn point of the targeted player(s) to the specified coordinate.