mojira.dev
MC-269778

Teleportation with chorus fruits maintains the decimal places of the Y-coordinate, sometimes causing entities to be teleported too high

When a player or fox consumes a chorus fruit, the entity is consistently teleported while preserving the decimal places of the Y-coordinate. Consequently, if you stand on a floating platform comprised of non-full blocks like dirt paths or slabs, eating a chorus fruit on the platform will result in being teleported 1 block too high. This behavior can be readily verified by consuming a chorus fruit with the F3 debug screen open and observing the Y-coordinate closely.

Reproduction steps

  1. Construct a platform using non-full blocks such as dirt paths, slabs, or other similar blocks, ensuring it is suspended above water

  2. Stand upon the platform

  3. Eat a chorus fruit

Observed: You are teleported 1 block too high due to the retention of decimal places in the Y-coordinate.

Expected: Teleportation should consistently position you on the ground level, ensuring you are not teleported too high and risk falling slightly after consuming the chorus fruit.

Attachments

Comments

migrated
[media][media]
ampolive

Also affects ender pearls, and is not restricted to players and foxes.

migrated

No, this doesn't affect ender pearls at all! You might be encountering MC-199813. The decimal values afterward seem to be random and aren't retained.

migrated

The modification done by @unknown needs to be reversed since it doesn't apply to ender pearls, as @unknown has already rectified. You can verify this by testing it yourself; you'll see that it doesn't affect ender pearls, dear.

[Mod] EVGENSYPERPRO

Since this behavior only occurs when the entity eats the chorus from incomplete blocks, I removed the pearls. The problem with pearls is reproduced no matter where the player is.

migrated

(Unassigned)

Confirmed

Collision, Entities

1.20.4, 24w12a

Retrieved