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

When zombie villagers, husks, drowned or zombified piglins are damaged, they spawn regular zombie reinforcements

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 14w29b, 24w33a
    • Snapshot 13w17a, Snapshot 13w18b, Snapshot 13w18c, Snapshot 13w19a, Snapshot 13w23b, Snapshot 13w24a, Snapshot 13w24b, Snapshot 13w25a, Minecraft 1.7.5, Minecraft 14w11b, Minecraft 14w20b, Minecraft 14w21a, Minecraft 14w21b, Minecraft 14w32a, Minecraft 14w32b, Minecraft 14w32c, Minecraft 14w32d, Minecraft 1.8, Minecraft 1.8.1, Minecraft 1.8.3, Minecraft 1.8.4, Minecraft 15w47a, Minecraft 15w49a, Minecraft 15w49b, Minecraft 15w50a, Minecraft 16w03a, Minecraft 16w04a, Minecraft 16w05a, Minecraft 16w05b, Minecraft 1.9 Pre-Release 1, Minecraft 1.9 Pre-Release 2, Minecraft 1.9 Pre-Release 3, Minecraft 1.9 Pre-Release 4, Minecraft 1.9, Minecraft 1.9.1 Pre-Release 1, Minecraft 1.9.1 Pre-Release 2, Minecraft 1.9.1 Pre-Release 3, Minecraft 1.9.1, Minecraft 1.9.2, Minecraft 16w14a, Minecraft 16w15a, Minecraft 1.9.4, Minecraft 16w20a, Minecraft 1.10.2, Minecraft 1.11, Minecraft 1.11.2, Minecraft 1.12 Pre-Release 2, Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 18w03b, Minecraft 18w08b, Minecraft 18w16a, Minecraft 1.13-pre1, Minecraft 1.13, Minecraft 18w31a, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w09a, Minecraft 1.14, Minecraft 1.14.1 Pre-Release 1, Minecraft 1.14.1 Pre-Release 2, Minecraft 1.14.1, Minecraft 1.14.2, Minecraft 1.14.3, 1.14.4, 19w40a, 1.15 Pre-release 1, 1.15 Pre-Release 2, 1.15, 1.15.2, 20w18a, 20w20b, 20w21a, 1.16 Pre-release 5, 1.16 Pre-release 7, 1.16 Release Candidate 1, 1.16, 1.16.1, 20w28a, 20w29a, 1.16.3, 1.16.4 Pre-release 2, 1.16.4, 20w48a, 20w51a, 1.16.5, 21w05b, 21w06a, 21w11a, 21w17a, 21w18a, 1.17 Pre-release 1, 1.17 Pre-release 2, 1.17 Pre-release 3, 1.17, 1.17.1 Pre-release 1, 1.17.1 Release Candidate 1, 1.17.1, 21w37a, 21w39a, 21w42a, 21w44a, 1.18 Pre-release 5, 1.18 Pre-release 6, 1.18 Release Candidate 1, 1.18.1, 1.18.2, 22w18a, 1.19, 1.19.2, 1.19.3, 1.19.4 Pre-release 3, 1.19.4, 23w18a, 1.20.1, 1.20.2, 1.20.4, 23w51b, 1.21 Pre-Release 4, 1.21
    • Confirmed
    • Mob spawning
    • Low
    • Gameplay

      The bug

      When zombie villagers, husks, drowned or zombified piglins take damage, there is a chance (depending on difficulty setting it seems) that a zombie will spawn.

      It is not clear what the expected behavior for these zombie types should be: Spawning zombies of the same type or not being able to spawn reinforcements at all.
      However, for zombie villagers spawning zombie villager reinforcements might allow building a farm based on this, which might or might not be desired.

      Note: For zombified piglins ("zombie pigmen" at the time) this was partially fixed in 20w14a by setting their base zombie.spawn_reinforcements value to 0. However, it appears that if a zombified piglin spawns as leader ("Leader zombie bonus"), then it is still possible for it to spawn zombies. The same also applies when setting a custom zombie.spawn_reinforcements value in the NBT or via commands.

      How to reproduce

      1. Be in the nether or the end (the overworld works too, but there will be natural zombie spawning as well)
      2. Set the game difficulty to hard, and ensure the gamerule mobGriefing is set to true
      3. Spawn a bunch of zombie villagers, husks, drowned or zombified piglins. Example:
        /summon minecraft:zombified_piglin ~ ~ ~ {Attributes:[{Base:1.0,Name:"zombie.spawn_reinforcements"}]}
      4. Go into survival mode
      5. Damage the mobs for a while
        → Zombie reinforcements are spawning

      Expected behavior

      Regular zombie reinforcements would not be spawned when entities that aren't zombies with the minecraft:zombie.spawn_reinforcements attribute are attacked. Instead, for example, if a zombified piglin with this attribute were to be attacked, it would summon zombified piglin reinforcements and not zombie reinforcements.

      Code analysis

      Code analysis by marcono1234 can be found in this comment.

        1. 1.15 pre1 nether zombie reinforcement 1.png
          1.15 pre1 nether zombie reinforcement 1.png
          935 kB
        2. 1.15 pre1 nether zombie reinforcement 2.png
          1.15 pre1 nether zombie reinforcement 2.png
          969 kB
        3. 2013-04-27_12.24.49.png
          2013-04-27_12.24.49.png
          1.74 MB
        4. 2013-04-27_12.25.13.png
          2013-04-27_12.25.13.png
          986 kB
        5. 2013-05-02_17.02.56.png
          2013-05-02_17.02.56.png
          332 kB
        6. 2013-05-02_17.03.13.png
          2013-05-02_17.03.13.png
          346 kB
        7. 2013-05-02_17.03.37.png
          2013-05-02_17.03.37.png
          362 kB
        8. 2013-05-02_17.03.55.png
          2013-05-02_17.03.55.png
          316 kB
        9. 2014-09-05_19.20.53.png
          2014-09-05_19.20.53.png
          543 kB
        10. 2019-06-02_19.11.14.png
          2019-06-02_19.11.14.png
          569 kB
        11. 2019-10-06_00.57.42.png
          2019-10-06_00.57.42.png
          912 kB
        12. 2019-10-06_08.45.25.png
          2019-10-06_08.45.25.png
          845 kB
        13. 2020-04-29_20.57.59.png
          2020-04-29_20.57.59.png
          524 kB
        14. 2020-07-18_17.15.06.png
          2020-07-18_17.15.06.png
          660 kB
        15. image-2020-07-18-21-36-11-669.png
          image-2020-07-18-21-36-11-669.png
          660 kB
        16. javaw_pFPJfXEROq.png
          javaw_pFPJfXEROq.png
          477 kB
        17. pigmenbug.gif
          pigmenbug.gif
          4.32 MB

            Dat12 [Mojang] etanaratsastaja
            Sonicwave [Mod] Sonicwave
            Votes:
            122 Vote for this issue
            Watchers:
            53 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: