[PR #3643] [MERGED] minecart: right-clicking a tnt minecart uses the held item, so a crossbow shoots at it #5115

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

📋 Pull Request Information

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

Base: main ← Head: crossbow-near-tnt-minecart


📝 Commits (1)

  • ce2b510 minecart: right-clicking a tnt minecart uses the held item, so a crossbow shoots at it

📊 Changes

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

View changed files

📝 crates/horizon-client/src/game/minecarts.rs (+27 -0)
📝 crates/horizon-client/src/game/remote.rs (+18 -3)

📄 Description

What and why

Right-clicking a TNT minecart up close with a crossbow did nothing: the server client ended every click on a minecart at the interaction. Carts whose interaction passes now leave each hand's turn to its item, so the crossbow shoots: a TNT minecart, a command block minecart for a player who is not a game master, and a rideable minecart when sneaking or occupied. Fixes #3588.

Vanilla reference

MinecartTNT has no interact of its own, so Entity.interact passes and Minecraft.startUseItem goes on to useItem. Minecart.interact passes when sneaking or ridden, and MinecartCommandBlock.interact without canUseGameMasterBlocks.

Self-check

pr_ready (tools/pr_ready.py --quick on PC-Lost, against origin/main at 64990cd32, 2 min 48 s)

Check Result
Scope ✅ 2 files, +45 −3
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ❌ 408 run, FAILED (failures=1, skipped=12) (1 min 10 s)
rustfmt ✅ (10 s)
clippy ✅ (24 s)
tests: horizon-client ✅ 798 passed (44 s)
doc tests ✅ 0 passed (16 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

The one failure under Python tests is test_port_publish.PublishTests.test_body_has_names_and_signatures_only, a ~/ against ~\ path check that fails on Windows on main too. Parity is left to CI.


🔄 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/3643 **Author:** [@iLostName](https://github.com/iLostName) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `crossbow-near-tnt-minecart` --- ### 📝 Commits (1) - [`ce2b510`](https://github.com/horizon-rust/horizon/commit/ce2b51090f6d240a0dba05b7d7668b1642278108) minecart: right-clicking a tnt minecart uses the held item, so a crossbow shoots at it ### 📊 Changes **2 files changed** (+45 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/minecarts.rs` (+27 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+18 -3) </details> ### 📄 Description ## What and why Right-clicking a TNT minecart up close with a crossbow did nothing: the server client ended every click on a minecart at the interaction. Carts whose interaction passes now leave each hand's turn to its item, so the crossbow shoots: a TNT minecart, a command block minecart for a player who is not a game master, and a rideable minecart when sneaking or occupied. Fixes #3588. ## Vanilla reference `MinecartTNT` has no `interact` of its own, so `Entity.interact` passes and `Minecraft.startUseItem` goes on to `useItem`. `Minecart.interact` passes when sneaking or ridden, and `MinecartCommandBlock.interact` without `canUseGameMasterBlocks`. ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on PC-Lost, against origin/main at 64990cd32, 2 min 48 s) | Check | Result | | --- | --- | | Scope | ✅ 2 files, +45 −3 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ❌ 408 run, FAILED (failures=1, skipped=12) (1 min 10 s) | | rustfmt | ✅ (10 s) | | clippy | ✅ (24 s) | | tests: horizon-client | ✅ 798 passed (44 s) | | doc tests | ✅ 0 passed (16 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | The one failure under Python tests is `test_port_publish.PublishTests.test_body_has_names_and_signatures_only`, a `~/` against `~\` path check that fails on Windows on main too. Parity is left to CI. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:10:21 +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#5115
No description provided.