/setworldspawn
Sets the global world spawn point. New players and players without a personal spawn point will respawn here.
Overview
Sets the global world spawn point. New players and players without a personal spawn point will respawn here. In vanilla Minecraft Java Edition it is one of the world commands, first added in 1.7.2.
It is invoked as /setworldspawn [<pos>] [<rotation>] and accepts 2 optional arguments ([pos] and [rotation]).
Before Java 1.21.9 the world spawn also decided where the spawn chunks were, the area that stayed loaded all the time. 1.21.9 removed spawn chunks, and since then the world spawn can also be in another dimension.
Before Java 1.21.9 the world spawn also anchored the spawn chunks, which stayed loaded all the time, so moving it moved them. 1.21.9 removed spawn chunks.
Syntax & Arguments
/setworldspawn [<pos>] [<rotation>]The full syntax is /setworldspawn [<pos>] [<rotation>]. Angle brackets < > mark required arguments and square brackets [ ] mark optional ones; a vertical bar | between words means you pick exactly one of those literals. Every argument is optional, so the bare command is valid on its own. The arguments [pos] and [rotation] may be omitted, in which case the documented default applies.
- pos
- Optional, of type a block_pos. The coordinates for the world spawn. Defaults to the executor's position.
- rotation
- Optional, of type a rotation. The yaw and pitch players face when spawning at the world spawn, such as 180 0 for north. Before Java 1.21.9 this was only the yaw.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| pos | block_pos | Optional | The coordinates for the world spawn. Defaults to the executor's position. |
| rotation | rotation | Optional | The yaw and pitch players face when spawning at the world spawn, such as 180 0 for north. Before Java 1.21.9 this was only the yaw. |
Examples
The 3 examples below are ready to copy and adapt. For instance, /setworldspawn 0 64 0 sets the world spawn to coordinates 0, 64, 0. Each example varies the arguments to show a different real use of /setworldspawn; read the note under every snippet to see exactly what changes.
/setworldspawn 0 64 0Sets the world spawn to coordinates 0, 64, 0.
/setworldspawn ~ ~ ~ 180 0Sets the world spawn to your position, facing north on spawn.
/setworldspawnSets the world spawn to your current location.
Permission Level & Requirements
/setworldspawn sits at permission Level 2 - Game Master / Cheats, which means it needs permission level 2, the level cheats grant to single-player worlds and that operators hold by default.
In a single-player world you must have "Allow Cheats" turned on (or open the world to LAN with cheats) before it will run; on a multiplayer server the player needs to be an operator at the matching level.
This reference describes the Java Edition 1.21 form of the command; Bedrock Edition may use slightly different argument formats.
Common Mistakes
- Confusing /setworldspawn with /spawnpoint, /setworldspawn sets the global default, /spawnpoint is per-player.
- Setting world spawn inside blocks, players may suffocate or be displaced.
Notes
Before Java 1.21.9 the world spawn also decided where the spawn chunks were, the area that stayed loaded all the time. 1.21.9 removed spawn chunks, and since then the world spawn can also be in another dimension.
Related Commands
If /setworldspawn is part of your toolkit, the commands below are the ones you will most often reach for alongside it: /spawnpoint and /worldborder. They cover closely related tasks, so the links above jump straight to each one.
Frequently Asked Questions about /setworldspawn
What does the /setworldspawn command do in Minecraft?
Sets the global world spawn point. New players and players without a personal spawn point will respawn here. It belongs to the world command group and was first added in Java Edition 1.7.2.
What is the correct syntax for /setworldspawn?
/setworldspawn [<pos>] [<rotation>]. The required arguments are none, and the optional ones are pos and rotation.
What permission level does /setworldspawn need?
It requires permission Level 2 - Game Master / Cheats. On a server the player must be an operator at that level, or have cheats enabled in single-player.
What is a common mistake when using /setworldspawn?
Confusing /setworldspawn with /spawnpoint, /setworldspawn sets the global default, /spawnpoint is per-player.
Can you give an example of /setworldspawn in use?
Yes. /setworldspawn ~ ~ ~ 180 0: sets the world spawn to your position, facing north on spawn.
Need a Minecraft server?
Try these commands on Astroworld or host your own server.
Try Astroworld Hosting