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:
- 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.
Environment
Windows 7 64 bit, Java 1.7.0_07 64 bit
- Fixed
iliketra1ns
GrygrFlzr- 20
- 10
- Confirmed
Low
- Platform
- Mob spawning
- npc server villager
1.4.2 - 24w12a
1.4.2 20w14a 1.16.3 21w05b 21w06a 21w07a 21w08a 21w08b 21w10a 21w11a 21w13a 21w14a 21w15a 21w16a 21w17a 21w18a 21w19a 21w20a 1.17-pre1 1.17-pre2 1.17-pre3 1.17-pre4 1.17-pre5 1.17 1.17.1 21w37a 21w38a 21w39a 21w40a 21w41a 21w43a 1.18 1.18.1 22w06a 1.18.2 22w13a 22w16b 1.19-pre4 1.19.3 23w03a 23w04a 1.20.4 24w12a- 24w33a
Created Issue:
spawn-npcs=false removes all villager instances
Setting spawn-npcs=false in server.properties disables villagers completely.
What I expected to happen was...
Villagers to stop spawning after the thisWhat 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. Spawn villager in server.
2. Change server.properties to have spawn-npcs=false.
3. Restart server. Log in to the server and the villager you've spawned earlier has disappeared.
4. Try spawning a new villager. It will flash into existence for a moment, then disappear completely. It is NOT invisible - it completely doesn't exist.Environment
Windows 7 64 bit, Java 1.7.0_07 64 bit
Setting spawn-npcs=false in server.properties disables villagers completely.
What I expected to happen was...
Villagers to stopspawning after the thisWhat 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. Spawn villager in server.
2. Change server.properties to have spawn-npcs=false.
3. Restart server. Log in to the server and the villager you've spawned earlier has disappeared.
4. Try spawning a new villager. It will flash into existence for a moment, then disappear completely. It is NOT invisible - it completely doesn't exist.Setting spawn-npcs=false in server.properties disables villagers completely.
What I expected to happen was...
Villagers to stop naturally spawning.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. Spawn villager in server.
2. Change server.properties to have spawn-npcs=false.
3. Restart server. Log in to the server and the villager you've spawned earlier has disappeared.
4. Try spawning a new villager. It will flash into existence for a moment, then disappear completely. It is NOT invisible - it completely doesn't exist.
relates to
spawn-npcs=false removes all villager instances and prevents summoning new mobs
Setting spawn-npcs=false in server.properties disables villagers completely.
What I expected to happen was...
Villagers to stop naturally spawning.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. Spawn villager in server.
2. Change server.properties to have spawn-npcs=false.
3. Restart server. Log in to the server and the villager you've spawned earlier has disappeared.
4. Try spawning a new villager. It will flash into existence for a moment, then disappear completely. It is NOT invisible - it completely doesn't exist.Setting spawn-npcs=false in server.properties disables villagers completely and prevents any mob from being spawned by commands or mob spawners.
What I expected to happen was...
Villagers to stop naturally spawning.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. Spawn villager in server.
2. Change server.properties to have spawn-npcs=false.
3. Restart server. Log in to the server and the villager you've spawned earlier has disappeared.
4. Try spawning a new villager. It will flash into existence for a moment, then disappear completely. It is NOT invisible - it completely doesn't exist.
spawn-npcs=false removes all villagerinstances and prevents summoning new mobsspawn-animals and spawn-npcs=false removes all villagers and prevents summoning new mobs
Setting spawn-npcs=false in server.properties disables villagers completely
and prevents any mob from being spawned by commands or mob spawners.What I expected to happen was...
Villagers to stop naturally spawning.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. Spawn villager in server.
2. Change server.properties to have spawn-npcs=false.3. Restart server. Log in to the server andthevillageryou've spawned earlier has disappeared.
4. Try spawning a new villager. It will flash into existence for a moment, then disappear completely. It is NOT invisible - it completely doesn't exist.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 commandsWhat 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=false3. Hop on the server and place 3 commands blocks with these commands:
/summon Villager ~ ~1 ~ /summon Wolf ~ ~1 ~ /summon Zombie ~ ~1 ~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.
is duplicated by
relates to
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 commandsWhat 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=false3. Hop on the server and place 3 commands blocks with these commands:
/summon Villager ~ ~1 ~ /summon Wolf ~ ~1 ~ /summon Zombie ~ ~1 ~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.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 commandsWhat 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 zombieWith 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.
I see. Even so, as the guy who reported MC-379 said, it is misleading.
Mods, I had a look at MC-379, which I can't comment on. The consensus was that this is intended behaviour, but spawn-monsters=false isn't affected by summon, spawners or spawn eggs. Perhaps we could reopen that report and merge this one?
This oversight does really mess up custom maps that rely on villagers and animals to exist. And it's entirely possible a server owner may not realize the server.properties overrides the intent of the map mechanics if they have left the setting on false.
Since monsters aren't affected, Mojang should be able to adjust the other properties to follow suit.
Reopened MC-379 and merged this with that one
What underwater monsters?
Spawners are not exactly a bug, as it prevents natural spawning, not all kinds of spawning.
That spawn-animals and spawn-npcs prevent existence in general is MC-379.
The option functions as intended. It disables the mob completely. This is how the other mobs a work as well.
Even if it is intended, the option name is misleading - it should be enable-npcs, not spawn-npcs.
Other settings named along the same lines (spawn-animals, spawn-monsters) works the same way.
Affects 21w05b
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?
uhhhhh
how to spawn a mob when spawn-monsters off?
I don't want natural generated mobs, just custom ones
/summon or spawn egg.
Can confirm in 1.19.3
Can confirm in 23w03a
Can confirm in 23w04a
Can confirm in 23w06a
Can confirm in 1.20.1
Wait what....
You resolved spawn-animals bug option by just removing the feature altogether?
We have been using this feature for 10+ years. How would we disable animals now?