/setworldspawn Command
Sets the global world spawn point that all players respawn at (and to which compasses point) when no individual spawnpoint is set. The optional angle sets the yaw direction players face upon spawning (-180 = north, -90 = east, 0 = south, 90 = west). Defaults to the executor's current position and facing direction if omitted.
Syntax
/setworldspawn [<pos: x y z>] [<angle: float>]Permission: 2Edition: Both
Examples
/setworldspawn/setworldspawn 0 64 0/setworldspawn 100 65 -50 -90/setworldspawn ~ ~ ~ 0Notes
The angle argument was added in Java Edition 1.16. In Bedrock, the syntax is the same but the angle parameter behaves differently. The spawn radius around the world spawn is controlled by the spawnRadius gamerule (default 10 blocks in Java).