[PR #920] [MERGED] Carry: Repurposed's rule tests as the game's, and minecraft:chain as iron_chain #2914

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

📋 Pull Request Information

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

Base: main ← Head: feat/carry-rule-tests


📝 Commits (1)

  • 5fcea03 Carry: Repurposed's rule tests as the game's, and the chain as the iron chain

📊 Changes

4 files changed (+169 additions, -3 deletions)

View changed files

📝 crates/horizon-port-pack/src/carry.rs (+56 -2)
📝 crates/horizon-port-pack/src/processors.rs (+97 -0)
📝 crates/horizon-port-pack/src/worldgen.rs (+5 -1)
📝 docs/modpacks.md (+11 -0)

📄 Description

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

What

Two things the carry now changes in mod data, so it loads in 26.3:

  • Rule tests. Repurposed Structures' repurposed_structures:matter_phase_rule_test, piece_origin_axis_aligned_linear_pos_rule_test and y_value_pos_rule_test become the game's horizon: types from #919, with the same fields. 213 rule tests in 75 processor lists. carry-report.json counts them under rule_tests_carried.
  • Renamed ids. 26.3's datafixer renamed minecraft:chain to minecraft:iron_chain (block and item). 1.21.1 data still names the old id, and a block state, rule or recipe naming an unknown block fails to load. The carry renames it in worldgen, recipes and loot tables: 112 files in 5 mods. No other block or item was renamed between 1.21.1 and 26.3.

docs/modpacks.md lists both.

Why

Without them, Repurposed's 5 Nether mineshaft start pools fail to load: their processors name the mod's rule tests, and their blocks name the old chain.

Measured (All the Mods 10's carried mods, seed 1234, chunks -64..63, with #919)

before after
Pools that fail to decode (Nether) 5 0
Nether starts 513 560 (+47 Repurposed mineshafts)

Self-check

  • cargo fmt --check: clean
  • cargo clippy -p horizon-port-pack --all-targets -- -D warnings: clean
  • cargo test -p horizon-port-pack: pass. New: repurposed_rule_tests_become_the_games, renames_ids_vanilla_renamed.
  • Carry-side only: no game harness covers it. The game side is #919.

Merge after #919. 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/920 **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-rule-tests` --- ### 📝 Commits (1) - [`5fcea03`](https://github.com/horizon-rust/horizon/commit/5fcea03fb8c8401d969d3afb294a6c94be90087a) Carry: Repurposed's rule tests as the game's, and the chain as the iron chain ### 📊 Changes **4 files changed** (+169 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-port-pack/src/carry.rs` (+56 -2) 📝 `crates/horizon-port-pack/src/processors.rs` (+97 -0) 📝 `crates/horizon-port-pack/src/worldgen.rs` (+5 -1) 📝 `docs/modpacks.md` (+11 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What Two things the carry now changes in mod data, so it loads in 26.3: - **Rule tests.** Repurposed Structures' `repurposed_structures:matter_phase_rule_test`, `piece_origin_axis_aligned_linear_pos_rule_test` and `y_value_pos_rule_test` become the game's `horizon:` types from #919, with the same fields. 213 rule tests in 75 processor lists. `carry-report.json` counts them under `rule_tests_carried`. - **Renamed ids.** 26.3's datafixer renamed `minecraft:chain` to `minecraft:iron_chain` (block and item). 1.21.1 data still names the old id, and a block state, rule or recipe naming an unknown block fails to load. The carry renames it in worldgen, recipes and loot tables: 112 files in 5 mods. No other block or item was renamed between 1.21.1 and 26.3. `docs/modpacks.md` lists both. ## Why Without them, Repurposed's 5 Nether mineshaft start pools fail to load: their processors name the mod's rule tests, and their blocks name the old chain. ## Measured (All the Mods 10's carried mods, seed 1234, chunks -64..63, with #919) | | before | after | |---|---|---| | Pools that fail to decode (Nether) | 5 | 0 | | Nether starts | 513 | 560 (+47 Repurposed mineshafts) | ## Self-check - `cargo fmt --check`: clean - `cargo clippy -p horizon-port-pack --all-targets -- -D warnings`: clean - `cargo test -p horizon-port-pack`: pass. New: `repurposed_rule_tests_become_the_games`, `renames_ids_vanilla_renamed`. - Carry-side only: no game harness covers it. The game side is #919. Merge after #919. 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:04 +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#2914
No description provided.