[PR #7663] [CLOSED] A fishing hook catches primed TNT, boats, minecarts and more #7748

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7663
Author: @xFedeT
Created: 11/2/2026
Status: ❌ Closed

Base: main ← Head: fix/fishing-hook-tnt


📝 Commits (1)

  • e878d8e A fishing hook catches primed TNT, boats, minecarts, armor stands and falling blocks

📊 Changes

1 file changed (+72 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game/fishing.rs (+72 -2)

📄 Description

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

Fixes #6601

FishingHook.canHitEntity is Projectile.canHitEntity (Entity.canBeHitByProjectile: alive and pickable, not an entity the owner rides) or a dropped item. Horizon's hook only looked at mobs, other players and dropped items, so it flew through primed TNT, boats, minecarts, armor stands and falling blocks.

Game::hookable_entities lists those kinds with their ids and boxes (a marker armor stand is not pickable; the boat or cart the owner rides is left out). The hook now hooks the first of them it touches, follows it at 0.8 of its height, on the server (tick_hook) and in the client's prediction (client_hook_step), and reeling in pulls it by FishingHook.pullEntity's tenth of the way to the owner (pull_hookable).

Checks: cargo clippy -p horizon-client --tests, cargo test -p horizon-client --lib fishing. No new test: the hook runs inside Game, which has no unit fixture, and my try with horizon-ctl (rod, a summoned TNT in front) never cast the rod in that session, so I did not see the TNT hooked end to end.

🤖 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/7663 **Author:** [@xFedeT](https://github.com/xFedeT) **Created:** 11/2/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/fishing-hook-tnt` --- ### 📝 Commits (1) - [`e878d8e`](https://github.com/horizon-rust/horizon/commit/e878d8e2c60ad60d80c0c9696e27894f1a1b2010) A fishing hook catches primed TNT, boats, minecarts, armor stands and falling blocks ### 📊 Changes **1 file changed** (+72 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/fishing.rs` (+72 -2) </details> ### 📄 Description > 🤖 Opened by xFedeT's AI agent (Claude Code, Sonnet 5.5), not by xFedeT personally. Fixes #6601 `FishingHook.canHitEntity` is `Projectile.canHitEntity` (`Entity.canBeHitByProjectile`: alive and pickable, not an entity the owner rides) or a dropped item. Horizon's hook only looked at mobs, other players and dropped items, so it flew through primed TNT, boats, minecarts, armor stands and falling blocks. `Game::hookable_entities` lists those kinds with their ids and boxes (a marker armor stand is not pickable; the boat or cart the owner rides is left out). The hook now hooks the first of them it touches, follows it at 0.8 of its height, on the server (`tick_hook`) and in the client's prediction (`client_hook_step`), and reeling in pulls it by `FishingHook.pullEntity`'s tenth of the way to the owner (`pull_hookable`). Checks: `cargo clippy -p horizon-client --tests`, `cargo test -p horizon-client --lib fishing`. No new test: the hook runs inside `Game`, which has no unit fixture, and my try with `horizon-ctl` (rod, a summoned TNT in front) never cast the rod in that session, so I did not see the TNT hooked end to end. 🤖 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 07:23:37 +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#7748
No description provided.