[PR #1156] [MERGED] Particles: 26.3's sulfur bubbles over wet potent sulfur (closes the #63 particle audit) #3102

Closed
opened 2026-11-02 16:01:31 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: fix/sulfur-bubbles


📝 Commits (1)

  • 52eb549 Particles: add 26.3's sulfur bubbles over potent sulfur

📊 Changes

6 files changed (+138 additions, -20 deletions)

View changed files

📝 crates/horizon-client/examples/particle_providers_probe.rs (+20 -12)
📝 crates/horizon-client/src/animate_tick.rs (+25 -0)
📝 crates/horizon-client/src/particles.rs (+69 -0)
📝 crates/horizon-client/src/settings.rs (+4 -1)
📝 mods/horizon/src/test/java/dev/horizonlab/parity/VanillaParticleProvidersOracle.java (+11 -4)
📝 tools/test_particle_providers_parity.py (+9 -3)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Fixes #63, reported by Online5277 ("a lot of particles don't seem to be imported, and some that are imported are not 1:1").

The #63 audit

Every one of the 128 particle types in 26.3's registry (datagen registries.json) was checked against Horizon's particle_types!:

  • The angry-villager count from the report (one particle instead of several) was fixed by #91 (merge commit 51601ba2): five particles and the other entity bursts, as in vanilla.
  • sulfur_bubbles: missing; added here.
  • geyser, geyser_base, geyser_plume, geyser_poof, noxious_gas, noxious_gas_cloud: missing. They all belong to 26.3's potent sulfur geysers (PotentSulfurBlockEntity: nausea, the eruption countdown, launching entities), which Horizon doesn't have yet. That is a feature port, not a particle fix, so it is listed in FEATURES.md LATER 4m.
  • elder_guardian: Horizon draws the elder guardian apparition itself, so nothing is missing for players.
  • ambient_entity_effect has a particle JSON in the jar but isn't registered in 26.3, so there is nothing to port.

Every other type is implemented. The particle providers harness compares each one with vanilla's own provider, tick by tick.

What

  • PotentSulfurBlock.animateTick (animate_tick.rs):
    • A wet potent sulfur block (any state but dry) with a water source above it sends two sulfur_bubbles from a random point in the block above (addAlwaysVisibleParticle).
    • One time in ten it also plays block.potent_sulfur.noxious_gas (ambient category, volume 1, pitch 1) at the block's corner.
  • SulfurBubbleParticle (particles.rs):
    • Movement: gravity −0.04 and friction 0.85, so it rises. It wiggles sideways by nextFloat·0.003·±1·0.5 and makes a second horizontal move each tick.
    • Size: grows from 0.02–0.04 to 0.15 over its 3-block climb.
    • Removal: when it leaves a water source, stops rising or reaches yStart + 3.
    • Vanilla's provider passes yAux as the constructor's za, so the starting Z speed comes from the Y speed. That quirk is kept.

Screenshots

Taken offscreen with horizon-ctl on the Mac mini: a 13×13 floor of wet potent sulfur under 5 blocks of water, 60 ticks after it was placed. Left is main, right is this branch.

sulfur bubbles

Single frames: main, branch. The particle's motion and size are checked against vanilla by the harness below rather than by eye.

How tested

tools/test_particle_providers_parity.py:

  • sulfur_bubbles joins the simple types.
  • New water cases for sulfur_bubbles, bubble and bubble_column_up, with and without a floor. The oracle (VanillaParticleProvidersOracle) and the probe both fill y 64–67 with still water sources for them.
  • The harness first caught the yAux/za quirk above; it passes now.
cargo fmt --all -- --check                                   OK
set -o pipefail; cargo clippy --workspace --all-targets -- -D warnings
                                                             Finished, no warnings
cargo test -p horizon-client                                 959 + 84 + 15 + 2 + 2 + 2 + 1 passed, 0 failed
tools/parity.py --changed origin/main (branch)               101 passed, 0 failed in 92.0 min

No harness failed on the branch, so none needed a comparison run on main.

What needs Ludovic

  • The geysers (LATER 4m (a)) are the rest of #63. This PR closes the issue because what remains is a separate 26.3 feature, not a missing or wrong particle.

🤖 Generated with Claude Code


🔄 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/1156 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/22/2026 **Status:** ✅ Merged **Merged:** 10/22/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/sulfur-bubbles` --- ### 📝 Commits (1) - [`52eb549`](https://github.com/horizon-rust/horizon/commit/52eb549aec94498418d401e98989d38a821c6d02) Particles: add 26.3's sulfur bubbles over potent sulfur ### 📊 Changes **6 files changed** (+138 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/examples/particle_providers_probe.rs` (+20 -12) 📝 `crates/horizon-client/src/animate_tick.rs` (+25 -0) 📝 `crates/horizon-client/src/particles.rs` (+69 -0) 📝 `crates/horizon-client/src/settings.rs` (+4 -1) 📝 `mods/horizon/src/test/java/dev/horizonlab/parity/VanillaParticleProvidersOracle.java` (+11 -4) 📝 `tools/test_particle_providers_parity.py` (+9 -3) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Fixes #63, reported by **Online5277** ("a lot of particles don't seem to be imported, and some that are imported are not 1:1"). ## The #63 audit Every one of the 128 particle types in 26.3's registry (datagen `registries.json`) was checked against Horizon's `particle_types!`: - The angry-villager count from the report (one particle instead of several) was fixed by #91 (merge commit 51601ba2): five particles and the other entity bursts, as in vanilla. - **sulfur_bubbles**: missing; added here. - **geyser, geyser_base, geyser_plume, geyser_poof, noxious_gas, noxious_gas_cloud**: missing. They all belong to 26.3's potent sulfur geysers (`PotentSulfurBlockEntity`: nausea, the eruption countdown, launching entities), which Horizon doesn't have yet. That is a feature port, not a particle fix, so it is listed in FEATURES.md LATER 4m. - **elder_guardian**: Horizon draws the elder guardian apparition itself, so nothing is missing for players. - **ambient_entity_effect** has a particle JSON in the jar but isn't registered in 26.3, so there is nothing to port. Every other type is implemented. The particle providers harness compares each one with vanilla's own provider, tick by tick. ## What - `PotentSulfurBlock.animateTick` (`animate_tick.rs`): - A wet potent sulfur block (any state but `dry`) with a water source above it sends two `sulfur_bubbles` from a random point in the block above (`addAlwaysVisibleParticle`). - One time in ten it also plays `block.potent_sulfur.noxious_gas` (ambient category, volume 1, pitch 1) at the block's corner. - `SulfurBubbleParticle` (`particles.rs`): - Movement: gravity −0.04 and friction 0.85, so it rises. It wiggles sideways by `nextFloat·0.003·±1·0.5` and makes a second horizontal move each tick. - Size: grows from 0.02–0.04 to 0.15 over its 3-block climb. - Removal: when it leaves a water source, stops rising or reaches yStart + 3. - Vanilla's provider passes `yAux` as the constructor's `za`, so the starting Z speed comes from the Y speed. That quirk is kept. ## Screenshots Taken offscreen with `horizon-ctl` on the Mac mini: a 13×13 floor of wet potent sulfur under 5 blocks of water, 60 ticks after it was placed. Left is `main`, right is this branch. ![sulfur bubbles](https://raw.githubusercontent.com/ludovic111/horizon/screenshots/q2-parity-entities-audio/sulfur/cmp-sulfur.png) Single frames: [main](https://raw.githubusercontent.com/ludovic111/horizon/screenshots/q2-parity-entities-audio/sulfur/main63-sulfur.png), [branch](https://raw.githubusercontent.com/ludovic111/horizon/screenshots/q2-parity-entities-audio/sulfur/pr63-sulfur.png). The particle's motion and size are checked against vanilla by the harness below rather than by eye. ## How tested `tools/test_particle_providers_parity.py`: - `sulfur_bubbles` joins the simple types. - New water cases for `sulfur_bubbles`, `bubble` and `bubble_column_up`, with and without a floor. The oracle (`VanillaParticleProvidersOracle`) and the probe both fill y 64–67 with still water sources for them. - The harness first caught the `yAux`/`za` quirk above; it passes now. ``` cargo fmt --all -- --check OK set -o pipefail; cargo clippy --workspace --all-targets -- -D warnings Finished, no warnings cargo test -p horizon-client 959 + 84 + 15 + 2 + 2 + 2 + 1 passed, 0 failed tools/parity.py --changed origin/main (branch) 101 passed, 0 failed in 92.0 min ``` No harness failed on the branch, so none needed a comparison run on `main`. ## What needs Ludovic - The geysers (LATER 4m (a)) are the rest of #63. This PR closes the issue because what remains is a separate 26.3 feature, not a missing or wrong particle. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 16:01:31 +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#3102
No description provided.