All commands
๐ŸŒ
AdminJava โœ“Bedrock โœ“

/setworldspawn

Set the shared spawn point new players appear at.

Overview

What is the /setworldspawn command?

The /setworldspawn command sets the global spawn point of the world โ€” where brand-new players appear and where the compass points. You can use your current position or exact coordinates.

It's different from /spawnpoint, which sets where individual players respawn; setworldspawn moves the world's shared anchor.

When to use it: Use /setworldspawn to move the world's main spawn for new players, the compass and respawns without a global bed.

At a glance

Syntax

Syntax
/setworldspawn [x] [y] [z]
commandtargetcoordsvaluerequiredoptional

See it

What it does

๐ŸŒ
The world's shared spawn is set

Anatomy

Every part, explained

  1. 1
    /setworldspawnCommandRequired

    Sets the world's global spawn point.

  2. 2
    [x] [y] [z]CoordinatesOptional

    Where spawn goes. Defaults to here.

Your turn

Try it yourself

Playground
4 tokens ยท press Enter to run

Copy & paste

Examples

/setworldspawn 0 64 0

Set spawn to exact coordinates.

/setworldspawn ~ ~ ~

Set spawn where you're standing.

/setworldspawn

Use your current position as spawn.

Avoid these

Common mistakes

โœ•/setworldspawn @s 0 64 0
โœ“/setworldspawn 0 64 0

World spawn takes no target - just coords.

โœ•/spawnpoint 0 64 0
โœ“/setworldspawn 0 64 0

/spawnpoint is per-player; this sets the world's.

Good to know

Frequently asked questions

How do you set the world spawn?
Run /setworldspawn to use your current spot, or /setworldspawn <x> <y> <z> for exact coordinates.
Does /setworldspawn change where I respawn?
Only if you don't have a personal spawn point or bed set. Personal spawn points (and /spawnpoint) take priority.
Where does the compass point after using it?
A standard compass always points to the world spawn, so it updates to the new location you set.

Keep going

Related commands