[PR #2666] [MERGED] Let a fishing hook catch and pull other players #4522

Closed
opened 2026-11-03 04:17:46 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2666
Author: @kacpherek
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

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


📝 Commits (4)

  • eeceb9c Let a fishing hook catch and pull other players
  • 6df1dfd Merge main into fix/fishing-hook-players
  • 708db46 Merge main into fix/fishing-hook-players
  • 5001e3f Merge main into fix/fishing-hook-players

📊 Changes

4 files changed (+109 additions, -4 deletions)

View changed files

📝 crates/horizon-client/src/game/creatures.rs (+4 -0)
📝 crates/horizon-client/src/game/fishing.rs (+99 -4)
📝 crates/horizon-client/src/game/lan.rs (+2 -0)
📝 crates/horizon-client/src/game/lan_actions.rs (+4 -0)

📄 Description

What and why

A fishing hook could only catch mobs and dropped items, so it flew straight through other players in a LAN or dedicated world.

Now a hook that touches another player (the host or a guest, not its owner, and not a spectator or a dead player) hooks them. The hook rides at 0.8 of their height while they move. Reeling in pulls the hooked player 0.1 of the way to the owner and costs 5 durability, like for any other hooked entity. The pull on the host is applied directly; for a guest it is applied on the server's copy and sent to their client at once.

The players' boxes are taken as the hooks tick (the host's own hook looks at them when it ticks, guests' hooks use the ones taken as the guests' turns start). The pulls wait until the end of the tick, because while a guest acts the host holds the other players.

Vanilla reference

  • Projectile.canHitEntity (canBeHitByProjectile) and FishingHook.onHitEntity / setHookedEntity
  • FishingHook.tick, hooked branch: setPos(hookedIn.getX(), hookedIn.getY(0.8), hookedIn.getZ())
  • FishingHook.retrieve and pullEntity

Self-check

cargo check -p horizon-client passes.


🔄 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/2666 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/fishing-hook-players` --- ### 📝 Commits (4) - [`eeceb9c`](https://github.com/horizon-rust/horizon/commit/eeceb9c2de52bee63cd84d2fdebd65df6ed27737) Let a fishing hook catch and pull other players - [`6df1dfd`](https://github.com/horizon-rust/horizon/commit/6df1dfd4daae22f689e4d9dabdf3f4c337576499) Merge main into fix/fishing-hook-players - [`708db46`](https://github.com/horizon-rust/horizon/commit/708db4627e69e8e63ebb5f7c3b7225edbf862442) Merge main into fix/fishing-hook-players - [`5001e3f`](https://github.com/horizon-rust/horizon/commit/5001e3f57d349b3de0b70973ea5d1738098a7f85) Merge main into fix/fishing-hook-players ### 📊 Changes **4 files changed** (+109 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/creatures.rs` (+4 -0) 📝 `crates/horizon-client/src/game/fishing.rs` (+99 -4) 📝 `crates/horizon-client/src/game/lan.rs` (+2 -0) 📝 `crates/horizon-client/src/game/lan_actions.rs` (+4 -0) </details> ### 📄 Description ## What and why A fishing hook could only catch mobs and dropped items, so it flew straight through other players in a LAN or dedicated world. Now a hook that touches another player (the host or a guest, not its owner, and not a spectator or a dead player) hooks them. The hook rides at 0.8 of their height while they move. Reeling in pulls the hooked player 0.1 of the way to the owner and costs 5 durability, like for any other hooked entity. The pull on the host is applied directly; for a guest it is applied on the server's copy and sent to their client at once. The players' boxes are taken as the hooks tick (the host's own hook looks at them when it ticks, guests' hooks use the ones taken as the guests' turns start). The pulls wait until the end of the tick, because while a guest acts the host holds the other players. ## Vanilla reference - `Projectile.canHitEntity` (`canBeHitByProjectile`) and `FishingHook.onHitEntity` / `setHookedEntity` - `FishingHook.tick`, hooked branch: `setPos(hookedIn.getX(), hookedIn.getY(0.8), hookedIn.getZ())` - `FishingHook.retrieve` and `pullEntity` ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:17:46 +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#4522
No description provided.