When dismounting from a minecart, the player or mob riding the minecart should be deposited on an adjacent block if one is available.
Behavior that occurred
When dismounting from a minecart, the player or mob is deposited directly above the minecart, even when other valid spaces are available. This can cause suffocation damage to the player or mob if there is a solid block two blocks above the minecart.
How to reproduce
- Place any rail, then a minecart on the rail.
- Get in the minecart, then get out of the minecart. (When not on a rail with shift dismounting.)
- Place a solid block above the block where the minecart is sitting with two air block in between to see the suffocation damage.
Based on 1.11.2 decompiled using MCP 9.35 rc1
It looks like the method net.minecraft.entity.EntityLivingBase.dismountEntity(Entity) now shifts down the bounding box it uses for testing block collisions by the ridden entity height.
- is duplicated by
MC-112128 Cart Bug on Leave
MC-112329 Activator rail powered minecart cant eject mob 1 block higher
MC-112368 Activator Rail no longer ejects Mob from Minecart to adjacent block
- relates to
MC-110474 Activator Rail ejects 2 high Mobs to the wrong spot inside of 2 high rooms
MC-3328 Dismounting an entity places riding entity / player half block too high
MC-176349 Player can fall through floor when ejected from minecart in in 2.5 high box