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

Relatively teleporting an entity resets its Motion

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 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
    • None
    • Confirmed
    • Commands
    • Low
    • Platform

      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

      1. Place a repeating command block.
      2. Enter the command
        /execute as @e at @s run teleport @s ~ ~ ~

        and set it to always active.

      3. 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.

        1. 1.9.4 front.png
          1.9.4 front.png
          156 kB
        2. 1.9.4 side.png
          1.9.4 side.png
          337 kB
        3. 1.10 front.png
          1.10 front.png
          152 kB
        4. 1.10 side.png
          1.10 side.png
          259 kB

            Unassigned Unassigned
            jirauser71590 user-f2760 (Inactive)
            Votes:
            27 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              CHK: