mojira.dev
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

Linked issues

Attachments

Comments 6

Seems related to MC-197855. But in this case you're teleporting the vehicle.

@Dhranios According to my checks, my bug appeared as a result of fixes of other bugs of the /tp command to version 1.21.2. There is no bug of mine on version 1.21.1

In 1.21.4-pre3, it seems that the player no longer dismounts to an incorrect position, but all commands run from their position (e.g. the particle command you used) while still mounted use the incorrect position.

what, I was able to change the category, it looks like it's a bug on the site

You're not allowed to change the category using exploits on the site. Please don't do it again.

I can confirm for 1.21.4 btw

Antoha256M

(Unassigned)

Confirmed

Platform

Normal

Commands

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

Retrieved