Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-201647

Entity riding an entity can cause location/coordinate desync

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 1.16.3, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, 1.16.4, 20w45a, 20w46a, 20w48a, 20w49a, 20w51a, 21w03a, 1.16.5, 21w05a, 21w05b, 21w06a, 21w08b, 21w15a
    • None
    • None
    • Confirmed
    • Networking
    • Normal

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Kman032317 Kyle Weber
              Votes:
              7 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                CHK: