[PR #2675] [MERGED] Give dolphins swim-with-player, jump and treasure goals and fish feeding #4530

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

📋 Pull Request Information

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

Base: main ← Head: fix/dolphin-goals


📝 Commits (3)

  • 46f674f Give dolphins swim-with-player, jump and treasure goals and fish feeding
  • 745a3ef Merge main into fix/dolphin-goals
  • 79efeab Merge main into fix/dolphin-goals

📊 Changes

7 files changed (+324 additions, -0 deletions)

View changed files

📝 crates/horizon-client/examples/probe/mob_ai_probe.rs (+1 -0)
📝 crates/horizon-client/src/game/creatures.rs (+40 -0)
📝 crates/horizon-client/src/game/lan_mobs.rs (+1 -0)
📝 crates/horizon-client/src/mobs.rs (+9 -0)
📝 crates/horizon-client/src/mobs/aquatic.rs (+3 -0)
➕ crates/horizon-client/src/mobs/dolphin.rs (+265 -0)
📝 crates/horizon-client/src/mobs/goals.rs (+5 -0)

📄 Description

What and why

Dolphins only swam, looked and bit. This gives them three of vanilla's goals and fish feeding:

  • Swim with player: a swimming player within 10 blocks gets Dolphin's Grace for 100 ticks, and the dolphin swims up to them.
  • Jump: a dolphin leaps out of clear water in the direction it faces and arcs back in.
  • Swim to treasure: feeding an adult dolphin a fish makes it find the nearest shipwreck or ocean ruin (50 sectors) and lead the way, with happy villager particles. A baby that is fed a fish grows up by a tenth instead.

The player's swimming state is now part of what mobs see of a player, so this works for the window and for LAN guests.

Not done here: playing with and fetching items, and following a boat. Mobs cannot see item entities or a player's vehicle yet, so they need their own change.

Vanilla reference

DolphinSwimWithPlayerGoal, DolphinJumpGoal, DolphinSwimToTreasureGoal, Dolphin.mobInteract, Dolphin.registerGoals and the dolphin_located structure tag.

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/2675 **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/dolphin-goals` --- ### 📝 Commits (3) - [`46f674f`](https://github.com/horizon-rust/horizon/commit/46f674f842a53d6c211d9189c79a8bd29ec97013) Give dolphins swim-with-player, jump and treasure goals and fish feeding - [`745a3ef`](https://github.com/horizon-rust/horizon/commit/745a3ef110051a7ed7735a40b775470df326adcb) Merge main into fix/dolphin-goals - [`79efeab`](https://github.com/horizon-rust/horizon/commit/79efeab0cea16e3008601a2771b463a6707f95f3) Merge main into fix/dolphin-goals ### 📊 Changes **7 files changed** (+324 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/examples/probe/mob_ai_probe.rs` (+1 -0) 📝 `crates/horizon-client/src/game/creatures.rs` (+40 -0) 📝 `crates/horizon-client/src/game/lan_mobs.rs` (+1 -0) 📝 `crates/horizon-client/src/mobs.rs` (+9 -0) 📝 `crates/horizon-client/src/mobs/aquatic.rs` (+3 -0) ➕ `crates/horizon-client/src/mobs/dolphin.rs` (+265 -0) 📝 `crates/horizon-client/src/mobs/goals.rs` (+5 -0) </details> ### 📄 Description ## What and why Dolphins only swam, looked and bit. This gives them three of vanilla's goals and fish feeding: - Swim with player: a swimming player within 10 blocks gets Dolphin's Grace for 100 ticks, and the dolphin swims up to them. - Jump: a dolphin leaps out of clear water in the direction it faces and arcs back in. - Swim to treasure: feeding an adult dolphin a fish makes it find the nearest shipwreck or ocean ruin (50 sectors) and lead the way, with happy villager particles. A baby that is fed a fish grows up by a tenth instead. The player's swimming state is now part of what mobs see of a player, so this works for the window and for LAN guests. Not done here: playing with and fetching items, and following a boat. Mobs cannot see item entities or a player's vehicle yet, so they need their own change. ## Vanilla reference `DolphinSwimWithPlayerGoal`, `DolphinJumpGoal`, `DolphinSwimToTreasureGoal`, `Dolphin.mobInteract`, `Dolphin.registerGoals` and the `dolphin_located` structure tag. ## 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:51 +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#4530
No description provided.