Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-379

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • None
    • Minecraft 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
    • Windows 7 64 bit, Java 1.7.0_07 64 bit
    • Confirmed
    • Mob spawning
    • Low

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tacofire Marty McFly
              Votes:
              14 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                CHK: