[GH-ISSUE #7083] Chorus Fruit can teleport players outside the world border #3140

Open
opened 2026-11-03 04:06:10 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @byMehd on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7083

When eating a Chorus Fruit near the world border, the player can be teleported outside the border.

In vanilla Minecraft Java Edition 26.3, Chorus Fruit teleportation is restricted by the world border, preventing players from teleporting beyond it.

In Horizon, this restriction does not work, allowing the player to end up outside the world border.

Tested on:

  • OS: Windows PC
  • Horizon version: Nightly c9d474d
Originally created by @byMehd on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7083 When eating a Chorus Fruit near the world border, the player can be teleported outside the border. In vanilla Minecraft Java Edition 26.3, Chorus Fruit teleportation is restricted by the world border, preventing players from teleporting beyond it. In Horizon, this restriction does not work, allowing the player to end up outside the world border. Tested on: - OS: Windows PC - Horizon version: Nightly `c9d474d`
Author
Owner

@Akirabane commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

Taking this. Will follow vanilla 26.3 (LivingEntity.randomTeleport / chorus fruit teleport, WorldBorder bounds) and reproduce with worldborder set first.

Comment by Akirabane's AI agent (Claude Code, MAX), not by Akirabane personally.

<!-- gh-comment-id:6575588264 --> @Akirabane commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim Taking this. Will follow vanilla 26.3 (LivingEntity.randomTeleport / chorus fruit teleport, WorldBorder bounds) and reproduce with `worldborder set` first. > Comment by Akirabane's AI agent (Claude Code, MAX), not by Akirabane personally.
Author
Owner

@Akirabane commented on GitHub (Nov 2, 2026):

🤖 Agent: Checked against 26.3: this matches vanilla.

TeleportRandomlyConsumeEffect calls LivingEntity.randomTeleport, whose first step clamps the destination centre to the border (WorldBorder.clampVec3ToBound: x and z between min and max − 1.0E-5). Then checkPositionAndTeleport uses Level.noCollision(AABB) without an entity, so the body is not tested against the border: part of the body can stick out past the border, as in vanilla.

Horizon does the same (random_teleport in consume.rs, since #799). In game, with a border of 10 and 20 chorus fruits eaten from (4.5, 68, 4.5): all 20 arrivals were inside the border, the largest at 5.49999 (max − 1.0E-5).

If you can still reproduce it, please share the seed, the border settings and the exact steps (or the server) so we can compare.

Comment by Akirabane's AI agent (Claude Code, MAX), not by Akirabane personally.

<!-- gh-comment-id:6576015020 --> @Akirabane commented on GitHub (Nov 2, 2026): 🤖 Agent: Checked against 26.3: this matches vanilla. `TeleportRandomlyConsumeEffect` calls `LivingEntity.randomTeleport`, whose first step clamps the destination centre to the border (`WorldBorder.clampVec3ToBound`: x and z between min and max − 1.0E-5). Then `checkPositionAndTeleport` uses `Level.noCollision(AABB)` without an entity, so the body is not tested against the border: part of the body can stick out past the border, as in vanilla. Horizon does the same (`random_teleport` in `consume.rs`, since #799). In game, with a border of 10 and 20 chorus fruits eaten from (4.5, 68, 4.5): all 20 arrivals were inside the border, the largest at 5.49999 (max − 1.0E-5). If you can still reproduce it, please share the seed, the border settings and the exact steps (or the server) so we can compare. > Comment by Akirabane's AI agent (Claude Code, MAX), not by Akirabane personally.
Author
Owner

@Akirabane commented on GitHub (Nov 2, 2026):

🤖 Agent: /unclaim

Releasing this: on 26.3 the chorus fruit teleport already matches vanilla (the centre is clamped inside the border, as WorldBorder.clampVec3ToBound does). Evidence in https://github.com/horizon-rust/horizon/issues/7083#issuecomment-6576015020.

Comment by Akirabane's AI agent (Claude Code, MAX), not by Akirabane personally.

<!-- gh-comment-id:6576022312 --> @Akirabane commented on GitHub (Nov 2, 2026): 🤖 Agent: /unclaim Releasing this: on 26.3 the chorus fruit teleport already matches vanilla (the centre is clamped inside the border, as `WorldBorder.clampVec3ToBound` does). Evidence in https://github.com/horizon-rust/horizon/issues/7083#issuecomment-6576015020. > Comment by Akirabane's AI agent (Claude Code, MAX), not by Akirabane personally.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#3140
No description provided.