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

Cured zombie villagers don't drop picked up items

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 19w45a
    • Minecraft 1.4.5, Minecraft 1.4.6, Minecraft 1.4.7, Snapshot 13w01a, Snapshot 13w01b, Minecraft 1.5, Minecraft 1.5.2, Minecraft 1.6.1, Minecraft 1.6.2, Minecraft 1.6.4, Minecraft 13w36a, Minecraft 13w36b, Minecraft 13w42a, Minecraft 13w42b, Minecraft 13w43a, Minecraft 1.7, Minecraft 1.7.1, Minecraft 1.7.2, Minecraft 1.7.3, Minecraft 1.7.4, Minecraft 14w02c, Minecraft 14w03b, Minecraft 14w04a, Minecraft 14w04b, Minecraft 1.7.10, Minecraft 14w30b, Minecraft 14w30c, Minecraft 1.8, Minecraft 1.8.1, Minecraft 1.8.2-pre1, Minecraft 1.8.2-pre2, Minecraft 1.8.8, Minecraft 15w44b, Minecraft 15w45a, Minecraft 15w47c, 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.10.2, Minecraft 16w32a, Minecraft 16w32b, Minecraft 16w33a, Minecraft 16w35a, Minecraft 16w40a, Minecraft 16w41a, Minecraft 16w44a, Minecraft 1.11 Pre-Release 1, Minecraft 1.11.2, Minecraft 1.12.2, Minecraft 18w14a, Minecraft 18w14b, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 18w50a, Minecraft 19w11b, Minecraft 19w12b, 1.14.4
    • Confirmed
    • Survival
    • Mob behaviour
    • Important

      The bug

      A zombie villager picked up items dropped by a fellow player, specifically armor. The villager had been cured, and the armour was lost.

      How to reproduce

      1. Summon a zombie villager that can pick up items
        /summon minecraft:zombie_villager ~ ~ ~ {CanPickUpLoot:1b}
        
      2. Give an item to the zombie villager
      3. Cure the zombie villager (command below for alternative, faster method)
        /data merge entity @e[type=zombie_villager,limit=1,sort=nearest] {ConversionTime:1}
        

        Notice the items are gone

      The fix

      Call the method EntityLiving.dropEquipment(wasRecentlyHit, lootingModifier) in EntityZombieVillager.finishConversion().

            Excited Maria Lemón
            cubethethird [Mod] CubeTheThird
            Votes:
            28 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: