[PR #5284] [CLOSED] fix(mobs): a tadpole follows a slime ball and looks at players #6186

Closed
opened 2026-11-03 06:15:39 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5284
Author: @sirrayi
Created: 10/31/2026
Status: ❌ Closed

Base: main ← Head: fix/tadpole-brain


📝 Commits (1)

  • 6c7ce60 fix(mobs): a tadpole follows a slime ball and looks at players

📊 Changes

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

View changed files

📝 crates/horizon-client/src/mobs/aquatic.rs (+8 -2)
📝 tools/port_map/game-012.tsv (+1 -1)

📄 Description

🤖 Opened by sirrayi's AI agent (DeepSeek Harness, deepseek-v4.1-flash), not by sirrayi personally.

What and why

A tadpole only panics and swims around. TadpoleAi also tempts it with the food it eats — a slime ball, #minecraft:frog_food — and turns its head to a nearby player, which the frog's own registration already does with the same two goals. That is the Tadpole.customServerAiStep row of #3512, whose last gap this closes.

aquatic.rs::register's tadpole arm now adds Tempt on the mob's own food list and LookAtPlayer, between the panic it had and the stroll, the way frog.rs orders the same pair.

Vanilla reference

TadpoleAi (its temptation with the mob's food item, and its look at players). The tempting item comes from the mob type's food list, the same data the frog's Tempt uses, so no item id is hard-coded here.

One honest note on provenance: vanilla's brain activities carry no numeric goal priorities, and the tadpole's list has none to copy, so the two new priorities follow this repo's own ordering for the frog (Panic first, temptation after it, the idle stroll later, the looks last). That placement is the only judgement in the change.

Kind

  • parity: Horizon now does what vanilla 26.3 does

Other projects' code

none

Self-check

cargo fmt --all --check                                   clean
cargo clippy -p horizon-client --lib --tests -- -D warnings
  Finished (no warnings)
cargo test -p horizon-client --lib mobs::aquatic
  3 passed, 0 failed
python3 tools/check_public_tree.py
  Public tree check passed.

tools/pr_ready.py still cannot run here (Python 3.11+ needed, 3.9 installed); the block above is its Rust half. The harness this can reach is mob_ai.

tools/port_map/game-012.tsv: the Tadpole.customServerAiStep row loses the food-and-looks half of its gap.

🤖 Generated with DeepSeek Harness (deepseek-v4.1-flash)


🔄 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/5284 **Author:** [@sirrayi](https://github.com/sirrayi) **Created:** 10/31/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/tadpole-brain` --- ### 📝 Commits (1) - [`6c7ce60`](https://github.com/horizon-rust/horizon/commit/6c7ce602bd7bf1bbcda37e2486d786809016ac00) fix(mobs): a tadpole follows a slime ball and looks at players ### 📊 Changes **2 files changed** (+9 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/mobs/aquatic.rs` (+8 -2) 📝 `tools/port_map/game-012.tsv` (+1 -1) </details> ### 📄 Description > 🤖 Opened by sirrayi's AI agent (DeepSeek Harness, deepseek-v4.1-flash), not by sirrayi personally. ## What and why A tadpole only panics and swims around. `TadpoleAi` also tempts it with the food it eats — a slime ball, `#minecraft:frog_food` — and turns its head to a nearby player, which the frog's own registration already does with the same two goals. That is the `Tadpole.customServerAiStep` row of #3512, whose last gap this closes. `aquatic.rs::register`'s tadpole arm now adds `Tempt` on the mob's own food list and `LookAtPlayer`, between the panic it had and the stroll, the way `frog.rs` orders the same pair. ## Vanilla reference `TadpoleAi` (its temptation with the mob's food item, and its look at players). The tempting item comes from the mob type's food list, the same data the frog's `Tempt` uses, so no item id is hard-coded here. One honest note on provenance: vanilla's brain activities carry no numeric goal priorities, and the tadpole's list has none to copy, so the two new priorities follow this repo's own ordering for the frog (`Panic` first, temptation after it, the idle stroll later, the looks last). That placement is the only judgement in the change. ## Kind - [x] parity: Horizon now does what vanilla 26.3 does ## Other projects' code none ## Self-check ``` cargo fmt --all --check clean cargo clippy -p horizon-client --lib --tests -- -D warnings Finished (no warnings) cargo test -p horizon-client --lib mobs::aquatic 3 passed, 0 failed python3 tools/check_public_tree.py Public tree check passed. ``` `tools/pr_ready.py` still cannot run here (Python 3.11+ needed, 3.9 installed); the block above is its Rust half. The harness this can reach is `mob_ai`. `tools/port_map/game-012.tsv`: the `Tadpole.customServerAiStep` row loses the food-and-looks half of its gap. 🤖 Generated with [DeepSeek Harness](https://www.deepseek.com) (deepseek-v4.1-flash) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:15:39 +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#6186
No description provided.