[PR #1176] [MERGED] Structures: CTOV's mod-compat hooks and Repurposed's mineshaft sky view carried #3390

Closed
opened 2026-11-03 04:09:12 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: feat/ctov-compat-sky-view


📝 Commits (1)

  • 2f3f137 Structures: CTOV's mod-compat hooks and Repurposed's mineshaft sky view carried

📊 Changes

8 files changed (+216 additions, -15 deletions)

View changed files

📝 crates/horizon-port-pack/src/carry.rs (+2 -1)
📝 crates/horizon-port-pack/src/processors.rs (+74 -2)
📝 crates/horizon-world/src/level/feature_world.rs (+3 -0)
📝 crates/horizon-world/src/worldgen/generator_decoration.rs (+13 -0)
📝 crates/horizon-world/src/worldgen/placement/context.rs (+7 -0)
📝 crates/horizon-world/src/worldgen/structure/processor.rs (+7 -0)
📝 crates/horizon-world/src/worldgen/structure/processor/sea_level.rs (+100 -11)
📝 docs/modpacks.md (+10 -1)

📄 Description

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

What

Two kinds of processors that carry dropped are now carried:

  • CTOV's ctov:modular_compat (142 copies, via Lithostitched references): ModularCompatProcessor runs the processor list reference only when mod modid is loaded, else passes the block through. Carry now writes that list in its place when the mod is ported along (Pack.loaded, the same test worldgen modifiers use), and takes the hook out when it is not, which is what the mod does then. In ATM10 all 142 name Nature's Spirit, which the pack doesn't have, so the hooks simply go; CTOV's dropped processors go from 142 to 0.
  • Repurposed Structures' mineshaft_sky_view_processor (71 lists) becomes the game's horizon:mineshaft_sky_view (MineshaftSkyViewProcessor): a plain minecraft:rail whose world block below can occlude is placed, with waterlogged from the world's water at its spot; any other template block at or above the world's OCEAN_FLOOR_WG height in its column is not placed. Placement contexts gain can_occlude(state) (the generator's decoration context from the behaviour flags or block definitions, the live feature world from its flags). Repurposed's dropped processors go from 253 to 182.

Licences: CTOV is CC-BY-NC-ND-4.0 and Repurposed Structures LGPL-3.0-only: nothing of either is in the repo. Carry rewrites the player's own copy of their data locally; the game side is a small processor written from the mods' observed rules.

Why

modpacks-12 brief, step 2.

How tested

  • Re-carry of ctov and repurposed_structures on the ATM10 work folder: ctov:modular_compat 142 dropped → 142 carried; mineshaft_sky_view_processor 71 dropped → 71 carried. The built content root holds 71 horizon:mineshaft_sky_view.
  • Full generation (chunkgen_bench, decorated) of the 144 chunks around Repurposed's birch mineshaft at chunk (-45, -12), seed 1234, and the icy one at (58, -47), seed 2: no feature or structure failure. Block counts are identical before and after there: those two run below the terrain, so the sky view has nothing to cut and every rail keeps its state. Its behaviour is covered by the unit test.
  • Unit tests: modular_compat_runs_its_list_only_with_its_mod, repurposed_waterlogging_follows_the_world (now with the sky view), mineshafts_stop_at_the_ocean_floor_but_keep_grounded_rails.
cargo fmt --all --check                                      ok
cargo clippy --workspace --all-targets -- -D warnings        ok (pipefail)
cargo test -p horizon-port-pack                              55 passed
cargo test -p horizon-world --lib                            153 passed, 1 ignored
tools/parity.py --changed origin/main                        run once on the integration commit of the modpacks-12 PRs

Needs Ludovic

Nothing.

🤖 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/1176 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/22/2026 **Status:** ✅ Merged **Merged:** 10/22/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/ctov-compat-sky-view` --- ### 📝 Commits (1) - [`2f3f137`](https://github.com/horizon-rust/horizon/commit/2f3f1377a399fbc99dbc243dcdcd9e647a4ea1b1) Structures: CTOV's mod-compat hooks and Repurposed's mineshaft sky view carried ### 📊 Changes **8 files changed** (+216 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-port-pack/src/carry.rs` (+2 -1) 📝 `crates/horizon-port-pack/src/processors.rs` (+74 -2) 📝 `crates/horizon-world/src/level/feature_world.rs` (+3 -0) 📝 `crates/horizon-world/src/worldgen/generator_decoration.rs` (+13 -0) 📝 `crates/horizon-world/src/worldgen/placement/context.rs` (+7 -0) 📝 `crates/horizon-world/src/worldgen/structure/processor.rs` (+7 -0) 📝 `crates/horizon-world/src/worldgen/structure/processor/sea_level.rs` (+100 -11) 📝 `docs/modpacks.md` (+10 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What Two kinds of processors that carry dropped are now carried: - **CTOV's `ctov:modular_compat`** (142 copies, via Lithostitched references): ModularCompatProcessor runs the processor list `reference` only when mod `modid` is loaded, else passes the block through. Carry now writes that list in its place when the mod is ported along (`Pack.loaded`, the same test worldgen modifiers use), and takes the hook out when it is not, which is what the mod does then. In ATM10 all 142 name Nature's Spirit, which the pack doesn't have, so the hooks simply go; CTOV's dropped processors go from 142 to 0. - **Repurposed Structures' `mineshaft_sky_view_processor`** (71 lists) becomes the game's `horizon:mineshaft_sky_view` (MineshaftSkyViewProcessor): a plain `minecraft:rail` whose world block below can occlude is placed, with `waterlogged` from the world's water at its spot; any other template block at or above the world's `OCEAN_FLOOR_WG` height in its column is not placed. Placement contexts gain `can_occlude(state)` (the generator's decoration context from the behaviour flags or block definitions, the live feature world from its flags). Repurposed's dropped processors go from 253 to 182. **Licences:** CTOV is CC-BY-NC-ND-4.0 and Repurposed Structures LGPL-3.0-only: nothing of either is in the repo. Carry rewrites the player's own copy of their data locally; the game side is a small processor written from the mods' observed rules. ## Why modpacks-12 brief, step 2. ## How tested - Re-carry of `ctov` and `repurposed_structures` on the ATM10 work folder: `ctov:modular_compat` 142 dropped → 142 carried; `mineshaft_sky_view_processor` 71 dropped → 71 carried. The built content root holds 71 `horizon:mineshaft_sky_view`. - Full generation (`chunkgen_bench`, decorated) of the 144 chunks around Repurposed's birch mineshaft at chunk (-45, -12), seed 1234, and the icy one at (58, -47), seed 2: no feature or structure failure. Block counts are identical before and after there: those two run below the terrain, so the sky view has nothing to cut and every rail keeps its state. Its behaviour is covered by the unit test. - Unit tests: `modular_compat_runs_its_list_only_with_its_mod`, `repurposed_waterlogging_follows_the_world` (now with the sky view), `mineshafts_stop_at_the_ocean_floor_but_keep_grounded_rails`. ``` cargo fmt --all --check ok cargo clippy --workspace --all-targets -- -D warnings ok (pipefail) cargo test -p horizon-port-pack 55 passed cargo test -p horizon-world --lib 153 passed, 1 ignored tools/parity.py --changed origin/main run once on the integration commit of the modpacks-12 PRs ``` ## Needs Ludovic Nothing. 🤖 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-03 04:09:12 +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#3390
No description provided.