[PR #840] [MERGED] Carry: YUNG's jigsaws and pieces with their rules #2853

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

📋 Pull Request Information

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

Base: main ← Head: feat/carry-yung-jigsaw


📝 Commits (1)

  • 4676ea2 Carry: YUNG's jigsaws and pieces with their rules

📊 Changes

1 file changed (+167 additions, -2 deletions)

View changed files

📝 crates/horizon-port-pack/src/worldgen.rs (+167 -2)

📄 Description

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

Works with #839 (the game reads horizon:yungsapi); independent of it at build time.

What

Carry ports YUNG's API's jigsaw data so the game's YUNG assembler (#839) can build it:

  • Structures: yungsapi:yung_jigsaw becomes minecraft:jigsaw, with its min_y/max_y kept under "horizon:yungsapi". Lost and counted in carry-report.json → rules_lost: enhanced_terrain_adaptation (YUNG's own beard/bury kernels) and a non-zero x_offset_in_chunk/z_offset_in_chunk.
  • Pool elements: yungsapi:yung_single_element becomes minecraft:single_pool_element with its rules under "horizon:yungsapi": name, max_count, min_depth, max_depth, priority, ignore_bounds and condition. Lost and counted: enhanced_terrain_adaptation, deadend_pool and modifiers (YUNG's Java piece modifiers).
  • Conditions keep their tree (not, all_of, any_of, depth, altitude, random_chance, rotation, piece_in_horizontal_direction, yungsapi:all as any piece). mod_loaded is resolved here: true only for minecraft, since the only compat it guards is for mods that are not data-tier. A condition type not known here becomes false and is counted as yungsapi condition <type> (biome and piece_in_range among them).

Measured (ATM10 8.3's carried mods, seed 1234, chunkgen_bench --starts, with #832 #833 #839)

  • Mapped (structures, sets, pools): Better Dungeons 18, Better Fortresses 13, Better Desert Temples 15, Better Jungle Temples 15, Better Ocean Monuments 4, Better Strongholds 4, Better Witch Huts 2.
  • Chunks -64..63: Better Dungeons 0 → 72 starts (2,023 pieces). All starts 289 → 361, pieces 15,267 → 17,290.
  • Chunks -256..255: Better Dungeons 1,722 starts, Better Witch Huts 11, Better Ocean Monuments 7 with #838.
  • Left out, in the reports: YUNG's Java processors (spawners, chests, banners, candles, ore and rot variation: 29 in Better Dungeons alone), so the structures place with their template blocks only. YUNG's placements for desert and jungle temples, strongholds and fortresses (unsupported), and Better Mineshafts' Java structure type.

Self-check

  • cargo fmt --all --check, cargo clippy --workspace --all-targets -- -D warnings: clean
  • cargo test -p horizon-port-pack: 30 passed (32 with #833). New: yungs_jigsaws_keep_their_rules (structure, element rules, a condition tree with an unknown type and mod_loaded, lost keys counted).
  • 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/840 **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-yung-jigsaw` --- ### 📝 Commits (1) - [`4676ea2`](https://github.com/horizon-rust/horizon/commit/4676ea2819b89f93c8f73ccd95bdf628f485519f) Carry: YUNG's jigsaws and pieces with their rules ### 📊 Changes **1 file changed** (+167 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-port-pack/src/worldgen.rs` (+167 -2) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Works with #839 (the game reads `horizon:yungsapi`); independent of it at build time. ## What Carry ports YUNG's API's jigsaw data so the game's YUNG assembler (#839) can build it: - **Structures**: `yungsapi:yung_jigsaw` becomes `minecraft:jigsaw`, with its `min_y`/`max_y` kept under `"horizon:yungsapi"`. Lost and counted in `carry-report.json` → `rules_lost`: `enhanced_terrain_adaptation` (YUNG's own beard/bury kernels) and a non-zero `x_offset_in_chunk`/`z_offset_in_chunk`. - **Pool elements**: `yungsapi:yung_single_element` becomes `minecraft:single_pool_element` with its rules under `"horizon:yungsapi"`: `name`, `max_count`, `min_depth`, `max_depth`, `priority`, `ignore_bounds` and `condition`. Lost and counted: `enhanced_terrain_adaptation`, `deadend_pool` and `modifiers` (YUNG's Java piece modifiers). - **Conditions** keep their tree (`not`, `all_of`, `any_of`, `depth`, `altitude`, `random_chance`, `rotation`, `piece_in_horizontal_direction`, `yungsapi:all` as any piece). `mod_loaded` is resolved here: true only for `minecraft`, since the only compat it guards is for mods that are not data-tier. A condition type not known here becomes `false` and is counted as `yungsapi condition <type>` (`biome` and `piece_in_range` among them). ## Measured (ATM10 8.3's carried mods, seed 1234, `chunkgen_bench --starts`, with #832 #833 #839) - Mapped (structures, sets, pools): Better Dungeons 18, Better Fortresses 13, Better Desert Temples 15, Better Jungle Temples 15, Better Ocean Monuments 4, Better Strongholds 4, Better Witch Huts 2. - Chunks -64..63: Better Dungeons 0 → 72 starts (2,023 pieces). All starts 289 → 361, pieces 15,267 → 17,290. - Chunks -256..255: Better Dungeons 1,722 starts, Better Witch Huts 11, Better Ocean Monuments 7 with #838. - Left out, in the reports: YUNG's Java processors (spawners, chests, banners, candles, ore and rot variation: 29 in Better Dungeons alone), so the structures place with their template blocks only. YUNG's placements for desert and jungle temples, strongholds and fortresses (`unsupported`), and Better Mineshafts' Java structure type. ## Self-check - `cargo fmt --all --check`, `cargo clippy --workspace --all-targets -- -D warnings`: clean - `cargo test -p horizon-port-pack`: 30 passed (32 with #833). New: `yungs_jigsaws_keep_their_rules` (structure, element rules, a condition tree with an unknown type and `mod_loaded`, lost keys counted). - 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:35 +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#2853
No description provided.