[PR #964] [MERGED] Carry: Lithostitched's apply_random, condition and set_block as the game's #2947

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

📋 Pull Request Information

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

Base: main ← Head: feat/carry-apply-random-condition


📝 Commits (3)

  • 8e095b8 Carry: write Lithostitched's processor references in
  • bb24420 Carry: Lithostitched's apply_random, condition and set_block as the game's
  • 4b28390 docs/modpacks.md: Lithostitched's processors carried, and what they change

📊 Changes

3 files changed (+337 additions, -18 deletions)

View changed files

📝 crates/horizon-port-pack/src/processors.rs (+304 -14)
📝 crates/horizon-port-pack/src/worldgen.rs (+23 -1)
📝 docs/modpacks.md (+10 -3)

📄 Description

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

Stacked on #960 (both rework processors.rs's carry loop); merge that first. The game runs these types in #963.

What

  • lithostitched:apply_random becomes horizon:apply_random: its weighted lists, or its set of lists at weight 1. A tag stays Java.
  • lithostitched:condition becomes horizon:condition when the game runs every test in it, with its then and else lists carried.
  • lithostitched:set_block with a simple or weighted state provider and no block entity change becomes horizon:set_block.
  • The lists inside these processors are carried like any other: references written in, data forms, Java processors dropped and counted (drop_java_processors now looks inside them).
  • docs/modpacks.md: the processor paragraph.

Proof (ATM10's 42 data-tier mods)

  • Lithostitched processors dropped: 130 (with #960: 216, as references bring copies along) → 0. What is left inside them is CTOV's modular_compat, a compat hook for other mods (142 copies).
  • Carried in all: 273 → 704 (copies counted). Dropped: 1,154 → 1,163, the compat hooks above.
  • In the game (#963): a CTOV plains village's farms grow four crops, and 1,655 cobblestone blocks turn into paths, grass, mossy cobblestone and planks.
  • New test lithostitched_random_and_condition_become_the_games: weighted and unweighted lists, an inline list with a reference and a Java processor, a tag left alone, a condition with then and else, and a condition the game can't test.

Self-check

cargo fmt --all --check                                   ok
cargo clippy -p horizon-port-pack --all-targets -- -D warnings   ok
cargo test -p horizon-port-pack                           45 passed

No game code here.

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/964 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/19/2026 **Status:** ✅ Merged **Merged:** 10/19/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/carry-apply-random-condition` --- ### 📝 Commits (3) - [`8e095b8`](https://github.com/horizon-rust/horizon/commit/8e095b88fa9eb2a1036e85702cc1190d55c96dd2) Carry: write Lithostitched's processor references in - [`bb24420`](https://github.com/horizon-rust/horizon/commit/bb24420df222d11517a2a1141b867f7eaff9dc93) Carry: Lithostitched's apply_random, condition and set_block as the game's - [`4b28390`](https://github.com/horizon-rust/horizon/commit/4b28390f720968c11f75ba9bb3efafa3aafde766) docs/modpacks.md: Lithostitched's processors carried, and what they change ### 📊 Changes **3 files changed** (+337 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-port-pack/src/processors.rs` (+304 -14) 📝 `crates/horizon-port-pack/src/worldgen.rs` (+23 -1) 📝 `docs/modpacks.md` (+10 -3) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Stacked on #960 (both rework `processors.rs`'s carry loop); merge that first. The game runs these types in #963. ## What - `lithostitched:apply_random` becomes `horizon:apply_random`: its weighted lists, or its set of lists at weight 1. A tag stays Java. - `lithostitched:condition` becomes `horizon:condition` when the game runs every test in it, with its `then` and `else` lists carried. - `lithostitched:set_block` with a simple or weighted state provider and no block entity change becomes `horizon:set_block`. - The lists inside these processors are carried like any other: references written in, data forms, Java processors dropped and counted (`drop_java_processors` now looks inside them). - docs/modpacks.md: the processor paragraph. ## Proof (ATM10's 42 data-tier mods) - Lithostitched processors dropped: 130 (with #960: 216, as references bring copies along) → 0. What is left inside them is CTOV's `modular_compat`, a compat hook for other mods (142 copies). - Carried in all: 273 → 704 (copies counted). Dropped: 1,154 → 1,163, the compat hooks above. - In the game (#963): a CTOV plains village's farms grow four crops, and 1,655 cobblestone blocks turn into paths, grass, mossy cobblestone and planks. - New test `lithostitched_random_and_condition_become_the_games`: weighted and unweighted lists, an inline list with a reference and a Java processor, a tag left alone, a condition with `then` and `else`, and a condition the game can't test. ## Self-check ``` cargo fmt --all --check ok cargo clippy -p horizon-port-pack --all-targets -- -D warnings ok cargo test -p horizon-port-pack 45 passed ``` No game code here. 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:20 +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#2947
No description provided.