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

The player's position is desynchronized while the player is riding a vehicle and the /data and /tp commands are used at the same time

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.3, 24w46a, 1.21.4 Pre-Release 3, 1.21.4
    • None
    • Confirmed
    • Commands
    • Normal
    • Platform

      Description of the bug:
      Setting the position of the entity using the command `/data` or `/execute store` and further teleportation of the entity using the command `/tp` leads to a desynchronization of the player's position on the server.
      According to my checks, bug appeared as a result of fixes of other bugs of the /tp command to version 1.21.2. There is no bug on version 1.21.1

      Reproducing a bug:
      1) Create an The Void world (optional);
      2) Download the structure from the attached files to the world and place it.
      OR copy the commands in the same order as in the video:

      /summon minecraft:text_display ~ ~ 0 {Tags:["test"],Passengers:[{id:"llama",NoAI:1b}]}
      /execute positioned as @p run particle minecraft:wax_on
      /data modify entity @n[tag=test] Pos[2] set value 0d
      /execute as @n[tag=test] at @s run tp @s ~ ~ ~0.5

      3) Summon an entity from the first command (A llama is optional, it is only for the convenience of ride);
      4) Enable the chain of commands from the third code block;
      5) Mount on the mob and try to dismount.

      Expected result:
      The player dismounts from the mob in the same position as without the combination of the `data` and `tp` commands.

      Current result:
      the player dismounts in the position of how long the `/tp` command has been working since the moment the player mounted on the mob.

      Video demonstration:
      Link

        1. test.nbt
          0.9 kB
          Antoha256M

            Unassigned Unassigned
            Antoha256M Antoha256M
            Votes:
            27 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              CHK: