Change the World Spawn Point Location
The /setworldspawn command changes the default spawn point for the entire Minecraft world. You can set it to your current location or type in exact block coordinates and a facing direction.
Players and server operators use this command to move the starting area to a newly built spawn hub, a safer location, or a custom adventure map lobby.
/setworldspawn/setworldspawn <pos> [<rotation>]/setworldspawn/setworldspawn <pos> [<rotation>]| Argument | Type | What it means |
|---|---|---|
<pos> | block position | The block position defined by three coordinates (x y z), which can use ~ for relative or ^ for local coordinates. |
<rotation> | rotation | The facing direction defined by yaw and then pitch, such as 90 0. |
/setworldspawnSets the world spawn point to the exact spot where you are currently standing.
/setworldspawn 0 64 0Moves the world spawn point to the coordinates X=0, Y=64, Z=0.
/setworldspawn 150 72 -240 90 0Sets the world spawn at 150, 72, -240 with a yaw of 90 and a pitch of 0.
/setworldspawn ~ ~5 ~Moves the world spawn point 5 blocks directly above your current position using relative coordinates.
/setworldspawn ~10 ~ ~-10 180 0Sets the spawn point 10 blocks offset on the X and Z axes with a yaw of 180 and pitch of 0.
/setworldspawn ^ ^ ^5Places the new world spawn point 5 blocks in front of the direction you are currently looking using local coordinates.
/setworldspawn -500 100 1200 -90 15Sets a distant world spawn point at -500, 100, 1200 with a yaw of -90 and a slight downward pitch of 15.
Measured from the game files of every Java release from 1.13 to 26.3.
Bedrock Edition also has the /setworldspawn command with the syntax /setworldspawn [spawnPoint: x y z], which lets you set the coordinates but does not include a rotation argument.
Type /setworldspawn with no extra numbers or arguments and press Enter to set the world spawn to your current location.
Starting in Java Edition 1.21.9, the old single angle argument was replaced with , which takes two numbers: yaw (left and right) followed by pitch (up and down).
You need permission level 2, which means you must be a server operator or have cheats turned on in a single-player world.
/clone/difficulty/fill/fillbiome/forceload/gamerule/locate/place/seed/setblock/time/waypoint/weather/worldborder