[PR #932] [MERGED] Structures: Lithostitched's block swaps (Overhauled Village), with the shared properties #2924

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

📋 Pull Request Information

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

Base: main ← Head: feat/lithostitched-block-swap


📝 Commits (8)

  • 96822cd Moog's trial spawners and vaults: the saved state out, the configs in
  • c798597 Better Desert Temples' placeholder blocks: suspicious sand, sherds, swaps
  • 50215b4 Better Dungeons' small dungeons: one or two chests, as the mod caps them
  • a9ad185 Lithostitched's block swaps, with the properties both blocks have
  • 03c423d Merge origin/main into feat/carry-trial-spawners-vaults
  • c3595f1 Merge feat/carry-trial-spawners-vaults (with main) into feat/yung-placeholder-blocks
  • 63044f3 Merge feat/yung-placeholder-blocks (with main) into feat/yung-chest-cap
  • bc54971 Merge feat/yung-chest-cap (with main) into feat/lithostitched-block-swap

📊 Changes

4 files changed (+963 additions, -7 deletions)

View changed files

📝 crates/horizon-port-pack/src/carry.rs (+10 -0)
📝 crates/horizon-port-pack/src/processors.rs (+417 -0)
📝 crates/horizon-world/src/worldgen/structure/processor.rs (+516 -4)
📝 docs/modpacks.md (+20 -3)

📄 Description

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

Stacked on #930 (base feat/yung-chest-cap, which is on #929, which is on #926). The stack touches the same match arms and test ends, so the PRs go in order.

What

ChoiceTheorem's Overhauled Village swaps blocks in its templates through Lithostitched's block_swap processor, in 137 processor lists. Each one is a map from block to block: the new block takes Block.withPropertiesOf(old state), and the block is left alone when the new one is not registered. The carry dropped them.

  • Game: horizon:block_swap uses the same map. The result is the new block's default state with each property of the old state that it has too, matched by name when the value is one of its own. Vanilla matches by Property object, so a 6-way facing going to a 4-way one copies a value the new block allows, where vanilla would keep the default. Test: block_swaps_keep_the_properties_both_blocks_have.
  • Carry: lithostitched:block_swap becomes it. Test: lithostitched_block_swaps_become_the_games.

Measured (All the Mods 10)

  • Processors carried 136 -> 273 of 1,427, dropped 1,291 -> 1,154. This is the largest group of dropped processors.
  • The 137 lists hold 431 swaps. 73 of them target vanilla blocks; the others target Nature's Spirit (378) and Croptopia (85), which the game does not have, so those blocks stay as they are, as in the mod without those mods.
  • chunkgen_bench prints block entities, not block counts, so no in-world count is given here.

Self-check

  • cargo fmt --check: clean
  • cargo clippy -p horizon-world -p horizon-port-pack --all-targets -- -D warnings: clean
  • cargo test -p horizon-port-pack (41), cargo test -p horizon-world --lib structure::processor (8): pass
  • Vanilla data never names horizon:block_swap.

Nothing here needs Ludovic. Mod jars, decompiled code and carried data stay local.

🤖 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/932 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/18/2026 **Status:** ✅ Merged **Merged:** 10/18/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/lithostitched-block-swap` --- ### 📝 Commits (8) - [`96822cd`](https://github.com/horizon-rust/horizon/commit/96822cd5f86063afe759f80c22e0cc66df74150c) Moog's trial spawners and vaults: the saved state out, the configs in - [`c798597`](https://github.com/horizon-rust/horizon/commit/c7985974e79af41a9f827f44c99d5d463c0d9b09) Better Desert Temples' placeholder blocks: suspicious sand, sherds, swaps - [`50215b4`](https://github.com/horizon-rust/horizon/commit/50215b484ac0d53e524fd3ece0a27f810f262995) Better Dungeons' small dungeons: one or two chests, as the mod caps them - [`a9ad185`](https://github.com/horizon-rust/horizon/commit/a9ad185287ca9e369bdb3a02f0da537cf56f0757) Lithostitched's block swaps, with the properties both blocks have - [`03c423d`](https://github.com/horizon-rust/horizon/commit/03c423daacc4494d5b24a4bb8689637e820a28e9) Merge origin/main into feat/carry-trial-spawners-vaults - [`c3595f1`](https://github.com/horizon-rust/horizon/commit/c3595f1a9c38dc1d1dadf91c1c94fc22360f4735) Merge feat/carry-trial-spawners-vaults (with main) into feat/yung-placeholder-blocks - [`63044f3`](https://github.com/horizon-rust/horizon/commit/63044f339c3564664376d0a2d4dc712395a43459) Merge feat/yung-placeholder-blocks (with main) into feat/yung-chest-cap - [`bc54971`](https://github.com/horizon-rust/horizon/commit/bc549713bb019019a1dc6101bc66ed4b27016d3f) Merge feat/yung-chest-cap (with main) into feat/lithostitched-block-swap ### 📊 Changes **4 files changed** (+963 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-port-pack/src/carry.rs` (+10 -0) 📝 `crates/horizon-port-pack/src/processors.rs` (+417 -0) 📝 `crates/horizon-world/src/worldgen/structure/processor.rs` (+516 -4) 📝 `docs/modpacks.md` (+20 -3) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. **Stacked on #930** (base `feat/yung-chest-cap`, which is on #929, which is on #926). The stack touches the same match arms and test ends, so the PRs go in order. ## What ChoiceTheorem's Overhauled Village swaps blocks in its templates through Lithostitched's `block_swap` processor, in 137 processor lists. Each one is a map from block to block: the new block takes `Block.withPropertiesOf(old state)`, and the block is left alone when the new one is not registered. The carry dropped them. - **Game:** `horizon:block_swap` uses the same map. The result is the new block's default state with each property of the old state that it has too, matched by name when the value is one of its own. Vanilla matches by Property object, so a 6-way `facing` going to a 4-way one copies a value the new block allows, where vanilla would keep the default. Test: `block_swaps_keep_the_properties_both_blocks_have`. - **Carry:** `lithostitched:block_swap` becomes it. Test: `lithostitched_block_swaps_become_the_games`. ## Measured (All the Mods 10) - Processors carried 136 -> 273 of 1,427, dropped 1,291 -> 1,154. This is the largest group of dropped processors. - The 137 lists hold 431 swaps. 73 of them target vanilla blocks; the others target Nature's Spirit (378) and Croptopia (85), which the game does not have, so those blocks stay as they are, as in the mod without those mods. - `chunkgen_bench` prints block entities, not block counts, so no in-world count is given here. ## Self-check - `cargo fmt --check`: clean - `cargo clippy -p horizon-world -p horizon-port-pack --all-targets -- -D warnings`: clean - `cargo test -p horizon-port-pack` (41), `cargo test -p horizon-world --lib structure::processor` (8): pass - Vanilla data never names `horizon:block_swap`. Nothing here needs Ludovic. Mod jars, decompiled code and carried data stay local. 🤖 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:09 +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#2924
No description provided.