[PR #1032] [MERGED] Structures: Repurposed Structures' waterlogging fix, as horizon:waterlog_in_world_water #3005

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

📋 Pull Request Information

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

Base: main ← Head: feat/rs-waterlog-when-replacing-water


📝 Commits (2)

  • 032446f Structures: Repurposed Structures' waterlogging fix, as horizon:waterlog_in_world_water
  • 0eda0b0 docs/modpacks.md: Repurposed's waterlogging fix is carried

📊 Changes

4 files changed (+131 additions, -0 deletions)

View changed files

📝 crates/horizon-port-pack/src/processors.rs (+21 -0)
📝 crates/horizon-world/src/worldgen/structure/processor.rs (+12 -0)
📝 crates/horizon-world/src/worldgen/structure/processor/sea_level.rs (+92 -0)
📝 docs/modpacks.md (+6 -0)

📄 Description

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

What

Repurposed Structures' waterlogging_when_replacing_water_processor becomes the game's
horizon:waterlog_in_world_water, and carry writes it instead of dropping it. It is used by 16
lists, the bottom pillars of the mod's villages and outposts, and is Repurposed's most-dropped
processor that remained (117 uses).

The mod's WaterlogWhenReplacingWaterProcessor works in the chunk being generated only: a block
that has waterlogged gets waterlogged = true where the world holds water there (still or
flowing water, or a waterlogged block), and false where it does not. A block placed in water
also gets a block tick (delay 0). The game's version does the same; the mod's height check is
always true for a block of the chunk.

Numbers (ATM10 content root, seed 1234)

  • Repurposed's dropped processors: 370 → 253 (counted with #1022 applied; carried 554 → 671).
  • Around the ocean village at chunk (12, 10) (100 chunks, structure_blocks before/after): 6
    spruce fences of its pillars under the sea are now waterlogged. Nothing else changes. The effect
    is small, but the pillars now match the mod's.

How tested

cargo fmt --all -- --check                                                    ok
cargo clippy -p horizon-world -p horizon-port-pack --all-targets -- -D warnings ok
cargo test -p horizon-world --lib sea_level                                   4 passed (new: blocks_take_waterlogged_from_the_worlds_water)
cargo test -p horizon-port-pack                                               51 passed (new: repurposed_waterlogging_follows_the_world)

The workspace clippy, tools/parity.py --changed origin/main and the vanilla structure-start oracle run once on
the integration commit with my other open PRs; the results go in a comment. Vanilla structures
don't use the new processor, so their output can't change.

Nothing needs Ludovic.

🤖 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/1032 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/19/2026 **Status:** ✅ Merged **Merged:** 10/21/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/rs-waterlog-when-replacing-water` --- ### 📝 Commits (2) - [`032446f`](https://github.com/horizon-rust/horizon/commit/032446fb682cc6ffef77b7b75d929afde07ad2d2) Structures: Repurposed Structures' waterlogging fix, as horizon:waterlog_in_world_water - [`0eda0b0`](https://github.com/horizon-rust/horizon/commit/0eda0b0aaa143dd6ad89b1d7eab18c7bd30961f3) docs/modpacks.md: Repurposed's waterlogging fix is carried ### 📊 Changes **4 files changed** (+131 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-port-pack/src/processors.rs` (+21 -0) 📝 `crates/horizon-world/src/worldgen/structure/processor.rs` (+12 -0) 📝 `crates/horizon-world/src/worldgen/structure/processor/sea_level.rs` (+92 -0) 📝 `docs/modpacks.md` (+6 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What Repurposed Structures' `waterlogging_when_replacing_water_processor` becomes the game's `horizon:waterlog_in_world_water`, and carry writes it instead of dropping it. It is used by 16 lists, the bottom pillars of the mod's villages and outposts, and is Repurposed's most-dropped processor that remained (117 uses). The mod's `WaterlogWhenReplacingWaterProcessor` works in the chunk being generated only: a block that has `waterlogged` gets `waterlogged = true` where the world holds water there (still or flowing water, or a waterlogged block), and `false` where it does not. A block placed in water also gets a block tick (delay 0). The game's version does the same; the mod's height check is always true for a block of the chunk. ## Numbers (ATM10 content root, seed 1234) - Repurposed's dropped processors: 370 → 253 (counted with #1022 applied; carried 554 → 671). - Around the ocean village at chunk (12, 10) (100 chunks, `structure_blocks` before/after): 6 spruce fences of its pillars under the sea are now waterlogged. Nothing else changes. The effect is small, but the pillars now match the mod's. ## How tested ``` cargo fmt --all -- --check ok cargo clippy -p horizon-world -p horizon-port-pack --all-targets -- -D warnings ok cargo test -p horizon-world --lib sea_level 4 passed (new: blocks_take_waterlogged_from_the_worlds_water) cargo test -p horizon-port-pack 51 passed (new: repurposed_waterlogging_follows_the_world) ``` The workspace clippy, `tools/parity.py --changed origin/main` and the vanilla structure-start oracle run once on the integration commit with my other open PRs; the results go in a comment. Vanilla structures don't use the new processor, so their output can't change. Nothing needs Ludovic. 🤖 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:00:45 +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#3005
No description provided.