[GH-ISSUE #5834] Chests in boats cannot be opened while sneaking or riding the boat #1837

Closed
opened 2026-11-02 15:50:02 +07:00 by bsakaguchi · 4 comments
Owner

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

Chests placed inside boats cannot be opened correctly in Horizon.

There are two situations where this happens:

1. While sneaking

When standing next to a boat with a chest and sneaking, right-clicking the chest does nothing. In vanilla Minecraft, the chest should open normally.

2. While riding the boat

When sitting inside a chest boat, opening the inventory does not work correctly. In vanilla Minecraft, the chest inventory can be opened while riding the boat, including in Creative mode.

This should behave the same way as in vanilla Minecraft, in both Survival and Creative mode.

Originally created by @byMehd on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5834 Chests placed inside boats cannot be opened correctly in Horizon. There are two situations where this happens: **1. While sneaking** When standing next to a boat with a chest and sneaking, right-clicking the chest does nothing. In vanilla Minecraft, the chest should open normally. **2. While riding the boat** When sitting inside a chest boat, opening the inventory does not work correctly. In vanilla Minecraft, the chest inventory can be opened while riding the boat, including in Creative mode. This should behave the same way as in vanilla Minecraft, in both Survival and Creative mode.
Author
Owner

@oskal675-design commented on GitHub (Nov 1, 2026):

🤖 Agent: /claim

I will compare sneaking interaction and the mounted inventory key in survival and creative with vanilla 26.3, reproduce on the default integrated server, and verify a focused fix before opening a PR.

<!-- gh-comment-id:6558824025 --> @oskal675-design commented on GitHub (Nov 1, 2026): 🤖 Agent: /claim I will compare sneaking interaction and the mounted inventory key in survival and creative with vanilla 26.3, reproduce on the default integrated server, and verify a focused fix before opening a PR.
Author
Owner

@oskal675-design commented on GitHub (Nov 1, 2026):

🤖 Agent: /unclaim

Verified both reported interaction paths on current source main (d6e5c5a97), using the default integrated server and a fresh isolated world. All eight cases pass: oak chest boat and bamboo chest raft, sneaking right-click and the inventory key while mounted, in both Survival and Creative. Each opens the 27-slot container; opening it while mounted preserves the ride. The existing vehicle-container differential also passes all 13 cases against actual vanilla 26.3.

These paths were already fixed by #4667 (56c8af8bd, present in the tested revision). No duplicate fix PR is needed. This verifies a source build; it does not establish which published Nightly contains the fix.

<!-- gh-comment-id:6558880820 --> @oskal675-design commented on GitHub (Nov 1, 2026): 🤖 Agent: /unclaim Verified both reported interaction paths on current source `main` (`d6e5c5a97`), using the default integrated server and a fresh isolated world. All eight cases pass: oak chest boat and bamboo chest raft, sneaking right-click and the inventory key while mounted, in both Survival and Creative. Each opens the 27-slot container; opening it while mounted preserves the ride. The existing vehicle-container differential also passes all 13 cases against actual vanilla 26.3. These paths were already fixed by #4667 (`56c8af8bd`, present in the tested revision). No duplicate fix PR is needed. This verifies a source build; it does not establish which published Nightly contains the fix.
Author
Owner

@oskal675-design commented on GitHub (Nov 1, 2026):

🤖 Agent:

/unclaim

<!-- gh-comment-id:6558904420 --> @oskal675-design commented on GitHub (Nov 1, 2026): 🤖 Agent: /unclaim
Author
Owner

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

🤖 Agent: comment by iLostName's AI agent (Claude Code), not by iLostName personally.

Both cases look fixed on main by #4667 ("Fix opening container vehicles", fixes #4370), which also added tools/test_vehicle_container_parity.py:

  • sneak + right-click: the client sends Interact with secondary, and the server's interact_boat (game/boats.rs) opens the chest when sneaking, already riding or the seat is full, as AbstractChestBoat.interact does.
  • E while riding: remote_key catches it when riding a chest boat and sends PlayerCommand OPEN_INVENTORY; the server answers with open_ridden_chest_boat, as ServerGamePacketListenerImpl.handlePlayerCommand does.

If it still happens on a current Nightly, please add its version.

<!-- gh-comment-id:6572830233 --> @iLostName commented on GitHub (Nov 2, 2026): 🤖 Agent: comment by iLostName's AI agent (Claude Code), not by iLostName personally. Both cases look fixed on main by #4667 ("Fix opening container vehicles", fixes #4370), which also added `tools/test_vehicle_container_parity.py`: - sneak + right-click: the client sends Interact with `secondary`, and the server's `interact_boat` (`game/boats.rs`) opens the chest when sneaking, already riding or the seat is full, as `AbstractChestBoat.interact` does. - E while riding: `remote_key` catches it when riding a chest boat and sends PlayerCommand OPEN_INVENTORY; the server answers with `open_ridden_chest_boat`, as `ServerGamePacketListenerImpl.handlePlayerCommand` does. If it still happens on a current Nightly, please add its version.
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#1837
No description provided.