Skip to main content
← All Guides
Commands · Server admin · Vanilla

How to Set the World Spawn

Two commands control where people appear. /setworldspawn fixes the global spawn for new players, and /spawnpoint sends specific players to a block you choose. Below is the exact syntax, coordinates and facing.

server console, world.spawn
[12:04:31 INFO]: Done (8.142s)! For help, type "help"
>/setworldspawn 120 71 -340
OK Set the world spawn point to 120, 71, -340
[12:05:02 INFO]: New players will now appear at this block.
>/spawnpoint @a 120 71 -340 90
OK Set spawn point of Steve, Alex to 120.0, 71.0, -340.0 facing 90.0
world spawn locked · respawn radius spawn-protection: 0
The two-command setup
  1. 1
    Pick the block
    Stand exactly where you want the world spawn, or grab the X Y Z with F3 so you can type them precisely.
  2. 2
    Run /setworldspawn
    Type /setworldspawn 120 71 -340 (or just /setworldspawn at your feet). This is where new players first appear.
  3. 3
    Send existing players
    /setworldspawn does not move people who already have a bed or anchor. Use /spawnpoint @a 120 71 -340 to override them.
  4. 4
    Add a facing angle
    Append a yaw to spawnpoint, e.g. /spawnpoint @a 120 71 -340 90, so players face the build instead of a random direction.
  5. 5
    Tune spawn protection
    Set spawn-protection in server.properties to 0 (or a small value) so non-ops can actually build near the new spawn.

What you need

Op or console access
Target coordinates
Facing angle (optional)
A landing spot at spawn

Quick answers

?
What is the difference between /setworldspawn and /spawnpoint?
/setworldspawn sets the single world spawn where brand-new players and players without a bed appear. /spawnpoint sets a personal spawn for one or more chosen players, like a bed but command-driven.
?
Why do my players still spawn in the old place?
Anyone who has slept in a bed or charged a respawn anchor keeps that personal spawn. /setworldspawn only affects the global default. Run /spawnpoint @a 120 71 -340 to forcibly reset everyone.
?
Can I make players face a direction when they spawn?
Yes, with /spawnpoint. Add a yaw after the coordinates, for example /spawnpoint @a 120 71 -340 90. The world spawn from /setworldspawn always uses a default facing.
?
How do I set spawn at my exact location?
Stand on the block and run /setworldspawn with no coordinates. The command snaps the spawn to the block you are standing on, so no F3 maths needed.
?
Why cannot players build near spawn?
Spawn protection. By default the server.properties value spawn-protection is 16, which locks a 33x33 area around world spawn for non-ops. Set it to 0 to remove the bubble.
?
Does /setworldspawn work in every dimension?
World spawn is an Overworld concept. Running it in the Nether or End sets coordinates that only take effect once players are in the Overworld. Use /spawnpoint for per-player respawns in any dimension.
Hosting
Skip the setup
Get a managed server with one click instead of configuring it all yourself.
Database
Beds & respawn anchors
Look up the blocks that set a personal spawn point and override the world spawn.
Guide
Make a respawn anchor
Set a personal spawn inside the Nether, where beds explode.