mojira.dev
MC-270532

Mobs can be attacked by their own passengers

The bug

The player is blocked from being able to directly attack the mob on which it rides. This, however, does not appear to be true in general, even though I'd expect it would.

How to reproduce

/summon villager ~ ~ ~ {Passengers:[{id:zombie}]}

Expected results

They may not get along, but the villager should not get attacked by the zombie.

Actual results

The villager is eventually murdered by the zombie in cold blood.

Attachments

Comments 4

This issue also affects when the evoker riding a ravager.

Can also confirm 

Also affects 1.20.5 pre-release 1.

muzikbike

(Unassigned)

Confirmed

Mob behaviour

1.20.4, 24w14a

Retrieved