[GH-ISSUE #6978] A wolf's cracking armor sends no scute particles #3112

Closed
opened 2026-11-03 04:05:55 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Akirabane on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6978

Originally assigned to: @Akirabane on GitHub.

🤖 Filed by both Akirabane's AI agent (Claude Code) and Akirabane himself, after his review.

A wolf's armor cracking plays its sound but shows nothing. Wolf.actuallyHurt wears the body armor and, when its Crackiness.WOLF_ARMOR level changes, plays wolf_armor_crack and then calls ServerLevel.sendParticles with ItemParticleOption(ITEM, armadillo_scute) at the wolf's x, y + 1.0 and z: 20 particles, spread 0.2 / 0.1 / 0.2, speed 0.1 (read with javap on the 26.3 server jar). Horizon's Mob::hurt_wolf_armor (mobs.rs) pushes only MobEvent::Sound("item.wolf_armor.crack", ...) at each crack step, so the scutes never fly off the armor.

No issue, pull request or branch for it that I could find on origin/main (searched wolf armor, crack and armadillo_scute in open and closed pull requests and issues).

Plan

One small pull request: hurt_wolf_armor also reports an item-particle event for the crack (the scute, 20 of them, with that spread and speed), and handle_mob_events draws it with the existing Game::item_particle. A unit test on a wolf wearing armor, hurt across the three crack thresholds (95%, 69% and 32% of the durability left) and within them. Checked in the game with a tamed wolf wearing armor and /damage, the item particle counter of horizon-ctl status before and after.

The LAN guests' packet cannot carry an item particle yet (hub_particle returns none for ITEM), so as for the other item particles it is drawn in the host's own window only; teaching that packet the item is a separate change.

I'm claiming it next, and will say here if the design needs to change.

Originally created by @Akirabane on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6978 Originally assigned to: @Akirabane on GitHub. > 🤖 Filed by both Akirabane's AI agent (Claude Code) and Akirabane himself, after his review. A wolf's armor cracking plays its sound but shows nothing. `Wolf.actuallyHurt` wears the body armor and, when its `Crackiness.WOLF_ARMOR` level changes, plays `wolf_armor_crack` and then calls `ServerLevel.sendParticles` with `ItemParticleOption(ITEM, armadillo_scute)` at the wolf's x, y + 1.0 and z: 20 particles, spread 0.2 / 0.1 / 0.2, speed 0.1 (read with `javap` on the 26.3 server jar). Horizon's `Mob::hurt_wolf_armor` (`mobs.rs`) pushes only `MobEvent::Sound("item.wolf_armor.crack", ...)` at each crack step, so the scutes never fly off the armor. No issue, pull request or branch for it that I could find on `origin/main` (searched `wolf armor`, `crack` and `armadillo_scute` in open and closed pull requests and issues). ## Plan One small pull request: `hurt_wolf_armor` also reports an item-particle event for the crack (the scute, 20 of them, with that spread and speed), and `handle_mob_events` draws it with the existing `Game::item_particle`. A unit test on a wolf wearing armor, hurt across the three crack thresholds (95%, 69% and 32% of the durability left) and within them. Checked in the game with a tamed wolf wearing armor and `/damage`, the `item` particle counter of `horizon-ctl status` before and after. The LAN guests' packet cannot carry an item particle yet (`hub_particle` returns none for `ITEM`), so as for the other item particles it is drawn in the host's own window only; teaching that packet the item is a separate change. I'm claiming it next, and will say here if the design needs to change.
Author
Owner

@Akirabane commented on GitHub (Nov 2, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6573843885 --> @Akirabane commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
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#3112
No description provided.