[PR #3944] [MERGED] Sulfur geysers and potent sulfur, glow squid dark ticks, and splash water bottles that douse fire #5308

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3944
Author: @kacpherek
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: fix/split-sulfur-glowsquid-water


📝 Commits (10+)

  • bd89ae3 Sync and save the glow squid dark ticks
  • f1a0963 Dim a glow squid for 100 ticks when it is hit
  • 1a371c3 Count down the glow squid dark ticks and shed glow particles
  • 93dd53e Brighten a glow squid's body when it is not dark
  • d43b957 Add the sulfur geyser and noxious gas particles
  • a8be1d9 Add the potent sulfur block entity and its block events
  • 7ed6012 Tick potent sulfur geysers on the server and the client
  • a1a4547 Read splash potion effects around the hit from the potion tags
  • 25d15d2 Add the indirect_magic damage type for thrown potions
  • 57a2512 Add putting out a burning mob and a lit candle from outside

📊 Changes

32 files changed (+1507 additions, -29 deletions)

View changed files

📝 crates/horizon-client-core/src/particle_type.rs (+12 -0)
📝 crates/horizon-client-render/src/chunk/block_entity.rs (+18 -0)
📝 crates/horizon-client-render/src/containers.rs (+8 -1)
📝 crates/horizon-client-render/src/lib.rs (+1 -0)
📝 crates/horizon-client-render/src/particles.rs (+284 -3)
➕ crates/horizon-client-render/src/potent_sulfur.rs (+119 -0)
📝 crates/horizon-client/examples/probe/particle_providers_probe.rs (+8 -0)
📝 crates/horizon-client/examples/probe/squid_client_probe.rs (+1 -1)
📝 crates/horizon-client/src/entity_nbt.rs (+14 -0)
📝 crates/horizon-client/src/game.rs (+14 -2)
📝 crates/horizon-client/src/game/block_entity_anims.rs (+4 -0)
📝 crates/horizon-client/src/game/block_entity_ticks.rs (+17 -1)
📝 crates/horizon-client/src/game/creatures.rs (+8 -0)
📝 crates/horizon-client/src/game/lan.rs (+9 -0)
📝 crates/horizon-client/src/game/lan_particles.rs (+9 -0)
➕ crates/horizon-client/src/game/potent_sulfur.rs (+485 -0)
📝 crates/horizon-client/src/game/potions.rs (+26 -8)
📝 crates/horizon-client/src/game/powder_snow.rs (+1 -1)
📝 crates/horizon-client/src/game/remote.rs (+2 -1)
📝 crates/horizon-client/src/game/remote_mob_data.rs (+4 -0)

...and 12 more files

📄 Description

What and why

  • Sync and save the glow squid dark ticks: A glow squid had nowhere to keep DATA_DARK_TICKS_REMAINING: nothing held it, sent it to clients, or saved it. GlowSquid defines it as the first entry after AgeableMob's two (index 18) and writes DarkTicksRemaining (GlowSquid.java). It lives in the mob's counter; the server sends it as synched data, a client applies it and the save keeps it.
  • Dim a glow squid for 100 ticks when it is hit: A hit glow squid never got its dark timer, so it did not dim. GlowSquid.hurtServer sets the dark ticks to 100 once Squid.hurtServer took the damage (GlowSquid.java:97).
  • Count down the glow squid dark ticks and shed glow particles: A glow squid kept no dark timer and shed no glow. GlowSquid.aiStep runs after Squid.aiStep on the server and on clients: it lowers a positive dark tick count by one and calls addParticle(GLOW) at getRandomX(0.6), getRandomY(), getRandomZ(0.6) (GlowSquid.java:83). Only a client's level draws it; the server throws the same three random doubles.
  • Brighten a glow squid's body when it is not dark: A glow squid was lit like any mob, so it never glowed in the dark. GlowSquidRenderer.getBlockLightLevel lerps 1 - darkTicks / 10 over 0..15 and uses 15 outright, else the larger of that and the usual block light (GlowSquidRenderer.java:26).
  • Add the sulfur geyser and noxious gas particles: Potent sulfur geysers draw four new particle types and two emitters, and none existed. Add noxious_gas, noxious_gas_cloud, geyser, geyser_base, geyser_poof and geyser_plume the way the vanilla providers build them (GeyserEruptionParticle.java, GeyserPlumeParticle.java, GeyserBaseParticle.java, NoxiousGasParticle.java, NoxiousGasCloudParticle.java): the gas fades from half its life, the base puffs burst upward, the plume shoots up and falls back, and the cloud and the eruption spawn the rest every tick. The cloud asks PotentSulfurBlockEntity.canBeReachedByNoxiousGas, ported with the other level reads of that class in the new potent_sulfur module. Particle packets with geyser data now map to and from the options.
  • Add the potent sulfur block entity and its block events: Potent sulfur had no block entity of its own here, so no countdown was kept or saved and a geyser that began erupting made no sound or block event. Add PotentSulfurBlockEntity's waitingCountdown (saved as countdown) and eruptionTick, create it with the block and keep it through saves. PotentSulfurBlock.onPlace now queues the eruption block event, plays the start sound and signals block_activate for erupting and continuous states, triggerEvent reports the event handled, and updateShape resets the countdown when a block that was no geyser turns dormant (PotentSulfurBlock.java validBlockState).
  • Tick potent sulfur geysers on the server and the client: Wet or dormant sulfur never made anyone nauseous, periodic geysers never erupted, and continuous ones neither pushed entities nor showed their plume. Run PotentSulfurBlock.getTicker's tickers by state (PotentSulfurBlockEntity.java): the server gives nausea every 10 ticks, counts the geyser down with its positional random and flips dormant and erupting, and throws mobs, items and primed TNT up the column; the client releases gas clouds, draws the plume and plays its sound from the eruption block event, and pushes the local player, who moves on its own client. A window that simulates the world itself does both.
  • Read splash potion effects around the hit from the potion tags: A thrown potion tested for plain water by id to hurt endermen and refill axolotls. Vanilla asks PotionContents.is for #hurts_water_sensitive_entities, #rehydrates_axolotls (and #douses_fire, #extinguishes_entities) in AbstractThrownPotion. Add the lookup over the data pack's tags/potion and use it for the two checks that exist.
  • Add the indirect_magic damage type for thrown potions: A thrown potion hurts through DamageSources.indirectMagic(potion, owner), which bypasses armor, is resisted by witches and wolf armor, and, unlike magic, knocks back from the potion. Mobs only had magic (no knockback) or a player attack. Add the kind, its constructor and the damage_type id, and keep Enderman.hurtServer's random teleport chance off it: the thrown-potion branch teleports without it (Entity.java, DamageTypeTags, Enderman.java).
  • Add putting out a burning mob and a lit candle from outside: Entity.extinguishFire plays the extinguish sound for a burning entity and then clears its fire; AbstractCandleBlock.extinguish unlights a candle or candle cake with its sound and the block-change game event (no source entity, and no smoke from a server). Mobs only lost their fire in water or rain, and candles only to a player's empty hand or a wind charge.
  • Hurt water-sensitive mobs and put out burning ones with a splash: A water potion only hurt endermen, and nothing it splashed on stopped burning. AbstractThrownPotion.affectEntitiesAround goes over every living entity in the potion's box grown by (4, 2, 4) and under 4 blocks away: #hurts_water_sensitive_entities hurts the sensitive ones (blaze, snow golem, strider, enderman) with indirectMagic and #extinguishes_entities calls extinguishFire on the burning ones, players and armor stands included (AbstractThrownPotion.java:94).
  • Douse fire, candles and campfires where a water bottle lands: A potion that hit a block had no face and never put anything out. Thrown potions now keep the block and the face they entered it by, and AbstractThrownPotion.onHitBlock (server side, before the entity effects) douses the cell in front of that face, the cell behind it and the four horizontal neighbours when the potion is in #douses_fire. AbstractThrownPotion.douseFire destroys a fire block without drops, puts out a lit candle or candle cake (AbstractCandleBlock.extinguish) and a lit campfire (level event 1009, the block-change game event, lit false) (AbstractThrownPotion.java:48, :122).

Vanilla reference

Each commit message names the vanilla method and file it follows: GlowSquid.java, GlowSquid.java:97, GlowSquid.java:83, GlowSquidRenderer.java:26, GeyserEruptionParticle.java, GeyserPlumeParticle.java, GeyserBaseParticle.java, NoxiousGasParticle.java, NoxiousGasCloudParticle.java, PotentSulfurBlock.java, PotentSulfurBlockEntity.java, Entity.java, Enderman.java, AbstractThrownPotion.java:94, AbstractThrownPotion.java:48

Self-check

Split out of #3926; rustfmt on changed files; built by CI; not run in game.


🔄 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/3944 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/split-sulfur-glowsquid-water` --- ### 📝 Commits (10+) - [`bd89ae3`](https://github.com/horizon-rust/horizon/commit/bd89ae3df7f730814e1b83d3967cc712cc7af005) Sync and save the glow squid dark ticks - [`f1a0963`](https://github.com/horizon-rust/horizon/commit/f1a0963f2aefe7af1e03f43c7a206815e73fd074) Dim a glow squid for 100 ticks when it is hit - [`1a371c3`](https://github.com/horizon-rust/horizon/commit/1a371c3e20b3419b742fc3e4f6d8e4826e711119) Count down the glow squid dark ticks and shed glow particles - [`93dd53e`](https://github.com/horizon-rust/horizon/commit/93dd53e1c63b380262d9f304132696e24230e737) Brighten a glow squid's body when it is not dark - [`d43b957`](https://github.com/horizon-rust/horizon/commit/d43b957afcd16ce90a1bab52ac39ff076a7bb915) Add the sulfur geyser and noxious gas particles - [`a8be1d9`](https://github.com/horizon-rust/horizon/commit/a8be1d9ee0d861749ceae179f53330a1660ed24b) Add the potent sulfur block entity and its block events - [`7ed6012`](https://github.com/horizon-rust/horizon/commit/7ed6012c79dc7fab69e7d71755c3d82a7fd1559e) Tick potent sulfur geysers on the server and the client - [`a1a4547`](https://github.com/horizon-rust/horizon/commit/a1a45472c81172146989314660d9bbb39840e704) Read splash potion effects around the hit from the potion tags - [`25d15d2`](https://github.com/horizon-rust/horizon/commit/25d15d2a0a538637a91c1d62fcb42edb042a824c) Add the indirect_magic damage type for thrown potions - [`57a2512`](https://github.com/horizon-rust/horizon/commit/57a25120257340b08d7b80df3e1b23cf3dcebeb5) Add putting out a burning mob and a lit candle from outside ### 📊 Changes **32 files changed** (+1507 additions, -29 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-core/src/particle_type.rs` (+12 -0) 📝 `crates/horizon-client-render/src/chunk/block_entity.rs` (+18 -0) 📝 `crates/horizon-client-render/src/containers.rs` (+8 -1) 📝 `crates/horizon-client-render/src/lib.rs` (+1 -0) 📝 `crates/horizon-client-render/src/particles.rs` (+284 -3) ➕ `crates/horizon-client-render/src/potent_sulfur.rs` (+119 -0) 📝 `crates/horizon-client/examples/probe/particle_providers_probe.rs` (+8 -0) 📝 `crates/horizon-client/examples/probe/squid_client_probe.rs` (+1 -1) 📝 `crates/horizon-client/src/entity_nbt.rs` (+14 -0) 📝 `crates/horizon-client/src/game.rs` (+14 -2) 📝 `crates/horizon-client/src/game/block_entity_anims.rs` (+4 -0) 📝 `crates/horizon-client/src/game/block_entity_ticks.rs` (+17 -1) 📝 `crates/horizon-client/src/game/creatures.rs` (+8 -0) 📝 `crates/horizon-client/src/game/lan.rs` (+9 -0) 📝 `crates/horizon-client/src/game/lan_particles.rs` (+9 -0) ➕ `crates/horizon-client/src/game/potent_sulfur.rs` (+485 -0) 📝 `crates/horizon-client/src/game/potions.rs` (+26 -8) 📝 `crates/horizon-client/src/game/powder_snow.rs` (+1 -1) 📝 `crates/horizon-client/src/game/remote.rs` (+2 -1) 📝 `crates/horizon-client/src/game/remote_mob_data.rs` (+4 -0) _...and 12 more files_ </details> ### 📄 Description ## What and why - Sync and save the glow squid dark ticks: A glow squid had nowhere to keep DATA_DARK_TICKS_REMAINING: nothing held it, sent it to clients, or saved it. GlowSquid defines it as the first entry after AgeableMob's two (index 18) and writes DarkTicksRemaining (GlowSquid.java). It lives in the mob's counter; the server sends it as synched data, a client applies it and the save keeps it. - Dim a glow squid for 100 ticks when it is hit: A hit glow squid never got its dark timer, so it did not dim. GlowSquid.hurtServer sets the dark ticks to 100 once Squid.hurtServer took the damage (GlowSquid.java:97). - Count down the glow squid dark ticks and shed glow particles: A glow squid kept no dark timer and shed no glow. GlowSquid.aiStep runs after Squid.aiStep on the server and on clients: it lowers a positive dark tick count by one and calls addParticle(GLOW) at getRandomX(0.6), getRandomY(), getRandomZ(0.6) (GlowSquid.java:83). Only a client's level draws it; the server throws the same three random doubles. - Brighten a glow squid's body when it is not dark: A glow squid was lit like any mob, so it never glowed in the dark. GlowSquidRenderer.getBlockLightLevel lerps 1 - darkTicks / 10 over 0..15 and uses 15 outright, else the larger of that and the usual block light (GlowSquidRenderer.java:26). - Add the sulfur geyser and noxious gas particles: Potent sulfur geysers draw four new particle types and two emitters, and none existed. Add noxious_gas, noxious_gas_cloud, geyser, geyser_base, geyser_poof and geyser_plume the way the vanilla providers build them (GeyserEruptionParticle.java, GeyserPlumeParticle.java, GeyserBaseParticle.java, NoxiousGasParticle.java, NoxiousGasCloudParticle.java): the gas fades from half its life, the base puffs burst upward, the plume shoots up and falls back, and the cloud and the eruption spawn the rest every tick. The cloud asks PotentSulfurBlockEntity.canBeReachedByNoxiousGas, ported with the other level reads of that class in the new potent_sulfur module. Particle packets with geyser data now map to and from the options. - Add the potent sulfur block entity and its block events: Potent sulfur had no block entity of its own here, so no countdown was kept or saved and a geyser that began erupting made no sound or block event. Add PotentSulfurBlockEntity's waitingCountdown (saved as countdown) and eruptionTick, create it with the block and keep it through saves. PotentSulfurBlock.onPlace now queues the eruption block event, plays the start sound and signals block_activate for erupting and continuous states, triggerEvent reports the event handled, and updateShape resets the countdown when a block that was no geyser turns dormant (PotentSulfurBlock.java validBlockState). - Tick potent sulfur geysers on the server and the client: Wet or dormant sulfur never made anyone nauseous, periodic geysers never erupted, and continuous ones neither pushed entities nor showed their plume. Run PotentSulfurBlock.getTicker's tickers by state (PotentSulfurBlockEntity.java): the server gives nausea every 10 ticks, counts the geyser down with its positional random and flips dormant and erupting, and throws mobs, items and primed TNT up the column; the client releases gas clouds, draws the plume and plays its sound from the eruption block event, and pushes the local player, who moves on its own client. A window that simulates the world itself does both. - Read splash potion effects around the hit from the potion tags: A thrown potion tested for plain water by id to hurt endermen and refill axolotls. Vanilla asks PotionContents.is for #hurts_water_sensitive_entities, #rehydrates_axolotls (and #douses_fire, #extinguishes_entities) in AbstractThrownPotion. Add the lookup over the data pack's tags/potion and use it for the two checks that exist. - Add the indirect_magic damage type for thrown potions: A thrown potion hurts through DamageSources.indirectMagic(potion, owner), which bypasses armor, is resisted by witches and wolf armor, and, unlike magic, knocks back from the potion. Mobs only had magic (no knockback) or a player attack. Add the kind, its constructor and the damage_type id, and keep Enderman.hurtServer's random teleport chance off it: the thrown-potion branch teleports without it (Entity.java, DamageTypeTags, Enderman.java). - Add putting out a burning mob and a lit candle from outside: Entity.extinguishFire plays the extinguish sound for a burning entity and then clears its fire; AbstractCandleBlock.extinguish unlights a candle or candle cake with its sound and the block-change game event (no source entity, and no smoke from a server). Mobs only lost their fire in water or rain, and candles only to a player's empty hand or a wind charge. - Hurt water-sensitive mobs and put out burning ones with a splash: A water potion only hurt endermen, and nothing it splashed on stopped burning. AbstractThrownPotion.affectEntitiesAround goes over every living entity in the potion's box grown by (4, 2, 4) and under 4 blocks away: #hurts_water_sensitive_entities hurts the sensitive ones (blaze, snow golem, strider, enderman) with indirectMagic and #extinguishes_entities calls extinguishFire on the burning ones, players and armor stands included (AbstractThrownPotion.java:94). - Douse fire, candles and campfires where a water bottle lands: A potion that hit a block had no face and never put anything out. Thrown potions now keep the block and the face they entered it by, and AbstractThrownPotion.onHitBlock (server side, before the entity effects) douses the cell in front of that face, the cell behind it and the four horizontal neighbours when the potion is in #douses_fire. AbstractThrownPotion.douseFire destroys a fire block without drops, puts out a lit candle or candle cake (AbstractCandleBlock.extinguish) and a lit campfire (level event 1009, the block-change game event, lit false) (AbstractThrownPotion.java:48, :122). ## Vanilla reference Each commit message names the vanilla method and file it follows: GlowSquid.java, GlowSquid.java:97, GlowSquid.java:83, GlowSquidRenderer.java:26, GeyserEruptionParticle.java, GeyserPlumeParticle.java, GeyserBaseParticle.java, NoxiousGasParticle.java, NoxiousGasCloudParticle.java, PotentSulfurBlock.java, PotentSulfurBlockEntity.java, Entity.java, Enderman.java, AbstractThrownPotion.java:94, AbstractThrownPotion.java:48 ## Self-check Split out of #3926; rustfmt on changed files; built by CI; not run in game. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:11:41 +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#5308
No description provided.