[PR #800] [MERGED] Fix execute source dimension for player teleports #2823

Closed
opened 2026-11-02 15:59:20 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/800
Author: @LookImEcho-Rick
Created: 10/18/2026
Status: ✅ Merged
Merged: 10/19/2026
Merged by: @ludovic111

Base: main ← Head: codex/issue-592-nether-teleport


📝 Commits (3)

  • c1211b2 Fix execute source dimension for player teleports
  • 471a8fd Merge origin/main into #800 (execute in: source dimension)
  • 874d62b Merge remote-tracking branch 'origin/main' into pr800

📊 Changes

6 files changed (+110 additions, -26 deletions)

View changed files

📝 crates/horizon-client/src/game/command_blocks.rs (+1 -1)
📝 crates/horizon-client/src/game/commands.rs (+46 -3)
📝 crates/horizon-client/src/game/commands/execute.rs (+22 -16)
📝 crates/horizon-client/src/game/commands/place.rs (+2 -2)
📝 crates/horizon-client/src/game/nether_portal.rs (+17 -4)
📝 tools/command_exec_corpus.py (+22 -0)

📄 Description

What and why

Fixes #592.

/execute in minecraft:the_nether run tp @s 0 100 0 previously moved the player within the Overworld. Carry the command source's dimension through execute modifiers and use the existing level-switch path to move the local player to the requested level, preserving command coordinates without creating a portal or playing portal effects.

Keep execute at in the selected entity's dimension and apply vanilla source-coordinate scaling for execute in. Extend the command execution corpus for source dimension checks, loaded checks, round trips, relative coordinates and explicit rotation.

Vanilla reference

Inspected pinned Minecraft Java 26.3 bytecode with tools/rea_vanilla.py:

  • ExecuteCommand.register
  • CommandSourceStack.withLevel
  • DimensionType.getTeleportationScale
  • TeleportCommand.teleportToPos and performTeleport

Harness: python tools/test_command_exec_parity.py --only execute.

Self-check

Draft: final Horizon parity and the complete self-check still need validation on maintainer hardware.

Passed on the submitted implementation:

  • cargo check --locked -p horizon-client --all-targets
  • cargo clippy --workspace --all-targets --locked -- -D warnings
  • Direct rustfmt checks on all five edited Rust files
  • git diff --check, Python compilation of the corpus, and public-tree checks (including pre-push history check)
  • CPU-only vanilla oracle completed the expanded corpus of 74 recorded commands. This is not a Horizon-versus-vanilla pass.

An earlier revision passed 64/64 execute commands against vanilla and the reported teleport was manually confirmed. That result predates the final context/scaling changes and does not validate this final diff.

A passing pr_ready.py block is unavailable:

  • Native Windows Python: import fails because os.uname() is unavailable.
  • Cygwin Python: import succeeds, then Windows Cargo manifest paths fail conversion to Cygwin paths.
  • Full cargo fmt --all -- --check: Windows error 206; direct edited-file formatting checks pass.
  • Python discovery: native Windows ran 215 tests with two import errors; Cygwin ran 236 with two native Git/rustc path errors.

Remaining validation and runtime risk

Please run the final execute parity corpus and the standard self-check on suitable maintainer hardware before marking this ready.

Local GPU validation has stopped after repeated full-PC lockups requiring forced reboot, reported around Alt+Tab (Windows 11, RTX 5080, NVIDIA 617.42, Vulkan). Reports include surface acquisition validation failure and an invalid section-arena buffer during Queue::write_buffer. The cause is unresolved. A successful short gameplay run does not establish stability.

No speculative renderer changes are included. The teleport uses the existing dimension-switch path, which clears renderer sections, so independence from the renderer failure has not been established. Renderer investigation should remain separate unless a direct dependency is demonstrated. The full client test suite was not run because it contains GPU-device tests; the final parity harness was not rerun because it launches the client. The contributor has no separate safe PC available.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/800 **Author:** [@LookImEcho-Rick](https://github.com/LookImEcho-Rick) **Created:** 10/18/2026 **Status:** ✅ Merged **Merged:** 10/19/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `codex/issue-592-nether-teleport` --- ### 📝 Commits (3) - [`c1211b2`](https://github.com/horizon-rust/horizon/commit/c1211b2245e452ffd2664b87b74f2edac323cbb6) Fix execute source dimension for player teleports - [`471a8fd`](https://github.com/horizon-rust/horizon/commit/471a8fd2f992e4fcb7ef93b845d537805950b747) Merge origin/main into #800 (execute in: source dimension) - [`874d62b`](https://github.com/horizon-rust/horizon/commit/874d62b49b9aac8ead0843c2f4e063d7640acf21) Merge remote-tracking branch 'origin/main' into pr800 ### 📊 Changes **6 files changed** (+110 additions, -26 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/command_blocks.rs` (+1 -1) 📝 `crates/horizon-client/src/game/commands.rs` (+46 -3) 📝 `crates/horizon-client/src/game/commands/execute.rs` (+22 -16) 📝 `crates/horizon-client/src/game/commands/place.rs` (+2 -2) 📝 `crates/horizon-client/src/game/nether_portal.rs` (+17 -4) 📝 `tools/command_exec_corpus.py` (+22 -0) </details> ### 📄 Description ## What and why Fixes #592. `/execute in minecraft:the_nether run tp @s 0 100 0` previously moved the player within the Overworld. Carry the command source's dimension through execute modifiers and use the existing level-switch path to move the local player to the requested level, preserving command coordinates without creating a portal or playing portal effects. Keep `execute at` in the selected entity's dimension and apply vanilla source-coordinate scaling for `execute in`. Extend the command execution corpus for source dimension checks, loaded checks, round trips, relative coordinates and explicit rotation. ## Vanilla reference Inspected pinned Minecraft Java 26.3 bytecode with `tools/rea_vanilla.py`: - `ExecuteCommand.register` - `CommandSourceStack.withLevel` - `DimensionType.getTeleportationScale` - `TeleportCommand.teleportToPos` and `performTeleport` Harness: `python tools/test_command_exec_parity.py --only execute`. ## Self-check **Draft: final Horizon parity and the complete self-check still need validation on maintainer hardware.** Passed on the submitted implementation: - `cargo check --locked -p horizon-client --all-targets` - `cargo clippy --workspace --all-targets --locked -- -D warnings` - Direct rustfmt checks on all five edited Rust files - `git diff --check`, Python compilation of the corpus, and public-tree checks (including pre-push history check) - CPU-only vanilla oracle completed the expanded corpus of 74 recorded commands. This is **not** a Horizon-versus-vanilla pass. An earlier revision passed 64/64 execute commands against vanilla and the reported teleport was manually confirmed. That result predates the final context/scaling changes and does not validate this final diff. A passing `pr_ready.py` block is unavailable: - Native Windows Python: import fails because `os.uname()` is unavailable. - Cygwin Python: import succeeds, then Windows Cargo manifest paths fail conversion to Cygwin paths. - Full `cargo fmt --all -- --check`: Windows error 206; direct edited-file formatting checks pass. - Python discovery: native Windows ran 215 tests with two import errors; Cygwin ran 236 with two native Git/rustc path errors. ## Remaining validation and runtime risk Please run the final execute parity corpus and the standard self-check on suitable maintainer hardware before marking this ready. Local GPU validation has stopped after repeated full-PC lockups requiring forced reboot, reported around Alt+Tab (Windows 11, RTX 5080, NVIDIA 617.42, Vulkan). Reports include surface acquisition validation failure and an invalid section-arena buffer during `Queue::write_buffer`. The cause is unresolved. A successful short gameplay run does not establish stability. No speculative renderer changes are included. The teleport uses the existing dimension-switch path, which clears renderer sections, so independence from the renderer failure has **not** been established. Renderer investigation should remain separate unless a direct dependency is demonstrated. The full client test suite was not run because it contains GPU-device tests; the final parity harness was not rerun because it launches the client. The contributor has no separate safe PC available. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:59:20 +07:00
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#2823
No description provided.