[PR #7879] particle_providers: the sulfur geyser's four particles and the noxious gas #7877

Open
opened 2026-11-03 07:25:54 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7879
Author: @MSedgeMC
Created: 11/2/2026
Status: 🔄 Open

Base: main ← Head: test/particle-geyser-gas


📝 Commits (2)

  • b88db14 test: the sulfur geyser's four particles and the noxious gas
  • 56b79e6 harness: the geyser options the oracle never built

📊 Changes

2 files changed (+29 additions, -1 deletions)

View changed files

📝 mods/horizon/src/test/java/dev/horizonlab/parity/VanillaParticleProvidersOracle.java (+7 -0)
📝 tools/test_particle_providers_parity.py (+22 -1)

📄 Description

tools/test_particle_providers_parity.py says it builds "every supported particle type" through its real registered provider, but six of the 127 types the client implements never appeared in the corpus: geyser, geyser_plume, geyser_base, geyser_poof, noxious_gas and noxious_gas_cloud. The probe's option reader has asked the case for water_blocks and burst_impulse_base all along, and the oracle had no branch to build GeyserParticleOptions or GeyserBaseParticleOptions, so the four geyser types could not have run even if the corpus had named them.

The case runs all six: the geyser, its plume, base and poof with water columns of 1, 2, 3, 5 and 8 blocks and burst impulses of 0, 0.25, 0.5 and 1 (a plume rises 5 * waterBlocks blocks, its propulsion divides by the column, and a base's impulse is scaled by it), and the gas and its cloud both dry and in the still water the cloud needs: PotentSulfurBlockEntity.canBeReachedByNoxiousGas wants a water source under the spawn point, so the dry cloud never spawns anything and the wet one does.

Proven:

  • python3 tools/test_particle_providers_parity.py: 1,552 particle cases match the pinned client (52,607 output lines, 0 within the libm tolerance). 88 of the cases are new (72 in air, 16 in still water), and the first 1,464 cases are byte-identical to before, so the old corpus keeps its own seeds.
  • With the plume's height no longer reading its water column (let plume_height = 5;), 11 of the 12 geyser_plume cases differ; the twelfth draws water_blocks 1, where 5 * max(water_blocks, 1) is 5 anyway. Reported: 14 differing cases by type: {'red_poplar_leaves': 2, 'yellow_poplar_leaves': 1, 'geyser_plume': 11} — the three leaf lines are a unit apart in the last float bit, the libm tolerance the suite already carries.
  • With the cloud spawning on every third tick instead of every second, the eight still-water cloud cases differ and the twelve dry ones do not: 13 differing cases by type: {'pale_oak_leaves': 1, 'red_poplar_leaves': 2, 'tinted_leaves': 2, 'noxious_gas_cloud': 8}.
  • Both removals went unnoticed before: the same plume edit against the previous corpus still reported 1,464 particle cases match the pinned client (48,058 output lines, 4 within the libm tolerance).

Not proven: vibration is still absent from the corpus. The client's particle engine creates a vibration signal through its own vibration constructor aimed at a listener and returns none from the provider path this comparison drives, so that type needs a case kind of its own rather than a provider case. Flowing fluids, block light, render layers and the engine's group limits remain outside the comparison, as the scope says.


🔄 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/7879 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `test/particle-geyser-gas` --- ### 📝 Commits (2) - [`b88db14`](https://github.com/horizon-rust/horizon/commit/b88db14d40a1fd0fa30120e973af4508875cde46) test: the sulfur geyser's four particles and the noxious gas - [`56b79e6`](https://github.com/horizon-rust/horizon/commit/56b79e6852254392c9a21e81f33855b653e3e505) harness: the geyser options the oracle never built ### 📊 Changes **2 files changed** (+29 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `mods/horizon/src/test/java/dev/horizonlab/parity/VanillaParticleProvidersOracle.java` (+7 -0) 📝 `tools/test_particle_providers_parity.py` (+22 -1) </details> ### 📄 Description `tools/test_particle_providers_parity.py` says it builds "every supported particle type" through its real registered provider, but six of the 127 types the client implements never appeared in the corpus: `geyser`, `geyser_plume`, `geyser_base`, `geyser_poof`, `noxious_gas` and `noxious_gas_cloud`. The probe's option reader has asked the case for `water_blocks` and `burst_impulse_base` all along, and the oracle had no branch to build `GeyserParticleOptions` or `GeyserBaseParticleOptions`, so the four geyser types could not have run even if the corpus had named them. The case runs all six: the geyser, its plume, base and poof with water columns of 1, 2, 3, 5 and 8 blocks and burst impulses of 0, 0.25, 0.5 and 1 (a plume rises `5 * waterBlocks` blocks, its propulsion divides by the column, and a base's impulse is scaled by it), and the gas and its cloud both dry and in the still water the cloud needs: `PotentSulfurBlockEntity.canBeReachedByNoxiousGas` wants a water source under the spawn point, so the dry cloud never spawns anything and the wet one does. **Proven:** - `python3 tools/test_particle_providers_parity.py`: `1,552 particle cases match the pinned client (52,607 output lines, 0 within the libm tolerance)`. 88 of the cases are new (72 in air, 16 in still water), and the first 1,464 cases are byte-identical to before, so the old corpus keeps its own seeds. - With the plume's height no longer reading its water column (`let plume_height = 5;`), 11 of the 12 `geyser_plume` cases differ; the twelfth draws `water_blocks` 1, where `5 * max(water_blocks, 1)` is 5 anyway. Reported: `14 differing cases by type: {'red_poplar_leaves': 2, 'yellow_poplar_leaves': 1, 'geyser_plume': 11}` — the three leaf lines are a unit apart in the last float bit, the libm tolerance the suite already carries. - With the cloud spawning on every third tick instead of every second, the eight still-water cloud cases differ and the twelve dry ones do not: `13 differing cases by type: {'pale_oak_leaves': 1, 'red_poplar_leaves': 2, 'tinted_leaves': 2, 'noxious_gas_cloud': 8}`. - Both removals went unnoticed before: the same plume edit against the previous corpus still reported `1,464 particle cases match the pinned client (48,058 output lines, 4 within the libm tolerance)`. **Not proven:** `vibration` is still absent from the corpus. The client's particle engine creates a vibration signal through its own `vibration` constructor aimed at a listener and returns none from the provider path this comparison drives, so that type needs a case kind of its own rather than a provider case. Flowing fluids, block light, render layers and the engine's group limits remain outside the comparison, as the scope says. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#7877
No description provided.