[PR #2229] [MERGED] Fire the fishing_rod_hooked advancement trigger on reel in #4120

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

📋 Pull Request Information

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

Base: main ← Head: fix/fishing-rod-hooked-trigger


📝 Commits (5)

  • 183382c Fire the fishing_rod_hooked trigger when a hook is reeled in
  • af6faa8 Report the hook's open-water flag to the fishing_rod_hooked trigger
  • 15be176 Merge main into fix/fishing-rod-hooked-trigger
  • 95000c9 Merge origin/main into fix/fishing-rod-hooked-trigger
  • 0239df6 Merge origin/main into fix/fishing-rod-hooked-trigger

📊 Changes

2 files changed (+52 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game/advancements.rs (+29 -0)
📝 crates/horizon-client/src/game/fishing.rs (+23 -2)

📄 Description

What and why

Reeling in a fishing rod never fired the minecraft:fishing_rod_hooked trigger, so "Fishy Business" (husbandry/fishy_business) could not be earned by catching a cod, salmon, pufferfish or tropical fish.

The trigger now fires when the hook is retrieved: with the caught items when a fish was biting, and with the hooked mob (no items) when the hook was in one. It runs on the same path as a guest's rod, which has its own hook and advancements.

Hooked dropped items are not handled here because the hook cannot hook items yet.

Vanilla reference

  • FishingHook.retrieve: CriteriaTriggers.FISHING_ROD_HOOKED.trigger(owner, rod, this, items), both for a hooked entity (empty items) and for a catch.
  • FishingRodHookedTrigger.trigger / TriggerInstance.matches: rod, entity (the hooked entity, or the hook) and item (any caught item) conditions.

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/2229 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/fishing-rod-hooked-trigger` --- ### 📝 Commits (5) - [`183382c`](https://github.com/horizon-rust/horizon/commit/183382cd2beead9560f0d6303106b9886dd3307c) Fire the fishing_rod_hooked trigger when a hook is reeled in - [`af6faa8`](https://github.com/horizon-rust/horizon/commit/af6faa88e51f6d7632191124b6e49f5a9ceaff8f) Report the hook's open-water flag to the fishing_rod_hooked trigger - [`15be176`](https://github.com/horizon-rust/horizon/commit/15be1763803fdd9f2adb257f012cf0c6543692b2) Merge main into fix/fishing-rod-hooked-trigger - [`95000c9`](https://github.com/horizon-rust/horizon/commit/95000c906a8449d56a0ae2873d3f0e09a321aa39) Merge origin/main into fix/fishing-rod-hooked-trigger - [`0239df6`](https://github.com/horizon-rust/horizon/commit/0239df6f9d38806fa2889d0ac1278fb14ae05bf5) Merge origin/main into fix/fishing-rod-hooked-trigger ### 📊 Changes **2 files changed** (+52 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/advancements.rs` (+29 -0) 📝 `crates/horizon-client/src/game/fishing.rs` (+23 -2) </details> ### 📄 Description ## What and why Reeling in a fishing rod never fired the `minecraft:fishing_rod_hooked` trigger, so "Fishy Business" (`husbandry/fishy_business`) could not be earned by catching a cod, salmon, pufferfish or tropical fish. The trigger now fires when the hook is retrieved: with the caught items when a fish was biting, and with the hooked mob (no items) when the hook was in one. It runs on the same path as a guest's rod, which has its own hook and advancements. Hooked dropped items are not handled here because the hook cannot hook items yet. ## Vanilla reference - `FishingHook.retrieve`: `CriteriaTriggers.FISHING_ROD_HOOKED.trigger(owner, rod, this, items)`, both for a hooked entity (empty items) and for a catch. - `FishingRodHookedTrigger.trigger` / `TriggerInstance.matches`: `rod`, `entity` (the hooked entity, or the hook) and `item` (any caught item) conditions. ## 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:14:50 +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#4120
No description provided.