[PR #6853] [MERGED] Port map: scaffolding, snow shade and the sulfur trigger are ported #7145

Closed
opened 2026-11-03 06:34:40 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6853
Author: @MSedgeMC
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: fix/ledger-game2015-blocks


📝 Commits (1)

  • 5ec019d port map: scaffolding, snow shade and the sulfur trigger are ported

📊 Changes

1 file changed (+3 additions, -3 deletions)

View changed files

📝 tools/port_map/game2-015.tsv (+3 -3)

📄 Description

ScaffoldingBlock.tick recomputes DISTANCE and BOTTOM every tick: at distance 7 the stack falls, or drops when it already was 7, and otherwise the new state is set with an update. SnowLayerBlock.getShadeBrightness answers 0.2 for a full eight-layer block (a full cube's shade) and 1.0 below that. PotentSulfurBlock.triggerEvent has the block entity note the eruption's game time, which the geyser plume's timing reads.

tools/port_map/game2-015.tsv called all three missing:

  • ScaffoldingBlock.tick — "unsure: Sim::tick_block has no Scaffolding arm, so the distance and bottom are not recomputed each tick". tick::Sim::tick_block has the arm (crates/horizon-world/src/level/tick.rs:198: Class::Scaffolding => self.scaffolding_tick(pos, state)) and scaffolding_tick (:540) does exactly vanilla's tick, with scaffolding_is_bottom as isBottom and schedule_tick(pos, block, 1) on place.
  • SnowLayerBlock.getShadeBrightness — "unsure: minor: no shade brightness lookup for snow layers found". The mesher's shade table has the override: crates/horizon-client-render/src/mesher.rs:597-601, SnowLayerBlock with layers == 8 shades 0.2, anything else 1.0, next to the transparent/barrier/light/structure-void 1.0 overrides.
  • PotentSulfurBlock.triggerEvent — "only stores the eruption tick that the geyser plume timing reads; geysers never erupt in Horizon". The arm is in pistons::Sim::trigger_event (crates/horizon-world/src/level/pistons.rs:154), and the geyser does erupt: game/potent_sulfur.rs runs the waiting-countdown, launch, nausea, particle and sound tickers (tick_potent_sulfur, server_waiting_countdown_ticker, launch_entity_ticker, potent_sulfur_eruption_event) and PotentSulfurBlock.onPlace/validBlockState are in level/shapes.rs.

Proven:

  • python3 tools/port_ledger.py map-check tools/port_map/game2-015.tsv → 141 rows, no problems.
  • grep -n 'Class::Scaffolding' crates/horizon-world/src/level/tick.rs crates/horizon-world/src/level/hooks.rs → tick.rs:198 (the tick arm) and hooks.rs:203 (schedule_tick(pos, block, 1) on place)
  • grep -n 'SnowLayerBlock' crates/horizon-client-render/src/mesher.rs → the layers == 8 → 0.2 override in the shade table
  • grep -n 'PotentSulfurBlock.triggerEvent' crates/horizon-world/src/level/pistons.rs → 154:, in the Class::PotentSulfur arm of Sim::trigger_event
  • grep -n 'fn tick_potent_sulfur|fn launch_entity_ticker|fn server_waiting_countdown_ticker' crates/horizon-client/src/game/potent_sulfur.rs → the geyser's tickers exist, so "geysers never erupt" no longer holds

Not proven:

  • I did not run the game: no scaffolding stack was left to fall, no snow layer was checked for its shade, and no geyser was watched erupting.
  • The other 138 rows of game2-015.tsv were not re-derived method by method; the verdicts I left alone were checked only for dangling paths, which map-check reports clean.

🔄 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/6853 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/ledger-game2015-blocks` --- ### 📝 Commits (1) - [`5ec019d`](https://github.com/horizon-rust/horizon/commit/5ec019ddeb00cb1e4667fca57128b30ea9d2d719) port map: scaffolding, snow shade and the sulfur trigger are ported ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/game2-015.tsv` (+3 -3) </details> ### 📄 Description `ScaffoldingBlock.tick` recomputes `DISTANCE` and `BOTTOM` every tick: at distance 7 the stack falls, or drops when it already was 7, and otherwise the new state is set with an update. `SnowLayerBlock.getShadeBrightness` answers 0.2 for a full eight-layer block (a full cube's shade) and 1.0 below that. `PotentSulfurBlock.triggerEvent` has the block entity note the eruption's game time, which the geyser plume's timing reads. `tools/port_map/game2-015.tsv` called all three missing: - `ScaffoldingBlock.tick` — "unsure: Sim::tick_block has no Scaffolding arm, so the distance and bottom are not recomputed each tick". `tick::Sim::tick_block` has the arm (`crates/horizon-world/src/level/tick.rs:198: Class::Scaffolding => self.scaffolding_tick(pos, state)`) and `scaffolding_tick` (`:540`) does exactly vanilla's tick, with `scaffolding_is_bottom` as `isBottom` and `schedule_tick(pos, block, 1)` on place. - `SnowLayerBlock.getShadeBrightness` — "unsure: minor: no shade brightness lookup for snow layers found". The mesher's shade table has the override: `crates/horizon-client-render/src/mesher.rs:597-601`, `SnowLayerBlock` with `layers == 8` shades 0.2, anything else 1.0, next to the transparent/barrier/light/structure-void 1.0 overrides. - `PotentSulfurBlock.triggerEvent` — "only stores the eruption tick that the geyser plume timing reads; geysers never erupt in Horizon". The arm is in `pistons::Sim::trigger_event` (`crates/horizon-world/src/level/pistons.rs:154`), and the geyser does erupt: `game/potent_sulfur.rs` runs the waiting-countdown, launch, nausea, particle and sound tickers (`tick_potent_sulfur`, `server_waiting_countdown_ticker`, `launch_entity_ticker`, `potent_sulfur_eruption_event`) and `PotentSulfurBlock.onPlace`/`validBlockState` are in `level/shapes.rs`. **Proven:** - `python3 tools/port_ledger.py map-check tools/port_map/game2-015.tsv` → `141 rows, no problems.` - `grep -n 'Class::Scaffolding' crates/horizon-world/src/level/tick.rs crates/horizon-world/src/level/hooks.rs` → `tick.rs:198` (the tick arm) and `hooks.rs:203` (`schedule_tick(pos, block, 1)` on place) - `grep -n 'SnowLayerBlock' crates/horizon-client-render/src/mesher.rs` → the `layers == 8` → 0.2 override in the shade table - `grep -n 'PotentSulfurBlock.triggerEvent' crates/horizon-world/src/level/pistons.rs` → `154:`, in the `Class::PotentSulfur` arm of `Sim::trigger_event` - `grep -n 'fn tick_potent_sulfur|fn launch_entity_ticker|fn server_waiting_countdown_ticker' crates/horizon-client/src/game/potent_sulfur.rs` → the geyser's tickers exist, so "geysers never erupt" no longer holds **Not proven:** - I did not run the game: no scaffolding stack was left to fall, no snow layer was checked for its shade, and no geyser was watched erupting. - The other 138 rows of `game2-015.tsv` were not re-derived method by method; the verdicts I left alone were checked only for dangling paths, which `map-check` reports clean. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:34:40 +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#7145
No description provided.