Setting spawn-npcs=false in server.properties disables villagers completely
Setting spawn-animals=false prevents any mob from being spawned by commands or mob spawners.
What I expected to happen was...
Villagers and animals to stop naturally spawning.
Mobs to still be allowed to be summoned via commands
What actually happened was...
ALL Villagers, including pre-existing ones in the world, or ones newly placed via spawn eggs, disappear instantly.
Steps to Reproduce:
Run a server
Change server.properties to:
spawn-npcs=false spawn-animals=false spawn-monsters=false
Join the server and execute the following commands
/summon villager /summon wolf /summon zombie
With difficulty on non-peaceful, you can see the Zombie summons fine. But the Villager and Wolf do not stay in the world.
For custom maps, commands should override any server.properties as it does with hostile mobs.
Linked issues
is duplicated by 3
Comments 13
I experience the same as OP where spawn-monsters still allows hostile mobs to exist in the world while spawn-npcs and spawn-animals immediately delete their respective entities. There is definitely unintentional behavior going on here. Did these options all get added in the same update?
The option functions as intended. It disables the mob completely. This is how the other mobs a work as well.