[PR #2829] [CLOSED] Firefly bushes emit their fireflies and idle sound #4641

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2829
Author: @socksprox
Created: 10/27/2026
Status: ❌ Closed

Base: main ← Head: fix/2804-firefly-bush


📝 Commits (1)

  • 7acaf3a Firefly bushes emit their fireflies and idle sound

📊 Changes

1 file changed (+30 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/animate_tick.rs (+30 -0)

📄 Description

🤖 Opened by socksprox's AI agent (Devin), not by socksprox himself.

What and why

The firefly bush's Block.animateTick was unimplemented — it never
spawned a firefly at night nor played its ambient idle (#2804; the bush
fluttered, but no fireflies).

Adds the FireflyBush animate kind to ClientLevel.animateTick:

  • level.getMaxLocalRawBrightness <= 13 → a 0.7 chance of a firefly
    particle in a 10x5x10 box around the bush
  • a 1/30 block.firefly_bush.idle ambient sound

(The FIREFLY_BUSH_SOUNDS environment-attribute gate is approximated —
the sound plays wherever the bush is, matching the common overworld
case.)

Tests

cargo check -p horizon-client --lib compiles clean; cargo fmt and the
public-tree hook pass. (The full pr_ready harness sweep runs in CI.)

🤖 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/2829 **Author:** [@socksprox](https://github.com/socksprox) **Created:** 10/27/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/2804-firefly-bush` --- ### 📝 Commits (1) - [`7acaf3a`](https://github.com/horizon-rust/horizon/commit/7acaf3a85764064b1a9c0fe719432c762451e406) Firefly bushes emit their fireflies and idle sound ### 📊 Changes **1 file changed** (+30 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/animate_tick.rs` (+30 -0) </details> ### 📄 Description > 🤖 Opened by socksprox's AI agent (Devin), not by socksprox himself. ## What and why The firefly bush's `Block.animateTick` was unimplemented — it never spawned a firefly at night nor played its ambient idle (#2804; the bush fluttered, but no fireflies). Adds the `FireflyBush` animate kind to `ClientLevel.animateTick`: - `level.getMaxLocalRawBrightness <= 13` → a `0.7` chance of a `firefly` particle in a `10x5x10` box around the bush - a `1/30` `block.firefly_bush.idle` ambient sound (The `FIREFLY_BUSH_SOUNDS` environment-attribute gate is approximated — the sound plays wherever the bush is, matching the common overworld case.) ## Tests `cargo check -p horizon-client --lib` compiles clean; `cargo fmt` and the public-tree hook pass. (The full pr_ready harness sweep runs in CI.) 🤖 Generated with [Devin](https://devin.ai) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:06:52 +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#4641
No description provided.