Spawn protection prevents players from building in spawn, undoing any attempts at placing or breaking blocks. Players who have any permission level are able to bypass it and build anyway. There are several indirect ways to bypass spawn protection, namely activating pistons, dispensers, explosives and using mob griefing. If there are no ops on the server, then spawn protection does not apply. Spawn protection only applies in the Overworld. Spawn protection does not apply in singleplayer.
The spawn-protection
field in server.properties determines the side length of the square spawn protection area as 2x+1. Setting this to 0 or a negative value disables the spawn protection. A value of 1 protects a 3×3 square centered on the spawn point, 2 protects 5×5, 3 protects 7×7, etc. The area that it protects is (spawn-protection×2 + 1)×(spawn-protection×2 + 1).
History[]
Java Edition Beta | |||||
---|---|---|---|---|---|
? | Added spawn protection. The radius is always 16 (protecting a 33×33 area). | ||||
Java Edition | |||||
1.4.2 | 12w40a | Added spawn-protection to server.properties.
| |||
Spawn protection no longer applies if the server does not have any ops. | |||||
1.5 | 13w05a | Setting spawn-protection to 0 now disables spawn protection, instead of protecting a 1×1 area.[1] | |||
1.8 | 14w17a | Added the world border. It is stated that terrain outside of this border should be treated the same as spawn protection, although the implementation is flawed. |