Setworldspawn Command Generator

Set the world's central spawn point, where new players and players without a bed appear

You must also specify coordinates manually to set a facing direction.

How to use the Setworldspawn generator

  1. Choose whether to use your current position or specify coordinates manually.
  2. Copy the command and run it in Minecraft.

The central spawn point affects new players and anyone who has not yet slept in a bed or set a personal spawn point — it is also the point an ordinary compass points to.

Setting a facing direction (angle) is only available on the Java 1.21.x profile — other versions will have this value dropped, with a warning.

Worked examples

The examples below come out of the same generator as the form above, so the commands and explanations always match what the tool produces. Copy one and adjust it from there

1. Set the world spawn at given coordinates

The world spawn affects new arrivals and anyone who has not set a personal spawn point

/setworldspawn 0 64 0

What it does Will move the world spawn to coordinates 0 64 0 New players and players without a personal spawn point will appear here, and compasses will point to this location.

2. Set the spawn where you are standing

The quickest way — walk to the spot and run it, no need to write coordinates down

/setworldspawn

What it does Will move the world spawn to the position you're standing at when you run the command New players and players without a personal spawn point will appear here, and compasses will point to this location.

3. Set the spawn and the facing angle

The angle decides which way players face on arrival — line it up with a welcome sign

/setworldspawn 100 70 -50 90

What it does Will move the world spawn to coordinates 100 70 -50 facing angle 90 New players and players without a personal spawn point will appear here, and compasses will point to this location.

How this command differs by edition and version

This is the first example above, run through every edition and version this tool supports. Versions that produce the same result share a row

Every version this tool supports produces the same result, so a command you copy works without version-specific edits

Java Edition 1.21.5 and up Java Edition 1.20.5 - 1.21.4 Java Edition 1.13 - 1.20.4 (legacy NBT) Bedrock Edition (stable)
/setworldspawn 0 64 0

Before you use these