[PR #2105] [MERGED] Fire emits ambient smoke; mob breaks of fire drop no crumbs #4009

Closed
opened 2026-11-03 04:13:59 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2105
Author: @socksprox
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @ludovic111

Base: main ← Head: fix/fire-smoke-no-break-particles


📝 Commits (2)

  • 0a2de15 Fire: ambient smoke particles and no mob-break crumbs
  • e2e5918 Fire smoke: a waterlogged neighbour doesn't burn

📊 Changes

2 files changed (+78 additions, -4 deletions)

View changed files

📝 crates/horizon-client/src/animate_tick.rs (+74 -3)
📝 crates/horizon-client/src/game/creatures.rs (+4 -1)

📄 Description

🤖 Opened by an AI agent (Devin), not by the user themselves.

What and why

Two fire parity gaps:

  • Fire never produced its ambient smoke. ClientLevel.animateTick now gives each fire/soul_fire block the vanilla BaseFireBlock.animateTick puffs: three large_smoke in the block's top half when it sits on something burnable or sturdy, or two puffs at each burnable neighbour's face when it doesn't. FireBlock.canBurn is igniteOdds > 0, so AnimateTables gains a burnable table read from block-behaviours.json (fire.igniteOdds); SoulFireBlock.canBurn is always true, so soul fire always takes the top-half branch. Random draws and positions follow vanilla, including the nextDouble() * 0.1F (float constant) edge offsets.
  • A mob breaking fire (MobEvent::BreakBlock, e.g. the wither) played the generic destroy particles. Vanilla's Level.destroyBlock calls Block.spawnDestroyParticles, which BaseFireBlock overrides to nothing — now mirrored: no crumbs for BaseFireBlock classes.

Player breaks already went through player_destroy (level event 1009 extinguish, no 2001) on the in-frame path; the predicted break on the remote path is #2082's fix, deliberately not duplicated here.

Vanilla reference

  • BaseFireBlock.animateTick (net/minecraft/world/level/block/BaseFireBlock.java) — smoke positions, counts and draw order; FireBlock.canBurn / SoulFireBlock.canBurn.
  • BaseFireBlock.spawnDestroyByEntityParticles (no-op) — reached by Block.spawnDestroyParticles from Level.destroyBlock.
  • Harness coverage: marker_particles (exercises animate_tick over the ambient sampling path) — PASS.

Self-check

tools/pr_ready.py --quick on MacBookPro, against origin/main at 8a458496c, 4 min 51 s

Check Result
Scope ✅ 3 files, +77 −4
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ➖ no Python change
rustfmt ✅ (5 s)
clippy ✅ (44 s)
tests: horizon-client ✅ 1299 passed (3 min 50 s)
doc tests ✅ 0 passed (3 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 272 affected, to run in CI (--quick)

In-game check (server thread, offscreen): a fire patch on netherrack produced large_smoke particles (~17k made in seconds, rising smoke visible in a screenshot). The MobEvent::BreakBlock change was verified by code path, not exercised with a real mob breaking fire.

🤖 Generated with Devin


🔄 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/2105 **Author:** [@socksprox](https://github.com/socksprox) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/fire-smoke-no-break-particles` --- ### 📝 Commits (2) - [`0a2de15`](https://github.com/horizon-rust/horizon/commit/0a2de159fd6f84dde1405d59a35fc3d1e6f9349e) Fire: ambient smoke particles and no mob-break crumbs - [`e2e5918`](https://github.com/horizon-rust/horizon/commit/e2e591858eadc0b3423389412f9d1e41a65968c3) Fire smoke: a waterlogged neighbour doesn't burn ### 📊 Changes **2 files changed** (+78 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/animate_tick.rs` (+74 -3) 📝 `crates/horizon-client/src/game/creatures.rs` (+4 -1) </details> ### 📄 Description > 🤖 Opened by an AI agent (Devin), not by the user themselves. ## What and why Two fire parity gaps: - Fire never produced its ambient smoke. `ClientLevel.animateTick` now gives each `fire`/`soul_fire` block the vanilla `BaseFireBlock.animateTick` puffs: three `large_smoke` in the block's top half when it sits on something burnable or sturdy, or two puffs at each burnable neighbour's face when it doesn't. `FireBlock.canBurn` is `igniteOdds > 0`, so `AnimateTables` gains a `burnable` table read from `block-behaviours.json` (`fire.igniteOdds`); `SoulFireBlock.canBurn` is always true, so soul fire always takes the top-half branch. Random draws and positions follow vanilla, including the `nextDouble() * 0.1F` (float constant) edge offsets. - A mob breaking fire (`MobEvent::BreakBlock`, e.g. the wither) played the generic destroy particles. Vanilla's `Level.destroyBlock` calls `Block.spawnDestroyParticles`, which `BaseFireBlock` overrides to nothing — now mirrored: no crumbs for `BaseFireBlock` classes. Player breaks already went through `player_destroy` (level event 1009 extinguish, no 2001) on the in-frame path; the predicted break on the remote path is #2082's fix, deliberately not duplicated here. ## Vanilla reference - `BaseFireBlock.animateTick` (`net/minecraft/world/level/block/BaseFireBlock.java`) — smoke positions, counts and draw order; `FireBlock.canBurn` / `SoulFireBlock.canBurn`. - `BaseFireBlock.spawnDestroyByEntityParticles` (no-op) — reached by `Block.spawnDestroyParticles` from `Level.destroyBlock`. - Harness coverage: `marker_particles` (exercises `animate_tick` over the ambient sampling path) — PASS. ## Self-check `tools/pr_ready.py --quick` on MacBookPro, against origin/main at 8a458496c, 4 min 51 s | Check | Result | | --- | --- | | Scope | ✅ 3 files, +77 −4 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ➖ no Python change | | rustfmt | ✅ (5 s) | | clippy | ✅ (44 s) | | tests: horizon-client | ✅ 1299 passed (3 min 50 s) | | doc tests | ✅ 0 passed (3 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 272 affected, to run in CI (--quick) | In-game check (server thread, offscreen): a fire patch on netherrack produced `large_smoke` particles (~17k made in seconds, rising smoke visible in a screenshot). The `MobEvent::BreakBlock` change was verified by code path, not exercised with a real mob breaking fire. 🤖 Generated with Devin --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:13:59 +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#4009
No description provided.