Guide · Configuration

Spawn protection explained

If new players report that they cannot break or place blocks near spawn, spawn protection is the reason. It is a simple vanilla feature with one surprising quirk.

How it works

spawn-protection in server.properties sets a radius around the world spawn point where only operators can break and place blocks. The default is 16. The protected area is a square, and the value is roughly the distance from the spawn block to its edge.

The quirk: spawn protection is only active if at least one operator exists. On a server with an empty ops.json, it does nothing at all.

Changing or disabling it

Set spawn-protection=0 to disable it, or a smaller number to shrink it. Restart the server for the change to apply. Players with operator level 1 or higher bypass it.

Moving the spawn point

Run setworldspawn while standing where you want spawn to be, or give coordinates. Note that players respawn near, not exactly on, the spawn point; the respawn radius game rule controls the scatter. Plugins such as EssentialsX add a /spawn command that teleports players to an exact location.

Better protection for a real spawn

The vanilla feature is blunt: it blocks building, but not opening chests, using doors, PvP or mob griefing. For a proper spawn town, set spawn-protection to 0 and use WorldGuard regions, which control each of those separately and can cover any shape.

StormNodes Minecraft hosting

Run it on a StormNodes server

Skip the port forwarding and the PC that has to stay on. A StormNodes Minecraft server is online in minutes, and everything in this guide can be done from the panel.

  • Hosted in Portugal, close to players across Western Europe
  • NVMe storage, monthly billing and no setup fee
  • Paper, Purpur, Fabric and vanilla, switchable from the panel
  • Live console, file manager, SFTP, backups and schedules
  • Support in English and Portuguese

FAQ

Frequently asked questions

Why can new players not break blocks on my server?
They are inside the spawn protection radius. Walk further from spawn, lower spawn-protection, or set it to 0.
Why does spawn protection not work on my server?
It only works when at least one operator exists. Add yourself as an operator, or use WorldGuard for protection that does not depend on that.
Does spawn protection stop explosions?
No. It only stops non-operators placing and breaking blocks directly. Creepers and TNT can still damage the area.