[PR #851] [MERGED] Carry: Repurposed Structures' and Moog's jigsaws keep their layout rules #2857

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

📋 Pull Request Information

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

Base: main ← Head: feat/carry-piece-limited


📝 Commits (3)

  • 4676ea2 Carry: YUNG's jigsaws and pieces with their rules
  • aab43c4 Carry: YUNG's placements, and the vanilla structures its mods turn off
  • 512962e Carry: Repurposed Structures' and Moog's jigsaws keep their layout rules

📊 Changes

2 files changed (+555 additions, -22 deletions)

View changed files

📝 crates/horizon-port-pack/src/carry.rs (+15 -2)
📝 crates/horizon-port-pack/src/worldgen.rs (+540 -20)

📄 Description

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

Works with #850 (the game reads horizon:piece_limited). Stacked on #847, which is stacked on #840: its first two commits are theirs (they all edit carry's structure upgrade), so merge #840, then #847, first.

What

Repurposed Structures' and Moog's jigsaw structures, the Nether variants too (generic_nether_jigsaw_structure, moogs_structures_generic_nether_jigsaw_structure), become minecraft:jigsaw with a horizon:piece_limited key:

  • library (moogs or repurposed), y_allowance as min_y/max_y, burying_type as burying, cannot_spawn_in_liquid as no_liquid, pools_that_ignore_boundaries as ignore_bounds_pools, and the Nether variants' land_search_direction and ledge_offset_y;
  • each structure's piece counts, read from the mod's rs_pieces_spawn_counts (by each file's target_structure) and msl_pieces_spawn_counts (by file id): required, max, min_depth per template.

use_bounding_box_hack becomes vanilla's use_expansion_hack, which is the same rule. These are no longer counted in rules_lost; vertical_distance_from_start_piece (one Repurposed structure) and enhanced_terrain_adaptation still are. Lithostitched's jigsaw is vanilla's and gets no key.

Measured (ATM10 8.3's carried mods, seed 1234, chunks -64..63, with every PR of this agent)

  • unsupported: the 69 Nether jigsaws (MNS and MVS 55, Repurposed 14) → 0.
  • rules_lost: y_allowance 40, use_bounding_box_hack 26, burying_type 21, pools_that_ignore_boundaries 1 → 0.
  • 321 structures carry the key, 9 with piece counts (Repurposed's cities, fortress, strongholds, pyramid; its mineshafts are a Java type).
  • Starts: Nether 322 → 512 (MNS 0 → 147, Repurposed 0 → 40, MVS 0 → 3). Details in #850.

Self-check

  • cargo fmt --all --check, cargo clippy --workspace --all-targets -- -D warnings: clean
  • cargo test -p horizon-port-pack: passed. New: piece_limited_jigsaws_keep_their_layout (a Nether and a buried jigsaw, lithostitched's left alone, counts from both mods' files). keeps_the_jigsaws_start_rules and maps_library_types_to_vanillas now expect the kept rules.
  • 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/851 **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-piece-limited` --- ### 📝 Commits (3) - [`4676ea2`](https://github.com/horizon-rust/horizon/commit/4676ea2819b89f93c8f73ccd95bdf628f485519f) Carry: YUNG's jigsaws and pieces with their rules - [`aab43c4`](https://github.com/horizon-rust/horizon/commit/aab43c46ae63bed4554dcc8a83e084ff62106b6e) Carry: YUNG's placements, and the vanilla structures its mods turn off - [`512962e`](https://github.com/horizon-rust/horizon/commit/512962e3ca2d4c9d37db3232cdf6a3d28927981c) Carry: Repurposed Structures' and Moog's jigsaws keep their layout rules ### 📊 Changes **2 files changed** (+555 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-port-pack/src/carry.rs` (+15 -2) 📝 `crates/horizon-port-pack/src/worldgen.rs` (+540 -20) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Works with #850 (the game reads `horizon:piece_limited`). Stacked on #847, which is stacked on #840: its first two commits are theirs (they all edit carry's structure upgrade), so merge #840, then #847, first. ## What Repurposed Structures' and Moog's jigsaw structures, the Nether variants too (`generic_nether_jigsaw_structure`, `moogs_structures_generic_nether_jigsaw_structure`), become `minecraft:jigsaw` with a `horizon:piece_limited` key: - `library` (`moogs` or `repurposed`), `y_allowance` as `min_y`/`max_y`, `burying_type` as `burying`, `cannot_spawn_in_liquid` as `no_liquid`, `pools_that_ignore_boundaries` as `ignore_bounds_pools`, and the Nether variants' `land_search_direction` and `ledge_offset_y`; - each structure's **piece counts**, read from the mod's `rs_pieces_spawn_counts` (by each file's `target_structure`) and `msl_pieces_spawn_counts` (by file id): `required`, `max`, `min_depth` per template. `use_bounding_box_hack` becomes vanilla's `use_expansion_hack`, which is the same rule. These are no longer counted in `rules_lost`; `vertical_distance_from_start_piece` (one Repurposed structure) and `enhanced_terrain_adaptation` still are. Lithostitched's jigsaw is vanilla's and gets no key. ## Measured (ATM10 8.3's carried mods, seed 1234, chunks -64..63, with every PR of this agent) - `unsupported`: the 69 Nether jigsaws (MNS and MVS 55, Repurposed 14) → 0. - `rules_lost`: `y_allowance` 40, `use_bounding_box_hack` 26, `burying_type` 21, `pools_that_ignore_boundaries` 1 → 0. - 321 structures carry the key, 9 with piece counts (Repurposed's cities, fortress, strongholds, pyramid; its mineshafts are a Java type). - Starts: Nether 322 → 512 (MNS 0 → 147, Repurposed 0 → 40, MVS 0 → 3). Details in #850. ## Self-check - `cargo fmt --all --check`, `cargo clippy --workspace --all-targets -- -D warnings`: clean - `cargo test -p horizon-port-pack`: passed. New: `piece_limited_jigsaws_keep_their_layout` (a Nether and a buried jigsaw, lithostitched's left alone, counts from both mods' files). `keeps_the_jigsaws_start_rules` and `maps_library_types_to_vanillas` now expect the kept rules. - 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:38 +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#2857
No description provided.