mojira.dev
MC-201647

Entity riding an entity can cause location/coordinate desync

The bug

When a saddled pig rides a minecart and then the player rides the pig, a desync will happen if the minecart dies and pig is still alive. However, since 21w05a, a new method is needed. It seems to only work now if the pig your riding gets moved into an unloaded chunk while riding the dead minecart. This can either be achieved by using tnt or a tp and kill command. Here I will show a simple /tp and /kill method, but the tnt method produces a more noticeable desync than just the /tp and /kill method. I will post a video showing the tnt and showing the /tp & /kill method.

How to reproduce

  1. Create a world and summon a saddled pig riding a minecart:

    /summon minecraft:minecart ~ ~4 ~ {Passengers:[{id:pig,Saddle:1,Invulnerability:0}]}
  2. Ride the pig

  3. Grab some command blocks.

  4. Enter this command to kill the minecart quickly:

    /kill @e[type=minecraft:minecart,limit=1,sort=nearest]
  5. In another command block that will come after the /kill command enter the following command:

    /tp @e[type=pig,limit=1,sort=nearest] 10000 100 10000
  6. Your position will be different than the your player client. To check this, run this:

    /data get entity @s Pos

    as well as check your f3 screen for your client coordinates

Videos

Tnt methods

Result 1: https://youtu.be/AhEzkJxQwDo
Result 2: https://youtu.be/aBG3BjK4cRo

Tp method:

Result 1: https://youtu.be/1aE4IbkSgrA

Related issues

Comments

anthony cicinelli

I can confirm for 1.16.3

migrated

A quicker way to reproduce this is just running this command when riding the pig:

/kill @e[type=minecraft:minecart,distance=..2]
migrated

This also works with striders. You can also hold a carrot on a stick/warped fungus on s stick to rotate the mob, but it won’t move.

Avoma

Can confirm in 20w51a.

wobst.michael

Can this still be reproduced in 21w05 or later?

migrated

I was not able to reproduce it in 21w05a 

[media]
migrated

I also wasn’t able to reproduce this. This is fixed,

migrated

I can reproduce it via other means. Let me update the method.

migrated

With the newer reproduction steps I am able to reproduce.

migrated

This report is also reproduced by MC-217736

migrated

Hello!

 

I have been having that issue too but man, I'm glad the new update finally fixed it.

 

Thanks for reading 🙂

migrated

gegy

Confirmed

Normal

Networking

1.16.3, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, 1.16.4, 20w45a, ..., 21w08b, 21w15a, 1.19.2, 22w43a, 1.19.4 Pre-release 3

23w12a

Retrieved