Mojira Archive
MC-260839

Mobs can replace weapons held in their main hand with armor

The bug

Mobs can replace weapons held in their main hand with armor. This does not occur at some point prior to 1.19.3, and might be a side effect of MC-259259.

To reproduce

  1. Summon a skeleton.
  2. /data modify entity @e[type=minecraft:skeleton,distance=..10,limit=1] CanPickUpLoot set value 1b
  3. Give it a diamond chestplate item.
  4. The skeleton will correctly place the chestplate on its chest.
  5. Give it another diamond chestplate item.

Observed result

The skeleton swaps the bow for the diamond chestplate.

Expected result

The skeleton would ignore the chestplate, as it occurred in previous versions.

Fixed

[Mod] ampolive

2023-03-08, 10:52 PM

2023-03-15, 10:13 AM

2023-03-15, 10:13 AM

3

3

Confirmed

Normal

Platform

Mob behaviour

1.19.3, 1.19.4 Pre-release 4, 1.19.4 Release Candidate 2, 1.19.4

23w12a