Mojira Archive
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

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

Unresolved

Antoha256M

2024-11-19, 10:12 AM

2025-01-09, 09:58 PM

17

3

Confirmed

Normal

Platform

Commands

1.21.3, 24w46a, 1.21.4 Pre-Release 3, 1.21.4

-