mojira.dev
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.

Linked issues

Comments 3

but mace do less attack spped

attack speed has never been a consideration for weapon preference for zombies and only affects players anyways. so attack speed doesn't factor into anything

picarrow

etanaratsastaja

Community Consensus

Gameplay

Low

Mob behaviour

1.21, 24w33a, 1.21.3

24w45a

Retrieved