/setworldspawn Command in Minecraft Java Edition

Change the World Spawn Point Location

Java EditionWorld & BlocksPermission: Level 2Bedrock version →

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.

Syntax (Java 26.3, 2 forms)

  1. /setworldspawn
  2. /setworldspawn <pos> [<rotation>]

The forms you will use most

/setworldspawn
Sets the world spawn point to your current position and rotation.
/setworldspawn <pos> [<rotation>]
Sets the world spawn point to a specific block position, with an optional yaw and pitch rotation.

Arguments

ArgumentTypeWhat it means
<pos>block positionThe block position defined by three coordinates (x y z), which can use ~ for relative or ^ for local coordinates.
<rotation>rotationThe facing direction defined by yaw and then pitch, such as 90 0.

Examples

Version history

Measured from the game files of every Java release from 1.13 to 26.3.

  1. 1.21.9 Only argument names changed (same forms).
    + /setworldspawn <pos> [<rotation>]− /setworldspawn <pos> [<angle>]
  2. 1.16.2 Syntax changed.
    + /setworldspawn+ /setworldspawn <pos> [<angle>]− /setworldspawn [<pos>]
  3. 1.13 Already in the game in 1.13, the oldest Java version we track.

Tips

Common mistakes

Java vs Bedrock

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.

See /setworldspawn in Bedrock Edition →

FAQ

How do I set the world spawn to where I am standing?

Type /setworldspawn with no extra numbers or arguments and press Enter to set the world spawn to your current location.

Why does /setworldspawn ask for two rotation numbers?

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).

What permission level is needed for /setworldspawn?

You need permission level 2, which means you must be a server operator or have cheats turned on in a single-player world.

Related commands

/clone/difficulty/fill/fillbiome/forceload/gamerule/locate/place/seed/setblock/time/waypoint/weather/worldborder