[PR #2412] [MERGED] Ambient sounds and fireflies for firefly bushes, eyeblossoms, pale moss and dry plants #4291

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

📋 Pull Request Information

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

Base: main ← Head: fix/ambient-bush-eyeblossom-moss-effects


📝 Commits (4)

  • 2d72e98 Play ambient sounds and spawn fireflies around firefly bushes, eyeblossoms, pale moss and dry plants
  • fba004e Skip leaves in the no-leaves heightmap for firefly bush sounds
  • ed8418a Merge remote-tracking branch 'origin/main' into HEAD
  • e12d4c9 Merge main into fix/ambient-bush-eyeblossom-moss-effects

📊 Changes

3 files changed (+176 additions, -2 deletions)

View changed files

📝 crates/horizon-client/examples/probe/marker_particles_probe.rs (+3 -0)
📝 crates/horizon-client/src/animate_tick.rs (+145 -1)
📝 crates/horizon-client/src/game/render_tick.rs (+28 -1)

📄 Description

What and why

Five plant blocks have an ambient animateTick in vanilla but did nothing near the player in Horizon:

  • Firefly bush: at night, under open sky, it plays its idle sound (1 in 30 ticks), and whenever the light is 13 or lower it spawns glowing firefly particles up to 5 blocks around it (70% of ticks).
  • Open eyeblossom: plays its idle sound (1 in 700) when standing on pale moss.
  • Pale hanging moss: plays its idle sound (1 in 500) when hanging from pale oak logs or leaves.
  • Dead bush: desert idle sound (1 in 130), quieter on red sand and terracotta, only on sand or terracotta two blocks deep.
  • Short and tall dry grass: the dry grass sound (1 in 200) under the same sand/terracotta rule, played at the player.

The ambient effect context now carries the firefly sound flag (the overworld day timeline, 12600 to 23400), the sky darkening, and a "height without leaves" lookup. The wither rose is left to #2124.

Vanilla reference

  • FireflyBushBlock.animateTick
  • EyeblossomBlock.animateTick
  • HangingMossBlock.animateTick
  • DryVegetationBlock.animateTick, ShortDryGrassBlock.animateTick, TallDryGrassBlock.animateTick
  • AmbientDesertBlockSoundsPlayer.playAmbientDeadBushSounds, playAmbientDryGrassSounds, shouldPlayDesertDryVegetationBlockSounds
  • Timelines (FIREFLY_BUSH_SOUNDS keyframes 12600 true, 23401 false)

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/2412 **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/ambient-bush-eyeblossom-moss-effects` --- ### 📝 Commits (4) - [`2d72e98`](https://github.com/horizon-rust/horizon/commit/2d72e987c59db0d610cc30a3ae69b61790d3d1be) Play ambient sounds and spawn fireflies around firefly bushes, eyeblossoms, pale moss and dry plants - [`fba004e`](https://github.com/horizon-rust/horizon/commit/fba004eb3d6b44250fa4e8bcd4d72b700e4a58c5) Skip leaves in the no-leaves heightmap for firefly bush sounds - [`ed8418a`](https://github.com/horizon-rust/horizon/commit/ed8418a2ac925a42daa4aabbf2d56fa361529e6d) Merge remote-tracking branch 'origin/main' into HEAD - [`e12d4c9`](https://github.com/horizon-rust/horizon/commit/e12d4c9d0761a64957df50ca9628d87f9856cf0b) Merge main into fix/ambient-bush-eyeblossom-moss-effects ### 📊 Changes **3 files changed** (+176 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/examples/probe/marker_particles_probe.rs` (+3 -0) 📝 `crates/horizon-client/src/animate_tick.rs` (+145 -1) 📝 `crates/horizon-client/src/game/render_tick.rs` (+28 -1) </details> ### 📄 Description ## What and why Five plant blocks have an ambient `animateTick` in vanilla but did nothing near the player in Horizon: - **Firefly bush**: at night, under open sky, it plays its idle sound (1 in 30 ticks), and whenever the light is 13 or lower it spawns glowing firefly particles up to 5 blocks around it (70% of ticks). - **Open eyeblossom**: plays its idle sound (1 in 700) when standing on pale moss. - **Pale hanging moss**: plays its idle sound (1 in 500) when hanging from pale oak logs or leaves. - **Dead bush**: desert idle sound (1 in 130), quieter on red sand and terracotta, only on sand or terracotta two blocks deep. - **Short and tall dry grass**: the dry grass sound (1 in 200) under the same sand/terracotta rule, played at the player. The ambient effect context now carries the firefly sound flag (the overworld day timeline, 12600 to 23400), the sky darkening, and a "height without leaves" lookup. The wither rose is left to #2124. ## Vanilla reference - `FireflyBushBlock.animateTick` - `EyeblossomBlock.animateTick` - `HangingMossBlock.animateTick` - `DryVegetationBlock.animateTick`, `ShortDryGrassBlock.animateTick`, `TallDryGrassBlock.animateTick` - `AmbientDesertBlockSoundsPlayer.playAmbientDeadBushSounds`, `playAmbientDryGrassSounds`, `shouldPlayDesertDryVegetationBlockSounds` - `Timelines` (`FIREFLY_BUSH_SOUNDS` keyframes 12600 true, 23401 false) ## 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:16:06 +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#4291
No description provided.