Set the world spawn

The world spawn is where new players appear, and where players without a bed or respawn anchor go when they die.

Players don't appear exactly on spawn? In Vanilla, players are spread out over a small area around spawn. A game rule controls how far (spawnRadius on older releases and minecraft:respawn_radius since 1.21.11; use gamerule to check your version). Set it to 0 to spawn everyone on the exact block. On Paper, plugins like EssentialsX add a /setspawn command that sends players to an exact point and direction.

Spawn protection

Spawn protection stops non-ops from breaking or placing blocks near spawn. It's set by spawn-protection in server.properties.

ValueProtected area
16 (default)A 33 × 33 block square around spawn
0Turned off
Any number nA square (2 × n + 1) blocks wide

Things to know

See Mojang's game-rule rename list for the newer command name.