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

Mobs with CanPickUpLoot no longer pick up enchanted items after picking up an unenchanted item

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 24w09a, 1.21, 24w33a, 1.21.1 Release Candidate 1, 1.21.1, 24w34a, 24w35a, 24w36a, 24w37a, 24w38a, 24w39a
    • None
    • Community Consensus
    • Mob behaviour
    • Important
    • Platform

      The Bug

      Introduced in 24w09a.

      Mobs with CanPickUpLoot do not drop an item they are holding/wearing for an enchanted item, unlike pre-1.20.5 behavior. For example, a zombie will not drop a netherite sword for a netherite sword enchanted with Sharpness V. This also occurs with armor.

      Steps to Reproduce

      1. Summon a husk that can pick up loot:
        /summon minecraft:husk ~ ~ ~ {CanPickUpLoot:1b}
      1. Throw the husk a sword.
      2. Once the husk has picked up the sword, throw it a sword (of the same type) enchanted with Sharpness V.
      3. Note how the husk does not pick up the enchanted sword. 1.21.mp4
      4. Attempting this in 1.20.4 shows the correct behavior, where the husk prefers the enchanted sword to the unenchanted sword. 1.20.4.mp4

      Additional Notes

      Related to MC-273450 and MC-193176.

        1. 1.20.4.mp4
          7.33 MB
          Viradex
        2. 1.21.mp4
          7.59 MB
          Viradex

            Unassigned Unassigned
            Arnav78 Viradex
            Votes:
            12 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              CHK: