[PR #2124] [MERGED] Block ambient effects: levers, repeaters, dripstone, wither roses, End gateways, lightning rods #4027

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

📋 Pull Request Information

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

Base: main ← Head: fix/block-animate-gaps


📝 Commits (4)

  • 5d72fdd Add ambient effects for levers, repeaters, dripstone, wither roses, End gateways and lightning rods
  • 2c783d0 Merge origin/main into fix/block-animate-gaps
  • cae7cc0 Merge origin/main into fix/block-animate-gaps (picks up main's rabbit-arm fix, #2716)
  • ca35154 Merge origin/main into fix/block-animate-gaps

📊 Changes

7 files changed (+286 additions, -22 deletions)

View changed files

📝 crates/horizon-client/examples/probe/emitter_particles_probe.rs (+1 -1)
📝 crates/horizon-client/examples/probe/marker_particles_probe.rs (+4 -0)
📝 crates/horizon-client/src/animate_tick.rs (+235 -1)
📝 crates/horizon-client/src/block_entity_render.rs (+26 -16)
📝 crates/horizon-client/src/game/level_particles.rs (+1 -1)
📝 crates/horizon-client/src/game/render_tick.rs (+14 -0)
📝 crates/horizon-client/src/particles.rs (+5 -3)

📄 Description

What and why

Six blocks have an animateTick in vanilla but did nothing around them in Horizon.

  • Lever: a powered lever now puffs small red dust at its head a quarter of the time.
  • Repeater: a powered repeater now shows red dust at one of its two torches.
  • Pointed dripstone: free-hanging stalactite tips now drip water or lava from the fluid above the stalactite root (mud counts as water outside the Nether, and a tip with no fluid above drips whatever the dimension defaults to). Dripping lava only happens in the Nether.
  • Wither rose: now gives off small smoke puffs around the middle of the flower.
  • End gateway: now sends out portal particles, one batch per visible face. The count reuses the face check the gateway renderer already does (gateway_faces).
  • Lightning rod: in a thunderstorm the topmost rod throws electric sparks along itself. ParticleUtils.spawnParticlesAlongAxis already existed for the lightning-strike event, so it now takes the spark count as an argument.

The effects get four new inputs from game/render_tick.rs: the random block model offset, the gateway face count, whether it is thundering, and whether the dimension is the Nether. The fire arm is not touched.

Vanilla reference

  • LeverBlock.animateTick / makeParticle
  • RepeaterBlock.animateTick
  • PointedDripstoneBlock.animateTick, getFluidAboveStalactite, canFillCauldron, spawnDripParticle, getDripParticle
  • WitherRoseBlock.animateTick
  • EndGatewayBlock.animateTick, TheEndGatewayBlockEntity.getParticleAmount
  • LightningRodBlock.animateTick, ParticleUtils.spawnParticlesAlongAxis

Small differences from vanilla: the gateway effect does not check that a block entity exists at the position, and the lightning rod draws from the client level random like vanilla's level.getRandom().

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/2124 **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/block-animate-gaps` --- ### 📝 Commits (4) - [`5d72fdd`](https://github.com/horizon-rust/horizon/commit/5d72fdd8c24ce81f53a5f307cf8f0bc855852231) Add ambient effects for levers, repeaters, dripstone, wither roses, End gateways and lightning rods - [`2c783d0`](https://github.com/horizon-rust/horizon/commit/2c783d099a1cfd263e361ce3f1ff38e88c25f344) Merge origin/main into fix/block-animate-gaps - [`cae7cc0`](https://github.com/horizon-rust/horizon/commit/cae7cc02d3e649109fe6dfbfedefd5947cf9550b) Merge origin/main into fix/block-animate-gaps (picks up main's rabbit-arm fix, #2716) - [`ca35154`](https://github.com/horizon-rust/horizon/commit/ca351542ef021442acb0a7c07eb40e59a6816ec2) Merge origin/main into fix/block-animate-gaps ### 📊 Changes **7 files changed** (+286 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/examples/probe/emitter_particles_probe.rs` (+1 -1) 📝 `crates/horizon-client/examples/probe/marker_particles_probe.rs` (+4 -0) 📝 `crates/horizon-client/src/animate_tick.rs` (+235 -1) 📝 `crates/horizon-client/src/block_entity_render.rs` (+26 -16) 📝 `crates/horizon-client/src/game/level_particles.rs` (+1 -1) 📝 `crates/horizon-client/src/game/render_tick.rs` (+14 -0) 📝 `crates/horizon-client/src/particles.rs` (+5 -3) </details> ### 📄 Description ## What and why Six blocks have an `animateTick` in vanilla but did nothing around them in Horizon. - **Lever**: a powered lever now puffs small red dust at its head a quarter of the time. - **Repeater**: a powered repeater now shows red dust at one of its two torches. - **Pointed dripstone**: free-hanging stalactite tips now drip water or lava from the fluid above the stalactite root (mud counts as water outside the Nether, and a tip with no fluid above drips whatever the dimension defaults to). Dripping lava only happens in the Nether. - **Wither rose**: now gives off small smoke puffs around the middle of the flower. - **End gateway**: now sends out portal particles, one batch per visible face. The count reuses the face check the gateway renderer already does (`gateway_faces`). - **Lightning rod**: in a thunderstorm the topmost rod throws electric sparks along itself. `ParticleUtils.spawnParticlesAlongAxis` already existed for the lightning-strike event, so it now takes the spark count as an argument. The effects get four new inputs from `game/render_tick.rs`: the random block model offset, the gateway face count, whether it is thundering, and whether the dimension is the Nether. The fire arm is not touched. ## Vanilla reference - `LeverBlock.animateTick` / `makeParticle` - `RepeaterBlock.animateTick` - `PointedDripstoneBlock.animateTick`, `getFluidAboveStalactite`, `canFillCauldron`, `spawnDripParticle`, `getDripParticle` - `WitherRoseBlock.animateTick` - `EndGatewayBlock.animateTick`, `TheEndGatewayBlockEntity.getParticleAmount` - `LightningRodBlock.animateTick`, `ParticleUtils.spawnParticlesAlongAxis` Small differences from vanilla: the gateway effect does not check that a block entity exists at the position, and the lightning rod draws from the client level random like vanilla's `level.getRandom()`. ## 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:07 +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#4027
No description provided.