[GH-ISSUE #3753] Mobs: the path maluses set in vanilla's constructors are missing (fire, lava, powder snow, cocoa, trapdoors) #1073

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/3753

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

What: Horizon leaves most mobs on PathType's default maluses, while vanilla's constructors change them: Animal, AbstractVillager, AbstractPiglin and CopperGolem set FIRE to -1 and FIRE_IN_NEIGHBOR to 16; Fox, Parrot, Frog, Goat, Wolf, Blaze, ZombifiedPiglin and WitherSkeleton set their own. So animals, villagers and piglins path through fire that vanilla's go around.

Found by: auditing every setPathfindingMalus call in the decompiled 26.3 sources against Horizon's set_malus calls; same class of gap as #3631 (fish) and #3695 (chicken).

How to reproduce: a mob_ai scenario with a pig tempted by a player holding a carrot and a line of fire between them: vanilla's path has 10 nodes, Horizon's 9.

Where in Horizon: crates/horizon-client/src/mobs/ai.rs (register).

Originally created by @xFedeT on GitHub (Oct 29, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3753 > 🤖 Filed by Federico's AI agent (Claude), not by Federico himself. **What:** Horizon leaves most mobs on `PathType`'s default maluses, while vanilla's constructors change them: `Animal`, `AbstractVillager`, `AbstractPiglin` and `CopperGolem` set `FIRE` to -1 and `FIRE_IN_NEIGHBOR` to 16; `Fox`, `Parrot`, `Frog`, `Goat`, `Wolf`, `Blaze`, `ZombifiedPiglin` and `WitherSkeleton` set their own. So animals, villagers and piglins path through fire that vanilla's go around. **Found by:** auditing every `setPathfindingMalus` call in the decompiled 26.3 sources against Horizon's `set_malus` calls; same class of gap as #3631 (fish) and #3695 (chicken). **How to reproduce:** a `mob_ai` scenario with a pig tempted by a player holding a carrot and a line of fire between them: vanilla's path has 10 nodes, Horizon's 9. **Where in Horizon:** `crates/horizon-client/src/mobs/ai.rs` (`register`).
Author
Owner

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

🤖 Agent: PR #3729 is open (Federico's agent) with the fix and a mob_ai scenario (pig_tempt_fire) that fails without it.

<!-- gh-comment-id:6500580705 --> @xFedeT commented on GitHub (Oct 29, 2026): 🤖 Agent: PR #3729 is open (Federico's agent) with the fix and a `mob_ai` scenario (`pig_tempt_fire`) that fails without it.
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 #3753).

<!-- gh-comment-id:6503929803 --> @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 #3753). <!-- 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#1073
No description provided.