mojira.dev
MC-14861

teleporting using commands resets the velocity

Sorry if this is a duplicate, I honestly searched everywhere but didn't find this issue.
edit: this might be a duplicate of [MC-4686]

How to reproduce:

Fly very high up, let yourself fall then type:
/tp @p ~0 ~100 ~0
You'll see you start without any movement upon teleport.

I'm trying to teleport players to a same looking location, but you can still see when you are teleported because of the velocity being reset. Also your hand moves when you teleport, but that's intended (I think)

Related issues

Comments

Jesper the End

confirmed for 13w19a

Anon Ymus

Confirmed.

Ezekiel

Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Jesper the End

confirmed for 1.6.1
I don't see why this takes so long to fix. I don't know much about programming in java but can't you just add 3 temporary variables to store the velocity before someone gets teleported and then apply that to the velocity after teleportation?

Abandoned account

Fixed in 14w02b.

Kyiiel

This issue exists again in 1.8.1.

Skylinerw

I can confirm it occurs in 1.8.1 and 1.8.2 pre-4. Opened a blank world, used the command while falling. It teleports me and I continue falling at the same speed, but after a few moments my character is sent back to the teleported location and velocity is reset.

Ezekiel

Jesper, I don't even think you would need to do that. In theory location change shouldn't affect velocity. If location is stored as (x, y, z) and velocity as (Xvel, Yvel, Zvel), then changing the first set shouldn't affect the other set.

KingSupernova

Confirmed in 15w51b.

[Mod] redstonehelper

New ticket please.

KingSupernova

Why? It's the exact issue described here.

[Mod] redstonehelper

Reopened.

marcono1234

Confirmed for

  • 15w51b

This is however not consistent for velocity caused by gravity. When you have for example a clock running /tp @p ~ ~1 ~, the player "bounces" instead of being teleported upwards constantly (see MC-79938)

KingSupernova

That would be MC-76463.

FaRo1

This is fixed in the current versions, correct?

Anon Ymus

Yes, certainly seems fixed in 16w41a.

Jesper the End

Yes this is fixed, [MC-4686] isn't though. Not the same issue but it's related.

Jesper the End

(Unassigned)

Confirmed

/tp, command, movement, relative, teleport, velocity

Minecraft 1.5.1, Minecraft 1.5.2, Snapshot 13w17a, Snapshot 13w18c, Snapshot 13w19a, ..., Minecraft 1.7.4, Minecraft 1.8, Minecraft 1.8.1, Minecraft 1.8.2-pre4, Minecraft 15w51b

Minecraft 14w02c, Minecraft 16w41a

Retrieved