mojira.dev
MC-193176

Most mobs with CanPickUpLoot prefer swords over axes and will downgrade their weapon

Steps:

  1. Summon vindicator with command

    /summon vindicator ~ ~ ~ {CanPickUpLoot:1b,HandItems:[{id:iron_axe,Count:1},{}]}
  2. Drop wooden sword

  3. Vindicator will downgrade his good weapon to a worse weapon. Afterwards will only upgrade to better swords

Linked issues

Attachments

Comments 7

I'm pretty sure swords are prefered to axes for all mobs, so this wouldn't really be a bug so much as a feature request for CanPickUpLoot mobs to prefer axes to swords.

No, because other mobs like piglin brutes will only pick up axes, so they do not downgrade their weapons for no reason.

Can confirm in 20w46a.

Can confirm in 21w08b. Video attached.

Basically affects all mobs except piglin brutes, eg summoning a zombie with an axe will do the same thing.

Can confirm in 1.21.

Ozone

etanaratsastaja

Confirmed

Mob behaviour

1.16.1, 20w27a, 20w28a, 20w29a, 20w30a, ..., 22w03a, 1.19.4, 23w14a, 1.20.1, 1.21

24w45a

Retrieved