The Bug
Passenger riding on a mob has a delay before it falls when the mob is killed. This can be easily seen with Baby Striders on top of adults.
Steps to Reproduce
Summon a baby strider riding an adult strider.
/summon minecraft:strider ~ ~ ~ {Passengers:[{id:"minecraft:strider",Age:-25000}]}
Kill the adult strider and watch the baby strider closely as you do this.
Take note as to whether or not baby striders riding adults striders have a delay before they're dismounted after the adult is killed.
Observed Behavior
Passengers riding mobs have a delay before they're dismounted after the mob is killed.
Expected Behavior
Passengers riding mobs would be instantly dismounted after the mob is killed.
Code Analysis
Code analysis by @unknown can be found in this comment.
Linked issues
is duplicated by 1
Attachments
Comments 18
Hi there!
I can confirm for 20w27a.
Can confirm in 20w49a.
Can confirm in 21w03a.
Can confirm in 21w06a.
Can confirm in 1.19.
Can confirm in 1.19.2.
Following on from my code analysis, I've double-checked my proposed fix and I can confidently confirm that it's fully functioning and works as expected, so I've attached two screenshots to this report, one of which shows the current code and the other that shows the fixed code. I feel this information may be quite insightful hence my reasoning for providing it. 🙂
[media][media]A consequence of this seems to be that, during the death animation of the mount, the rider has entity collision but not yet block collision. So the temporarily dismounted-but-not-dismounted rider, no longer moored to the dead mount, can be "pushed" by other entities into/through solid blocks until the dismount sequence has been completed.

Can confirm in 1.19.4 and 23w12a.
Hi there!
I can confirm for 1.16.1.