Mojira Archive
MC-379

spawn-animals and spawn-npcs=false removes all villagers and prevents summoning new mobs

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:

  1. Run a server
  2. Change server.properties to:
    spawn-npcs=false
    spawn-animals=false
    spawn-monsters=false
    
  3. 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.

Fixed

iliketra1ns

GrygrFlzr

2012-10-25, 10:55 AM

2024-09-03, 10:25 PM

2024-08-14, 02:38 PM

20

10

Confirmed

Low

Platform

Mob spawning

npc, server, villager

Minecraft 1.4.2 - 24w12aMinecraft 1.4.2, 20w14a, 1.16.3, 21w05b, 21w06a, 21w07a, 21w08a, 21w08b, 21w10a, 21w11a, 21w13a, 21w14a, 21w15a, 21w16a, 21w17a, 21w18a, 21w19a, 21w20a, 1.17 Pre-release 1, 1.17 Pre-release 2, 1.17 Pre-release 3, 1.17 Pre-release 4, 1.17 Pre-release 5, 1.17, 1.17.1, 21w37a, 21w38a, 21w39a, 21w40a, 21w41a, 21w43a, 1.18, 1.18.1, 22w06a, 1.18.2, 22w13a, 22w16b, 1.19 Pre-release 4, 1.19.3, 23w03a, 23w04a, 1.20.4, 24w12a

24w33a