Dying while riding an entity only respawns the player next to that entity if the gamerule doImmediateRespawn is true
The bug
I am using the gamerule "doImmediateRespawn" on. When I /kill or something kills me while i'm sitting on something, I respawn as if i just stopped sitting.
To reproduce
- Go far away from your current spawn point
- Run /gamerule doImmediateRespawn true
- Summon a pig
- Saddle the pig
- Start riding the pig
- Run /kill
→
You spawn directly next to the pig