spawn-monsters in server.properties

server.properties

Allowed hostile mobs to spawn.

  • by default true
  • removed to 1.21.9
My Game select version

Save your preferences in this browser and apply them to supported tools. Settings in a shared link take priority. Wiki version labels are not affected.

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 does spawn-monsters do?

Allowed hostile mobs to spawn.

Values

WhatValue
Keyspawn-monsters
By defaulttrue
Typetrue or false
Removedin 1.21.9

What was replaced

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.

Frequently asked questions

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.

More in this section

Data from Minecraft 26.3: Launcher manifest from Mojang, version.json inside each client version, and server.properties, which the server itself creates.