Mojira Archive
MC-273450

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

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.

Fixed

Picarrow

[Mojang] etanaratsastaja

2024-06-15, 06:05 PM

2024-11-06, 09:57 AM

2024-11-06, 09:57 AM

5

2

Community Consensus

Low

Gameplay

Mob behaviour

1.21, 24w33a, 1.21.3

24w45a