[GH-ISSUE #6950] Mobs that land from a fall throw up no block dust #3105

Closed
opened 2026-11-03 04:05:53 +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/6950

Originally assigned to: @Akirabane on GitHub.

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

A mob that lands from a fall throws up no dust. LivingEntity.checkFallDamage is not only the player's: on the server, when the entity lands with a fall distance, it takes power = max(floor(fallDistance + 1.0E-6 - safeFallDistance), 0) and, if power > 0 and the block it lands on is not air, sends ServerLevel.sendParticles of that block's BLOCK particles: (int)(min(0.2F + power / 15, 2.5) * 150) of them, zero spread, speed 0.15, at the entity's position (moved toward the landing block when it is over another column; read with javap on the 26.3 server jar). Horizon does it for the player (#2435, living_landing::check_living_fall_damage), but a mob's check_fall_damage in mobs/living.rs goes straight to fall_on_block and never sends them, so a cow dropped from height lands without the crumbs.

No issue, pull request or branch for it that I could find on origin/main (searched checkFallDamage, landing, fall particles, dust in open and closed pull requests and issues; #2435 is the player's, #6057 is the landing rules of blocks).

Plan

One small pull request: Mob::check_fall_damage computes the same power and position as check_living_fall_damage and reports a MobEvent::LandingDust, which handle_mob_events draws and sends to the LAN guests through the existing Game::landing_dust. A unit test on the count (a fall of 7 over a safe distance of 3 gives power 4, min(0.2 + 4/15, 2.5) * 150 = 70 particles; a fall within the safe distance, none). Checked in the game with a cow dropped on stone, the block particle counter of horizon-ctl status before and after.

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/6950 Originally assigned to: @Akirabane on GitHub. > 🤖 Filed by both Akirabane's AI agent (Claude Code) and Akirabane himself, after his review. A mob that lands from a fall throws up no dust. `LivingEntity.checkFallDamage` is not only the player's: on the server, when the entity lands with a fall distance, it takes `power = max(floor(fallDistance + 1.0E-6 - safeFallDistance), 0)` and, if `power > 0` and the block it lands on is not air, sends `ServerLevel.sendParticles` of that block's `BLOCK` particles: `(int)(min(0.2F + power / 15, 2.5) * 150)` of them, zero spread, speed `0.15`, at the entity's position (moved toward the landing block when it is over another column; read with `javap` on the 26.3 server jar). Horizon does it for the player (#2435, `living_landing::check_living_fall_damage`), but a mob's `check_fall_damage` in `mobs/living.rs` goes straight to `fall_on_block` and never sends them, so a cow dropped from height lands without the crumbs. No issue, pull request or branch for it that I could find on `origin/main` (searched `checkFallDamage`, `landing`, `fall particles`, `dust` in open and closed pull requests and issues; #2435 is the player's, #6057 is the landing rules of blocks). ## Plan One small pull request: `Mob::check_fall_damage` computes the same power and position as `check_living_fall_damage` and reports a `MobEvent::LandingDust`, which `handle_mob_events` draws and sends to the LAN guests through the existing `Game::landing_dust`. A unit test on the count (a fall of 7 over a safe distance of 3 gives power 4, `min(0.2 + 4/15, 2.5) * 150 = 70` particles; a fall within the safe distance, none). Checked in the game with a cow dropped on stone, the `block` particle counter of `horizon-ctl status` before and after. 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:6573432853 --> @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#3105
No description provided.