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

Mobs with CanPickUpLoot:1b behave inconsistently with the mace / trident

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 24w45a
    • 1.21, 24w33a, 1.21.3
    • None
    • Community Consensus
    • Mob behaviour
    • Low
    • Gameplay

      How to Reproduce - Observation 1:

      1. Spawn a zombie with CanPickUpLoot set to 1b:
        /summon minecraft:zombie ~ ~ ~ {CanPickUpLoot:1b}
      1. Give the zombie a mace / trident.
      2. After it picks up the mace / trident, give it a netherite axe, a highly coveted item by zombies that has more attack damage than the mace / trident.

      Observed result:
      It doesn't pick up the netherite axe.

      How to Reproduce - Observation 2:

      1. Spawn a zombie with CanPickUpLoot set to 1b:
        /summon minecraft:zombie ~ ~ ~ {CanPickUpLoot:1b}
      1. Give the zombie a stick, one of the least desirable items for zombies.
      2. After it picks up the stick, give it a mace / trident.

      Observed result:
      It doesn't pick up the mace / trident.

      Expected result:
      Mobs should generally prefer weapons based on the melee attack damage that they deal.

      Notes:
      Mobs will replace most (if not all other weapons) with any sword, even if the sword deals less damage.

            Dat12 [Mojang] etanaratsastaja
            Picarrow Picarrow
            Votes:
            5 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: