How to set spawn in Minecraft (and spawn protection)

Last updated

To set the spawn in Minecraft, stand where you want it and run /setworldspawn. New players appear there, and so do players who die without a bed. Spawn protection, the area around spawn where only operators can build, is a setting on your server’s Configuration tab.

Set the world spawn in game

  1. Make sure you’re an operator. If you aren’t, run op and your name in the Console tab first. See How to op someone.
  2. Stand on the spot where players should spawn.
  3. Type /setworldspawn in chat.

The spawn moves there straight away. You don’t need to restart.

Set the world spawn from the Console

The Console has no position of its own, so give the coordinates: setworldspawn 100 64 -200. The numbers are X, Y and Z. In Java Edition, press F3 to see the coordinates of the spot you stand on.

The server has to be running: if it says Sleeping, click Wake up, then Start.

Spawn on the exact block

Players without a bed spawn at a random spot up to 10 blocks from the world spawn, not on the exact block. To spawn everyone on the spot itself, set the spawn radius game rule to 0:

  • Minecraft 1.21.11 and newer, including 26.x: gamerule respawn_radius 0
  • Minecraft 1.21.10 and older: gamerule spawnRadius 0

Set one player’s spawn point

/spawnpoint sets where one player respawns, as if they had slept in a bed there:

  • /spawnpoint sets your own spawn point to where you stand.
  • /spawnpoint Steve sets Steve’s to where you stand.
  • spawnpoint Steve 100 64 -200 sets Steve’s to those coordinates. This form also works in the Console.

If the player sleeps in a bed later, the bed becomes their spawn point instead. Bedrock players have a dot before their name on your server, for example spawnpoint .Steve 100 64 -200.

What spawn protection does

Spawn protection stops players who aren’t operators from placing and breaking blocks near the world spawn. Operators can always build there.

  • The value is a radius in blocks. The default, 16, protects a square of 33 by 33 blocks around the spawn.
  • 0 turns it off.
  • It only works once the server has at least one operator.
  • It only stops building. Mobs and PvP still work there. For more control, use a protection plugin such as WorldGuard.

Change or turn off spawn protection

  1. Open your server in the dashboard. If it says Sleeping, click Wake up.
  2. Go to the Configuration tab. Spawn protection (spawn-protection) is under World, or type spawn in the Filter box.
  3. Enter the radius in blocks, or 0 to turn it off.
  4. Click Save changes.
  5. Restart the server. As the tab says, changes apply on the next restart.

Set spawn with EssentialsX

With the EssentialsX Spawn add-on, /setspawn saves a spawn and /spawn takes players there at any time. That spawn is separate from the world spawn, and spawn protection is always around the world spawn. Run /setworldspawn and /setspawn on the same spot so they match. See How to install EssentialsX.

Still stuck? Ask on Discord

The Minefort team and community are there. Tell us what you tried and someone will point you the right way.

Join the Discord