
/setworldspawn
Sets the world spawn point. Its basic form is /setworldspawn; it has 3 syntax forms and 2 arguments. Permission: Cheats / op 2.
/setworldspawn syntax
Game dataEvery form the game accepts. Words in <angle brackets> are arguments you fill in; everything else is typed as is.
/setworldspawn/setworldspawn <pos>/setworldspawn <pos> <rotation>/setworldspawn examples
Ready-to-paste examples (cheats on). @s is you, @p the nearest player, @a everyone, @e every entity.
/setworldspawn ~ ~ ~- Moves the world spawn, where new players and players without a bed appear, to where you stand.
/setworldspawn arguments
What each argument expects, with the limits the game enforces.
| Argument | Expects | Limits |
|---|---|---|
<pos> | Block coordinates (x y z, ~ relative, ^ local) | — |
<rotation> | Rotation (yaw pitch) | — |
Related commands
Data: Minecraft Java Edition 26.3 game files. How we source this
Sets the world spawn point. It has 3 syntax forms and can be run by: Cheats / op 2.
See Also
Help us maintain accuracy! If you notice incorrect stats, missing data, or any issues, your feedback directly improves the quality of our data for the entire community.
/setworldspawn FAQ (Java 26.3)
What does /setworldspawn do in Minecraft?
Sets the world spawn point.
What is the syntax of /setworldspawn?
The basic form is /setworldspawn. All forms are listed above.
What is an example of /setworldspawn?
/setworldspawn ~ ~ ~ — Moves the world spawn, where new players and players without a bed appear, to where you stand.
Do you need cheats for /setworldspawn?
Yes: Cheats / op 2. In singleplayer turn on Allow Cheats (or open to LAN with cheats).