Teleporting an entity does not preserve motion

Open
#441 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
game-dev

Research direction

Start at the entity.teleportAsync entry point and trace how TeleportFlag.Relative.values() is handled during teleportation. Reproduce the issue with the call shown in the report, then verify that the entity's motion is retained when relative teleport flags are supplied.

Written by the indexing model from the issue text.

Description

status: needs triage type: bug
Expected behavior

calling entity.teleportAsync(destination, PlayerTeleportEvent.TeleportCause.PLUGIN, TeleportFlag.Relative.values()) should preserve the entity's motion after teleportation

Observed/Actual behavior

motion is not preserved

Steps/models to reproduce
  1. teleport an entity with relative teleport flags specified
    entity.teleportAsync(destination, PlayerTeleportEvent.TeleportCause.PLUGIN, TeleportFlag.Relative.values())
  2. motion is reset…
Plugin and Datapack List

unrelated

Folia version

[18:01:37 INFO]: Checking version, please wait...
[18:01:37 INFO]: This server is running Folia version 1.21.11-11-ver/1.21.11@e112b00 (2026-01-20T18:53:05Z) (Implementing API version 1.21.11-R0.1-SNAPSHOT)
You are running the latest version
Previous version: 1.21.11-100-4873e3f (MC: 1.21.11)

Other

No response

Dominant language
Shell
Stars
4.7k
Forks
651
Avg merge
10d 3h
Merged PRs (30d)
3

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PaperMC/Folia

All issues in PaperMC/Folia

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.