mojira.dev
MC-227768

Entities build up fall damage while being teleported

The bug

Entities build up fall damage while being teleported. I have tested this with cows and with the player.

Steps to reproduce

1. Create a new survival peaceful superflat world. You should be in y = 4.
2. Execute the command /tp ~ 7 ~.
3. Notice how you do not take fall damage.
4. Execute /tp ~ 100 ~, and before hitting the ground, execute /tp ~ 7 ~.
5. ❌ You take fall damage.

The expected behavior is that the momentum should be reset every time the entity is teleported.

Related issues

Attachments

Comments

migrated
[media][media][media][media][media][media][media]
ampolive

Relates to MC-14167.

migrated

I would say this works as intended. You're constantly building up your kinetic energy for the whole time (you don't bounce off anything).

ampolive

That would be inconsistent with the behavior described in MC-14167, which is considered a bug.

migrated

But the entity is oscillating on the lead (the energy is constantly transforming between the potential and kinetic one). See https://en.wikipedia.org/wiki/Harmonic_oscillator

ampolive

You have a point, but let's not discuss this any further here to not clog up the issue.

migrated

I do not use command blocks so I can't help

ampolive

You don't need command blocks to reproduce this issue.

[MOD] Greymagic27

Does MC-79938 describe your issue?

ampolive

I suppose so.

ampolive

(Unassigned)

Unconfirmed

(Unassigned)

death, fall-damage, teleport

1.17 Release Candidate 2, 1.17, 1.17.1 Pre-release 1, 1.17.1 Pre-release 2, 1.17.1 Pre-release 3, 1.17.1 Release Candidate 1, 1.17.1 Release Candidate 2, 1.17.1

Retrieved