mojira.dev
MC-275455

Player motion is no longer retained on relative teleportation

In previous versions, relative teleportation (Example: /tp @s ~ ~ ~) would not reset the player's velocity when run. Now it does on 24w33a.

Steps to reproduce (both versions):

  1. Run /tp @s ~ ~ ~ while in motion (i.e. falling)

Observed result:
In 1.21.1, player motion is only reset when teleporting to specific coordinates (/tp @s 0 0 0) or teleporting to an entity (/tp @s @s). Motion was not affected when teleporting relatively (/tp @s ~ ~ ~ or /tp @s ^ ^ ^)
In 24w33a, player motion is reset in all cases.

Expected result:
Player motion is not affected.

Linked issues

Comments

BugTracker

Can confirm.

migrated

 tp command does not seem to update nbt information.

This means that when you run data modify entity @s Rotation[0] set value 30f, the mob actually looks at the same place
But when you run tp @s ~ ~ ~ ~30 ~ it does not match.
Of course, it is possible to use these features to implement a mob that moves while looking at one side, but it seems like a bug.

Geoloswith1993

Shugoh

Confirmed

Platform

Very Important

Commands, Player

command

24w33a, 24w34a

24w36a

Retrieved