mojira.dev
MC-176047

Passenger riding on a mob has a delay before it falls when the mob is killed

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

Attachments

Comments 18

[Mod] markderickson

Hi there!

I can confirm for 1.16.1.

[Mod] markderickson

Hi there!

I can confirm for 20w27a.

Avoma

Can confirm in 20w49a.

Avoma

Can confirm in 21w03a.

Avoma

Can confirm in 21w06a.

8 more comments
Avoma

Can confirm in 1.19.

Avoma

Can confirm in 1.19.2.

Avoma

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]
Nathan Ryan

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.

Lunarian

Can confirm in 1.19.4 and 23w12a.

Feranogame

(Unassigned)

Confirmed

Platform

Low

Mob behaviour

20w13a, 1.16.1, 1.16.2 Pre-release 1, 1.16.3, 20w49a, ..., 1.20.1, 23w43a, 23w45a, 1.20.4, 24w10a

Retrieved