Skip to content

Teleporting an entity resets its velocity #10201

@Mitality

Description

@Mitality

Expected behavior

Moving minecart:
Using /execute at <minecart> run tp <minecart> ~10 ~ ~ with a moving minecart should quickly move it 10 blocks east, before it would continue to move like normal (works with normal vanilla Minecraft)

Falling creeper:
Executing /execute at <creeper> run tp <creeper> ~ ~ ~ on a creeper that is falling from the sky should leave it falling like nothing happened, because it doesn't modify the creepers position at all (also works fine with vanilla Minecraft)

Observed/Actual behavior

Moving minecart:
The minecart is quickly moved 10 blocks east, but it then stops, completely losing its momentum.

Falling creeper:
The creeper stops mid air, before starting to fall again.

Steps/models to reproduce

  1. Create a default PaperMC 1.20.4 minecraft server.
  2. Log on to the server and have a creeper stand on a block high in the air.
  3. Knock the creeper down, execute /execute at <creeper> run tp <creeper> ~ ~ ~, and watch it stop mid air, before starting to fall again.
  4. Build a track with powered rails and have a minecart move on it from north to south.
  5. Execute /execute at <minecart> run tp <minecart> ~10 ~ ~, and watch the minecart quickly move 10 blocks forward, before it just stops

Plugin and Datapack List

None.

Paper version

[13:36:23 INFO]: This server is running Paper version git-Paper-389 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: 848a396)

Other

Velocity seems to be reset for any entity that is teleportet EXCEPT players.

### Tasks

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.type: bugSomething doesn't work as it was intended to.

    Type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions