[PR #821] [MERGED] Carry: the start and placement rules of mapped jigsaws #2833

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

📋 Pull Request Information

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

Base: main ← Head: feat/carry-structure-rules


📝 Commits (2)

  • 7d27950 Carry: write worldgen block states in 26.3's shape
  • f72c867 Carry: the start and placement rules of mapped jigsaws

📊 Changes

2 files changed (+365 additions, -17 deletions)

View changed files

📝 crates/horizon-port-pack/src/carry.rs (+3 -1)
📝 crates/horizon-port-pack/src/worldgen.rs (+362 -16)

📄 Description

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

Stacked on #816. The game runs the keys written here once #820 merges; without #820 they are ignored and nothing changes.

What

Carry maps Repurposed Structures' and Moog's jigsaws and advanced random spreads to vanilla's types. Their extra rules were dropped, and one of them changed the spacing: Moog's AdvancedRandomSpread multiplies the file's spacing and separation by 1.65 (its default config adds nothing on top). Now:

  • Start rules move under "horizon:start_checks" (#820): valid_biome_radius_check → biome_radius, terrain_height_radius_check → terrain_radius, allowed_terrain_height_range → terrain_range, y_allowance bounds → min_y/max_y, cannot_spawn_in_liquid → liquid: "top" (Moog's) or "lowest" (Repurposed Structures, which reads the block above the column's bottom).
  • Moog's spacing: 1.65 × spacing and separation, rounded, separation kept below spacing.
  • Placement: min_distance_from_world_origin → horizon:min_distance_from_world_origin; Repurposed Structures' super_exclusion_zone (a structure set tag) → horizon:exclusion_zone with the tag expanded from the jar's tags/worldgen/structure_set/ (nested and optional entries included).
  • Lost, counted by field in carry-report.json (worldgen_types.rules_lost): y_allowance clipping, burying_type, use_bounding_box_hack, pools_that_ignore_boundaries, enhanced_terrain_adaptation, vertical_distance_from_start_piece, Moog's when_replacing, and an exclusion tag the jar does not define.

Measured (ATM10's 42 carried mods, seed 1234, chunks -64..63, with #820)

MVS starts 829 → 90 (294 from the spacing alone, the rest from the start checks: most of its structures may not start in liquid). Vanilla's 150 starts unchanged. Not compared against NeoForge chunk by chunk: the pack runs 1.21.1, whose terrain and biomes differ from 26.3's.

Self-check

  • cargo fmt --all --check, cargo clippy -p horizon-port-pack --all-targets -- -D warnings: clean
  • cargo test -p horizon-port-pack: 28 passed (new: keeps_the_jigsaws_start_rules, super_exclusion_zones_name_their_sets; the Moog's spread test now expects 17/8 for 10/5)
  • No game code here.

Nothing needs Ludovic. 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/821 **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-rules` --- ### 📝 Commits (2) - [`7d27950`](https://github.com/horizon-rust/horizon/commit/7d27950e31983b0b1ac7f59f0b271a4f15028338) Carry: write worldgen block states in 26.3's shape - [`f72c867`](https://github.com/horizon-rust/horizon/commit/f72c8674ad2d2ab616b028f814c9fa07132e2dfe) Carry: the start and placement rules of mapped jigsaws ### 📊 Changes **2 files changed** (+365 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-port-pack/src/carry.rs` (+3 -1) 📝 `crates/horizon-port-pack/src/worldgen.rs` (+362 -16) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Stacked on #816. The game runs the keys written here once #820 merges; without #820 they are ignored and nothing changes. ## What Carry maps Repurposed Structures' and Moog's jigsaws and advanced random spreads to vanilla's types. Their extra rules were dropped, and one of them changed the spacing: Moog's `AdvancedRandomSpread` multiplies the file's spacing and separation by 1.65 (its default config adds nothing on top). Now: - **Start rules** move under `"horizon:start_checks"` (#820): `valid_biome_radius_check` → `biome_radius`, `terrain_height_radius_check` → `terrain_radius`, `allowed_terrain_height_range` → `terrain_range`, `y_allowance` bounds → `min_y`/`max_y`, `cannot_spawn_in_liquid` → `liquid: "top"` (Moog's) or `"lowest"` (Repurposed Structures, which reads the block above the column's bottom). - **Moog's spacing**: 1.65 × spacing and separation, rounded, separation kept below spacing. - **Placement**: `min_distance_from_world_origin` → `horizon:min_distance_from_world_origin`; Repurposed Structures' `super_exclusion_zone` (a structure set tag) → `horizon:exclusion_zone` with the tag expanded from the jar's `tags/worldgen/structure_set/` (nested and optional entries included). - **Lost**, counted by field in `carry-report.json` (`worldgen_types.rules_lost`): `y_allowance` clipping, `burying_type`, `use_bounding_box_hack`, `pools_that_ignore_boundaries`, `enhanced_terrain_adaptation`, `vertical_distance_from_start_piece`, Moog's `when_replacing`, and an exclusion tag the jar does not define. ## Measured (ATM10's 42 carried mods, seed 1234, chunks -64..63, with #820) MVS starts 829 → 90 (294 from the spacing alone, the rest from the start checks: most of its structures may not start in liquid). Vanilla's 150 starts unchanged. Not compared against NeoForge chunk by chunk: the pack runs 1.21.1, whose terrain and biomes differ from 26.3's. ## Self-check - `cargo fmt --all --check`, `cargo clippy -p horizon-port-pack --all-targets -- -D warnings`: clean - `cargo test -p horizon-port-pack`: 28 passed (new: `keeps_the_jigsaws_start_rules`, `super_exclusion_zones_name_their_sets`; the Moog's spread test now expects 17/8 for 10/5) - No game code here. Nothing needs Ludovic. 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:25 +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#2833
No description provided.