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

Desynchronization of the player's position while using the /data and /tp commands at the same time

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.3, 24w46a
    • None
    • Unconfirmed
    • (Unassigned)

      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.

      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:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: