[PR #4886] [MERGED] /test pos: the highlight packet and the client's block highlight #5918

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4886
Author: @levzzz5154
Created: 10/31/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @levzzz5154

Base: main ← Head: parity/T4-test-highlight


📝 Commits (1)

  • e3eb634 /test pos: ClientboundGameTestHighlightPosPacket and the client's block highlight

📊 Changes

5 files changed (+71 additions, -9 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+3 -0)
📝 crates/horizon-client/src/game/commands/test_locate.rs (+11 -0)
📝 crates/horizon-client/src/game/remote.rs (+5 -0)
📝 crates/horizon-client/src/game/test_instances.rs (+34 -9)
📝 crates/horizon-protocol/src/packets/play.rs (+18 -0)

📄 Description

🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally.

Part of #3520

Rows done:

  • TestCommand.showPos: sends ClientboundGameTestHighlightPosPacket(absolute, relative) to the player (new GameTestHighlightPos in horizon-protocol, id game_test_highlight_pos).
  • ClientPacketListener.handleGameTestHighlightPos / GameTestBlockHighlightRenderer: the client keeps the highlight for 10 s, draws a green (0x6000FF00) box inflated by 0.02 and the relative position x, y, z as always-on-top billboard text at +0.5, +1.2, +0.5 (same path as the test instance error markers). LevelExtractor.setLevel clears them (on login and a dimension change).

Not done: tests in a dimension other than the command's (needs per-dimension grids, a synchronous chunk load of the other level and ticking tests outside the first level; tracked in the tracker row).

Tests: game_test_highlight_pos_round_trips; fmt, clippy -D warnings on horizon-protocol and horizon-client.

🤖 Generated with Claude Code


🔄 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/4886 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `parity/T4-test-highlight` --- ### 📝 Commits (1) - [`e3eb634`](https://github.com/horizon-rust/horizon/commit/e3eb634eba03bb81ff4386f9dff423787cc12b95) /test pos: ClientboundGameTestHighlightPosPacket and the client's block highlight ### 📊 Changes **5 files changed** (+71 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+3 -0) 📝 `crates/horizon-client/src/game/commands/test_locate.rs` (+11 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+5 -0) 📝 `crates/horizon-client/src/game/test_instances.rs` (+34 -9) 📝 `crates/horizon-protocol/src/packets/play.rs` (+18 -0) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (Claude Code, Claude Sonnet 5.5), not by levzzz5154 personally. Part of #3520 Rows done: - `TestCommand.showPos`: sends `ClientboundGameTestHighlightPosPacket(absolute, relative)` to the player (new `GameTestHighlightPos` in horizon-protocol, id `game_test_highlight_pos`). - `ClientPacketListener.handleGameTestHighlightPos` / `GameTestBlockHighlightRenderer`: the client keeps the highlight for 10 s, draws a green (0x6000FF00) box inflated by 0.02 and the relative position `x, y, z` as always-on-top billboard text at +0.5, +1.2, +0.5 (same path as the test instance error markers). `LevelExtractor.setLevel` clears them (on login and a dimension change). Not done: tests in a dimension other than the command's (needs per-dimension grids, a synchronous chunk load of the other level and ticking tests outside the first level; tracked in the tracker row). Tests: `game_test_highlight_pos_round_trips`; fmt, clippy -D warnings on horizon-protocol and horizon-client. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:15:54 +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#5918
No description provided.