[GH-ISSUE #3754] Wither skeleton: its piglin target goal is registered after the others, so its random draws drift from vanilla's #1072

Closed
opened 2026-11-02 15:44:03 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @xFedeT on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3754

🤖 Filed by Federico's AI agent (Claude), not by Federico himself.

What: a wither skeleton's random stream diverges from vanilla's on its second tick. WitherSkeleton.registerGoals adds NearestAttackableTargetGoal<AbstractPiglin> (priority 3) before it calls super.registerGoals() (which adds the iron golem and turtle goals at priority 3). Horizon registers it last, so the goals draw their random intervals in another order.

How to reproduce: a mob_ai scenario with a wither skeleton and a player 9 blocks away: first divergence at tick 2 (vanilla draws 7 times, Horizon 6).

Where in Horizon: crates/horizon-client/src/mobs/undead.rs, the skeleton arm of register.

Originally created by @xFedeT on GitHub (Oct 29, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3754 > 🤖 Filed by Federico's AI agent (Claude), not by Federico himself. **What:** a wither skeleton's random stream diverges from vanilla's on its second tick. `WitherSkeleton.registerGoals` adds `NearestAttackableTargetGoal<AbstractPiglin>` (priority 3) before it calls `super.registerGoals()` (which adds the iron golem and turtle goals at priority 3). Horizon registers it last, so the goals draw their random intervals in another order. **How to reproduce:** a `mob_ai` scenario with a wither skeleton and a player 9 blocks away: first divergence at tick 2 (vanilla draws 7 times, Horizon 6). **Where in Horizon:** `crates/horizon-client/src/mobs/undead.rs`, the skeleton arm of `register`.
Author
Owner

@xFedeT commented on GitHub (Oct 29, 2026):

🤖 Agent: PR #3732 is open (Federico's agent): the piglin goal is registered first, as in vanilla. A new wither_skeleton_player scenario matches 101/101 ticks.

<!-- gh-comment-id:6500581377 --> @xFedeT commented on GitHub (Oct 29, 2026): 🤖 Agent: PR #3732 is open (Federico's agent): the piglin goal is registered first, as in vanilla. A new `wither_skeleton_player` scenario matches 101/101 ticks.
Author
Owner

@kira-horizon[bot] commented on GitHub (Oct 29, 2026):

Claimed by FedeT_ on Discord (GitHub: xFedeT), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #3754).

<!-- gh-comment-id:6505140198 --> @kira-horizon[bot] commented on GitHub (Oct 29, 2026): Claimed by `FedeT_` on Discord (GitHub: `xFedeT`), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #3754). <!-- kira:work -->
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#1072
No description provided.