[PR #3550] [MERGED] Fix teleport commands without an explicit target #5042

Closed
opened 2026-11-03 05:09:49 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3550
Author: @v3nn7
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: v3nn7


📝 Commits (4)

  • c4f7b4f Fix teleport commands without explicit targets
  • bf5b9b0 Merge remote-tracking branch 'hr/main' into fix/pr-3550
  • 2e2c110 Replace the both-players console teleport step with single-target steps
  • 1ab895e Merge remote-tracking branch 'hr/main' into fix/pr-3550

📊 Changes

3 files changed (+22 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game/commands.rs (+4 -1)
📝 tools/command_exec_corpus.py (+4 -0)
📝 tools/test_server_dimension_players_parity.py (+14 -1)

📄 Description

🤖 Opened by v3nn7's AI agent (Codex), not by v3nn7.

What and why

Teleport commands without an explicit target now use the command source entity. This lets execute as teleport the selected entity and returns an error when the console has no entity instead of using a nonexistent player.

Extend the command execution corpus for an armor stand and the dedicated-server dimension parity scenario for console commands, including teleporting to a player and moving multiple players.

Vanilla reference

TeleportCommand (implicit target is CommandSourceStack.getEntityOrException, an error for the console). The affected harnesses include command execution and server_dimension_players.

Self-check

  • git diff --check and Python syntax compilation passed.
  • cargo check -p horizon-client --bin horizon-client passed.
  • Vanilla differential harnesses could not run: the prepared Minecraft 26.3 artifacts are absent. The required tools/pr_ready.py self-check has not yet been run. This PR is a draft pending verification.

🤖 Generated with Codex


🔄 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/3550 **Author:** [@v3nn7](https://github.com/v3nn7) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `v3nn7` --- ### 📝 Commits (4) - [`c4f7b4f`](https://github.com/horizon-rust/horizon/commit/c4f7b4f964e04bf525e2b4543394f870bd5dafa1) Fix teleport commands without explicit targets - [`bf5b9b0`](https://github.com/horizon-rust/horizon/commit/bf5b9b089e550af48f2e4db0212dda6d296e4392) Merge remote-tracking branch 'hr/main' into fix/pr-3550 - [`2e2c110`](https://github.com/horizon-rust/horizon/commit/2e2c11005ae236d6a0cbb00295f4fef25eb223bb) Replace the both-players console teleport step with single-target steps - [`1ab895e`](https://github.com/horizon-rust/horizon/commit/1ab895ea01a6893b13adb1ad2c38a4d36399a0b2) Merge remote-tracking branch 'hr/main' into fix/pr-3550 ### 📊 Changes **3 files changed** (+22 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/commands.rs` (+4 -1) 📝 `tools/command_exec_corpus.py` (+4 -0) 📝 `tools/test_server_dimension_players_parity.py` (+14 -1) </details> ### 📄 Description > 🤖 Opened by v3nn7's AI agent (Codex), not by v3nn7. ## What and why Teleport commands without an explicit target now use the command source entity. This lets `execute as` teleport the selected entity and returns an error when the console has no entity instead of using a nonexistent player. Extend the command execution corpus for an armor stand and the dedicated-server dimension parity scenario for console commands, including teleporting to a player and moving multiple players. ## Vanilla reference `TeleportCommand` (implicit target is `CommandSourceStack.getEntityOrException`, an error for the console). The affected harnesses include command execution and `server_dimension_players`. ## Self-check - `git diff --check` and Python syntax compilation passed. - `cargo check -p horizon-client --bin horizon-client` passed. - Vanilla differential harnesses could not run: the prepared Minecraft 26.3 artifacts are absent. The required `tools/pr_ready.py` self-check has not yet been run. This PR is a draft pending verification. 🤖 Generated with [Codex](https://openai.com/codex/) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:09:49 +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#5042
No description provided.