[PR #833] [MERGED] Carry: lithostitched set and pool additions, and CTOV's villages #2844

Closed
opened 2026-11-02 15:59:31 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: feat/carry-structure-set-additions


📝 Commits (1)

  • d8f81f7 Carry: lithostitched set and pool additions, and CTOV's villages

📊 Changes

3 files changed (+392 additions, -7 deletions)

View changed files

📝 crates/horizon-port-pack/src/carry.rs (+91 -3)
📝 crates/horizon-port-pack/src/pipeline.rs (+19 -4)
📝 crates/horizon-port-pack/src/worldgen.rs (+282 -0)

📄 Description

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

Works with #832 (the game reads horizon:add_to); independent of it at build time, and inert without it.

What

  • Lithostitched's set and pool additions. add_structure_set_entries and add_template_pool_elements modifiers (data/<id>/lithostitched/worldgen_modifier/*.json) become horizon:add_to files under data/<id>/worldgen/<structure_set|template_pool>/horizon_added/, with the same entries. Pool additions go through the same upgrade as the mod's own pools (26.3 block states, Java processors taken out, library element types mapped).
  • Their load conditions are checked against the mods ported along (carried in this run or before). These are lithostitched's predicate (mod_loaded, not, all_of, any_of, true) and the loader's conditions (NeoForge's mod_loaded/not/and/or/true, else Fabric's). A compat addition for a mod that is not ported would place that mod's blocks, which the game does not have, so it is left out. A condition type not known here does not hold.
  • CTOV's Java-added entries. ChoiceTheorem's Overhauled Village adds its villages and outposts to vanilla's villages and pillager_outposts sets in CTOV.registerstructure. Carry writes them with the mod's default config (ATM10 does not change it): 21 village types in three sizes weighted 10, 4 and 1, and 11 outposts weighted 1. Only structures the jar has are written.
  • carry-report.json → worldgen_types.added_to (entries per set or pool joined) and modifiers_left (by type, or conditions / target for a tag target).

Order: lithostitched appends entries in the order of a Java hash map of every modifier id in the pack, which carry cannot know. CTOV's entries are written in the order the mod registers them. The set picks by weight, so how often each structure starts is the same.

Measured (ATM10 8.3's 42 carried mods, seed 1234, chunks -64..63, chunkgen_bench --starts, with #832)

  • CTOV report: added_to = minecraft:villages 63, minecraft:pillager_outposts 11. modifiers_left = conditions 1,019: all of CTOV's compat jobsites are for mods that are not data-tier (Farmer's Delight, Create, Immersive Engineering...).
  • No other carried mod ships a lithostitched modifier.
  • Starts: CTOV 0 → 7 (645 pieces). Vanilla 150 → 146: the four plains villages in the square are now CTOV villages. All starts 286 → 289, pieces 15,097 → 15,267. No outpost starts in the square, before or after.

Self-check

  • cargo fmt --all --check, cargo clippy --workspace --all-targets -- -D warnings: clean
  • cargo test -p horizon-port-pack: 31 passed. New: modifiers_add_to_sets_and_pools (set and pool additions; NeoForge, Fabric and lithostitched conditions; tag target and other types left out and counted), ctov_joins_vanillas_villages_and_outposts; carried_jar_is_a_content_mod carries a pool addition with a Java processor taken out.
  • No game code here.

Nothing needs Ludovic. The mod jars and their decompiled reference stayed in a local work folder.

🤖 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/833 **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/carry-structure-set-additions` --- ### 📝 Commits (1) - [`d8f81f7`](https://github.com/horizon-rust/horizon/commit/d8f81f7a984874456b1b1f72a84703f9f6176c24) Carry: lithostitched set and pool additions, and CTOV's villages ### 📊 Changes **3 files changed** (+392 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-port-pack/src/carry.rs` (+91 -3) 📝 `crates/horizon-port-pack/src/pipeline.rs` (+19 -4) 📝 `crates/horizon-port-pack/src/worldgen.rs` (+282 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Works with #832 (the game reads `horizon:add_to`); independent of it at build time, and inert without it. ## What - **Lithostitched's set and pool additions.** `add_structure_set_entries` and `add_template_pool_elements` modifiers (`data/<id>/lithostitched/worldgen_modifier/*.json`) become `horizon:add_to` files under `data/<id>/worldgen/<structure_set|template_pool>/horizon_added/`, with the same entries. Pool additions go through the same upgrade as the mod's own pools (26.3 block states, Java processors taken out, library element types mapped). - **Their load conditions** are checked against the mods ported along (carried in this run or before). These are lithostitched's `predicate` (`mod_loaded`, `not`, `all_of`, `any_of`, `true`) and the loader's conditions (NeoForge's `mod_loaded`/`not`/`and`/`or`/`true`, else Fabric's). A compat addition for a mod that is not ported would place that mod's blocks, which the game does not have, so it is left out. A condition type not known here does not hold. - **CTOV's Java-added entries.** ChoiceTheorem's Overhauled Village adds its villages and outposts to vanilla's `villages` and `pillager_outposts` sets in `CTOV.registerstructure`. Carry writes them with the mod's default config (ATM10 does not change it): 21 village types in three sizes weighted 10, 4 and 1, and 11 outposts weighted 1. Only structures the jar has are written. - `carry-report.json` → `worldgen_types.added_to` (entries per set or pool joined) and `modifiers_left` (by type, or `conditions` / `target` for a tag target). Order: lithostitched appends entries in the order of a Java hash map of every modifier id in the pack, which carry cannot know. CTOV's entries are written in the order the mod registers them. The set picks by weight, so how often each structure starts is the same. ## Measured (ATM10 8.3's 42 carried mods, seed 1234, chunks -64..63, `chunkgen_bench --starts`, with #832) - CTOV report: `added_to` = `minecraft:villages` 63, `minecraft:pillager_outposts` 11. `modifiers_left` = `conditions` 1,019: all of CTOV's compat jobsites are for mods that are not data-tier (Farmer's Delight, Create, Immersive Engineering...). - No other carried mod ships a lithostitched modifier. - Starts: CTOV 0 → 7 (645 pieces). Vanilla 150 → 146: the four plains villages in the square are now CTOV villages. All starts 286 → 289, pieces 15,097 → 15,267. No outpost starts in the square, before or after. ## Self-check - `cargo fmt --all --check`, `cargo clippy --workspace --all-targets -- -D warnings`: clean - `cargo test -p horizon-port-pack`: 31 passed. New: `modifiers_add_to_sets_and_pools` (set and pool additions; NeoForge, Fabric and lithostitched conditions; tag target and other types left out and counted), `ctov_joins_vanillas_villages_and_outposts`; `carried_jar_is_a_content_mod` carries a pool addition with a Java processor taken out. - No game code here. Nothing needs Ludovic. The mod jars and their decompiled reference stayed in a local work folder. 🤖 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 15:59:31 +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#2844
No description provided.