[PR #2126] [MERGED] Draw the level events the client dropped: lava and torch smoke, drips, chorus, sniffer eggs, dragon fireball burst #4029

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

📋 Pull Request Information

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

Base: main ← Head: fix/missing-level-events


📝 Commits (3)

  • 5c0f714 Draw the level events the client dropped: lava and torch smoke, drips, chorus, sniffer eggs, dragon fireball burst
  • 38cd309 Merge main into fix/missing-level-events
  • 523280e Draw the new level-event sound pitches from the client level's random

📊 Changes

4 files changed (+266 additions, -21 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+54 -0)
📝 crates/horizon-client/src/game/dragon.rs (+10 -5)
📝 crates/horizon-client/src/game/level_particles.rs (+190 -15)
📝 crates/horizon-client/src/particles.rs (+12 -1)

📄 Description

What and why

The world emits these level events, but the client drew nothing for them, or played only the sound. Players missed:

  • 1033 / 1034 (chorus flower grows / dies): the grow and death sounds.
  • 1046 / 1047 (dripstone drips into a cauldron): the lava and water drip sounds, at volume 2 with the random pitch.
  • 1504 (dripstone drip): the drip particle at the stalactite tip. It looks up the fluid above the stalactite's root (water, lava, mud, or the dimension default: lava in the Nether) and applies the tip's column offset.
  • 1501 (lava put out): the eight large smoke puffs above the block. The sound also now uses vanilla's pitch (2.6 plus a random spread) instead of a flat 1.0.
  • 1502 (redstone torch burns out): the five smoke puffs inside the block, and the same pitch fix for its sound.
  • 2006 (dragon fireball burst): the 200 dragon breath particles thrown outwards and the explosion sound with its random pitch. The fireball's impact in the dragon fight now raises this event instead of playing a flat sound.
  • 2009 (wet sponge dries in the Nether): the eight cloud puffs.
  • 2012 (turtle egg laid on sand): the happy villager sparks inside the block.
  • 2014 (straw bed destroyed): the block break particles, with no sound.
  • 3009 (sniffer egg on moss): the egg crack particles, 3 to 6 on each face.

The client path used by single player (level_event_at) goes through the same handler, so it is covered too.

Vanilla reference

LevelEventHandler cases 1033, 1034, 1046, 1047, 1501, 1502, 1504, 2006, 2009, 2012, 2014 and 3009; ParticleUtils.spawnParticlesOnBlockFaces and spawnParticleInBlock; PointedDripstoneBlock.spawnDripParticle; DragonFireball.onHit.

Not changed: 2003 (eye of ender) and fire smoke, which have their own open PRs.

Self-check

cargo check -p horizon-client passes.


🔄 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/2126 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/missing-level-events` --- ### 📝 Commits (3) - [`5c0f714`](https://github.com/horizon-rust/horizon/commit/5c0f7142f36cad8e1a1e7adffe3c6c5902328edb) Draw the level events the client dropped: lava and torch smoke, drips, chorus, sniffer eggs, dragon fireball burst - [`38cd309`](https://github.com/horizon-rust/horizon/commit/38cd3095e599d9137fccab96f587da32c8d836e7) Merge main into fix/missing-level-events - [`523280e`](https://github.com/horizon-rust/horizon/commit/523280e781e35f4d86f68852a3f125baf8f30c8f) Draw the new level-event sound pitches from the client level's random ### 📊 Changes **4 files changed** (+266 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+54 -0) 📝 `crates/horizon-client/src/game/dragon.rs` (+10 -5) 📝 `crates/horizon-client/src/game/level_particles.rs` (+190 -15) 📝 `crates/horizon-client/src/particles.rs` (+12 -1) </details> ### 📄 Description ## What and why The world emits these level events, but the client drew nothing for them, or played only the sound. Players missed: - 1033 / 1034 (chorus flower grows / dies): the grow and death sounds. - 1046 / 1047 (dripstone drips into a cauldron): the lava and water drip sounds, at volume 2 with the random pitch. - 1504 (dripstone drip): the drip particle at the stalactite tip. It looks up the fluid above the stalactite's root (water, lava, mud, or the dimension default: lava in the Nether) and applies the tip's column offset. - 1501 (lava put out): the eight large smoke puffs above the block. The sound also now uses vanilla's pitch (2.6 plus a random spread) instead of a flat 1.0. - 1502 (redstone torch burns out): the five smoke puffs inside the block, and the same pitch fix for its sound. - 2006 (dragon fireball burst): the 200 dragon breath particles thrown outwards and the explosion sound with its random pitch. The fireball's impact in the dragon fight now raises this event instead of playing a flat sound. - 2009 (wet sponge dries in the Nether): the eight cloud puffs. - 2012 (turtle egg laid on sand): the happy villager sparks inside the block. - 2014 (straw bed destroyed): the block break particles, with no sound. - 3009 (sniffer egg on moss): the egg crack particles, 3 to 6 on each face. The client path used by single player (`level_event_at`) goes through the same handler, so it is covered too. ## Vanilla reference `LevelEventHandler` cases 1033, 1034, 1046, 1047, 1501, 1502, 1504, 2006, 2009, 2012, 2014 and 3009; `ParticleUtils.spawnParticlesOnBlockFaces` and `spawnParticleInBlock`; `PointedDripstoneBlock.spawnDripParticle`; `DragonFireball.onHit`. Not changed: 2003 (eye of ender) and fire smoke, which have their own open PRs. ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:14:08 +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#4029
No description provided.