Relatively teleporting an entity resets its Motion
The bug
When teleporting an entity using the /tp or the /teleport command, its Motion is reset to Motion:[0.0d,0.0d,0.0d].
How to reproduce
- Place a repeating command block.
- Enter the command
/execute as @e at @s run teleport @s ~ ~ ~
and set it to always active.
- Summon any entity and notice it is not affected by gravity (or moving around).
What I expected to happen was
The entity should be unaffected by the command, because its motion should not be changed by the /teleport command, unless any coordinate is set to an absolute one,just like players.
What actually happened was
The entity stopped moving, because the teleportation resets its Motion.
2016-06-23, 02:29 PM
2024-09-13, 12:19 PM
26
10
Minecraft 1.10.2 - 24w34a
Minecraft 1.10.2, Minecraft 16w36a, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 18w01a, Minecraft 18w21a, Minecraft 18w22a, Minecraft 18w22b, Minecraft 1.13-pre4, Minecraft 1.13-pre6, Minecraft 1.13-pre7, Minecraft 1.13, Minecraft 1.13.1, Minecraft 1.13.2-pre1, Minecraft 1.13.2, Minecraft 19w12b, Minecraft 19w13a, Minecraft 1.14 Pre-Release 2, Minecraft 1.14 Pre-Release 3, Minecraft 1.14 Pre-Release 4, Minecraft 1.14 Pre-Release 5, 19w42a, 1.15.1, 1.15.2, 20w10a, 20w49a, 20w51a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w08b, 21w11a, 21w13a, 21w14a, 21w15a, 21w17a, 21w18a, 1.17, 22w15a, 1.19, 1.19.2, 1.19.3, 1.19.4, 1.20.1, 1.20.2, 23w43a, 23w43b, 24w34a
-