d9461c6d2d
Every vanilla Particle owns a RandomSource.create() of its own; providers draw from ParticleEngine.random, a few from ClientLevel.random, and spells from SpellParticle.RANDOM. Horizon drew everything from one generator, so draws landed on the wrong stream. Particles now carry their own random, and provider, level and spell draws use theirs, as in vanilla. Fixed against the real providers: - gust / small_gust: SingleQuadParticle(x, y, z) constructor, so the 12..15 tick lifetime comes out of the right draws. - explosion_emitter, gust emitters: NoRenderParticle draws no quad size. - effect, instant_effect, entity_effect, witch, infested: x/z motion from SpellParticle.RANDOM; the witch's brightness from the provider. - landing_honey, landing_obsidian_tear, falling_nectar, spore_blossom_air, crimson_spore, warped_spore, white_ash, sculk_charge(_pop), dolphin: provider draws (lifetimes, motion, alpha) from the provider random, after or before the sprite as the provider orders them; crimson spore motion scaled by the float constants; composter lifetime from the level random. - enchanted_hit: MagicProvider's 0.3/0.8 tint after the constructor tick; damage_indicator lives 20 ticks (DamageIndicatorProvider). - note: colour from Mth.sin's table. - shriek: one random sprite, not animated. - trail: Particle(x, y, z, xa, ya, za) constructor, ARGB.scaleRGB on the 8-bit channels, Mth.lerp towards the target including the last tick. - firework sparks: full bright (SimpleAnimatedParticle.getLightCoords). New parity harness tools/test_particle_providers_parity.py: the real ParticleResources providers build every type Horizon implements in a stand-in ClientLevel (air, optionally a stone floor); the oracle recovers each particle's clock-seeded random and the probe replays it; state, requested particles and sounds are compared tick by tick. Part of #63 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>