[PR #4467] [MERGED] Client: draw click boxes and hit-test server interaction entities #5640

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4467
Author: @Bloodulon
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @rdbtCVS

Base: main ← Head: pr/interaction-entities


📝 Commits (3)

  • 558a9a1 Draw the click boxes of server interaction entities
  • 1167274 Merge remote-tracking branch 'origin/main' into pr/interaction-entities
  • 8aff059 rustfmt fix in remote.rs

📊 Changes

9 files changed (+173 additions, -12 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+3 -0)
📝 crates/horizon-client/src/game/hand.rs (+1 -0)
➕ crates/horizon-client/src/game/interactions.rs (+111 -0)
📝 crates/horizon-client/src/game/lan_vehicles.rs (+5 -1)
📝 crates/horizon-client/src/game/pick_entity.rs (+3 -1)
📝 crates/horizon-client/src/game/remote.rs (+17 -2)
📝 crates/horizon-client/src/game/remote_objects.rs (+16 -0)
📝 crates/horizon-client/src/game/remote_vehicles.rs (+9 -0)
📝 tools/port_map/game-006.tsv (+8 -8)

📄 Description

🤖 Opened by Bloodulon's AI agent (Qoder), not by Bloodulon personally.

Summary

Servers (Denizen, Nexo, ModelEngine) spawn minecraft:interaction entities: invisible boxes with a width, height and response flag that a script answers. The client previously knew nothing of them, so clicks aimed at the box hit the block behind or nothing, and the map's NPC models could not be clicked.

  • Decodes minecraft:interaction in spawn_remote_object and remote_interaction_data (DATA_WIDTH, DATA_HEIGHT, DATA_RESPONSE).
  • Adds RemoteInteraction click boxes to pick_entity and the interact / attack packet paths.
  • Responds to interaction clicks with SUCCESS or CONSUME, sending ServerboundInteractPacket.
  • Teleports update the interaction position immediately (Entity's NO_OP interpolation handler).

Part of splitting #3795 as requested in review by maintainer @levzzz5154.

🤖 Generated with Qoder


🔄 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/4467 **Author:** [@Bloodulon](https://github.com/Bloodulon) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `pr/interaction-entities` --- ### 📝 Commits (3) - [`558a9a1`](https://github.com/horizon-rust/horizon/commit/558a9a13e95f895934aa031c2efe7e297a2927fc) Draw the click boxes of server interaction entities - [`1167274`](https://github.com/horizon-rust/horizon/commit/1167274823c0e9a6ed61c1e8de4fda94aca178b1) Merge remote-tracking branch 'origin/main' into pr/interaction-entities - [`8aff059`](https://github.com/horizon-rust/horizon/commit/8aff0594b5cac8de9cb7e6ed4b4bb3aa9b5f1ec6) rustfmt fix in remote.rs ### 📊 Changes **9 files changed** (+173 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+3 -0) 📝 `crates/horizon-client/src/game/hand.rs` (+1 -0) ➕ `crates/horizon-client/src/game/interactions.rs` (+111 -0) 📝 `crates/horizon-client/src/game/lan_vehicles.rs` (+5 -1) 📝 `crates/horizon-client/src/game/pick_entity.rs` (+3 -1) 📝 `crates/horizon-client/src/game/remote.rs` (+17 -2) 📝 `crates/horizon-client/src/game/remote_objects.rs` (+16 -0) 📝 `crates/horizon-client/src/game/remote_vehicles.rs` (+9 -0) 📝 `tools/port_map/game-006.tsv` (+8 -8) </details> ### 📄 Description > 🤖 Opened by Bloodulon's AI agent (Qoder), not by Bloodulon personally. ## Summary Servers (Denizen, Nexo, ModelEngine) spawn `minecraft:interaction` entities: invisible boxes with a width, height and response flag that a script answers. The client previously knew nothing of them, so clicks aimed at the box hit the block behind or nothing, and the map's NPC models could not be clicked. - Decodes `minecraft:interaction` in `spawn_remote_object` and `remote_interaction_data` (`DATA_WIDTH`, `DATA_HEIGHT`, `DATA_RESPONSE`). - Adds `RemoteInteraction` click boxes to `pick_entity` and the interact / attack packet paths. - Responds to interaction clicks with `SUCCESS` or `CONSUME`, sending `ServerboundInteractPacket`. - Teleports update the interaction position immediately (Entity's NO_OP interpolation handler). Part of splitting #3795 as requested in review by maintainer @levzzz5154. 🤖 Generated with [Qoder](https://qoder.com) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:14:00 +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#5640
No description provided.