Allowed hostile mobs to spawn.
On this page 6 sections
At a glance
Removed in 1.21.9
-
The same by game rules
/gamerule spawn_monsters false
Key. spawn-monsters in server.properties, it's no longer present: it was moved to 1.21.9. The same rule now applies to the game rules spawn_monsters (by default — true).
| What | Value |
|---|---|
| Key | spawn-monsters |
| By default | true |
| Type | true or false |
| Removed | in 1.21.9 |
From 1.21.9, the game rule does the same. spawn_monsters — «Monster spawns». This rule is stored in the world, not in server.properties, and can be changed with a command /gamerule spawn_monsters false (or true) directly on a running server. It is enabled by default.
On servers prior to version 1.21.9, the line still works as before.
Where did spawn-monsters in server.properties go?
It was removed in version 1.21.9: the server no longer reads this line. The same effect is now set by the game rule spawn_monsters: /gamerule spawn_monsters false.
What did spawn-monsters do?
Allows hostile mobs to spawn. By default, it was set to true.
Can you remove spawn-monsters from the file?
Yes: On newer versions, the line has no effect. On servers before version 1.21.9, it still works.
All server.properties settings server.properties generator
Data from Minecraft 26.3: Launcher manifest from Mojang, version.json inside each client version, and server.properties, which the server itself creates.