[PR #847] [MERGED] Carry: YUNG's placements, and the vanilla structures its mods turn off #2856

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/847
Author: @ludovic111
Created: 10/18/2026
Status: ✅ Merged
Merged: 10/18/2026
Merged by: @ludovic111

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


📝 Commits (2)

  • 4676ea2 Carry: YUNG's jigsaws and pieces with their rules
  • aab43c4 Carry: YUNG's placements, and the vanilla structures its mods turn off

📊 Changes

2 files changed (+330 additions, -6 deletions)

View changed files

📝 crates/horizon-port-pack/src/carry.rs (+12 -2)
📝 crates/horizon-port-pack/src/worldgen.rs (+318 -4)

📄 Description

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

Works with #846 (the game reads the keys). Stacked on #840: its first commit is #840's, so merge #840 first (both edit carry's structure upgrade).

What

  • YUNG's placements become vanilla's random spread with horizon: keys:
    • yungsapi:enhanced_random_spread (Better Fortresses) and the jungle temples' placement: enhanced_exclusion_zone (several sets, by tag) becomes horizon:exclusion_zone. It goes through the same path as Repurposed Structures' super exclusion zone.
    • The desert and jungle temples' placements get horizon:avoid_biomes: rivers and oceans within 48 blocks of the chunk's middle at y 120, every 2 quarts. These are the numbers in their isPlacementChunk.
    • Better Strongholds' placement gets horizon:ring_sections from its chunk_distance_to_first_ring, ring_chunk_thickness and max_ring_section.
  • The vanilla structures YUNG's mods turn off. Each mod's DisableVanilla*Mixin is on by default, and ATM10 doesn't change it. A YUNG's structure whose type the game can start (vanilla's after the upgrade) gets horizon:disables with that vanilla type: desert pyramid, jungle temple, swamp hut, ocean monument, stronghold, fortress. One it can't start, such as Better Mineshafts' Java type, leaves the vanilla structure in place, so the world keeps one of the two.

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

  • unsupported placements: Better Desert Temples, Better Jungle Temples, Better Strongholds and Better Fortresses 1 each → 0.
  • horizon:disables written on 6 structures (desert temple, jungle temple, witch hut, ocean monument, stronghold, fortress).
  • Overworld, chunks -256..255: Better Strongholds 0 → 10 starts, Better Jungle Temples 0 → 5; vanilla strongholds, jungle pyramids, monuments and swamp huts → 0. Nether, chunks -64..63: Better Fortresses 0 → 7, vanilla fortresses 11 → 0. Details in #846.

Self-check

  • cargo fmt --all --check, cargo clippy --workspace --all-targets -- -D warnings: clean
  • cargo test -p horizon-port-pack: 30 passed. New: yungs_placements_keep_their_rules (fortress, desert temple and stronghold placements; disables only for a structure the game starts).
  • Merges cleanly with #833 and #840.
  • 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/847 **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-placements` --- ### 📝 Commits (2) - [`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 ### 📊 Changes **2 files changed** (+330 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-port-pack/src/carry.rs` (+12 -2) 📝 `crates/horizon-port-pack/src/worldgen.rs` (+318 -4) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Works with #846 (the game reads the keys). Stacked on #840: its first commit is #840's, so merge #840 first (both edit carry's structure upgrade). ## What - **YUNG's placements become vanilla's random spread** with `horizon:` keys: - `yungsapi:enhanced_random_spread` (Better Fortresses) and the jungle temples' placement: `enhanced_exclusion_zone` (several sets, by tag) becomes `horizon:exclusion_zone`. It goes through the same path as Repurposed Structures' super exclusion zone. - The desert and jungle temples' placements get `horizon:avoid_biomes`: rivers and oceans within 48 blocks of the chunk's middle at y 120, every 2 quarts. These are the numbers in their `isPlacementChunk`. - Better Strongholds' placement gets `horizon:ring_sections` from its `chunk_distance_to_first_ring`, `ring_chunk_thickness` and `max_ring_section`. - **The vanilla structures YUNG's mods turn off.** Each mod's `DisableVanilla*Mixin` is on by default, and ATM10 doesn't change it. A YUNG's structure whose type the game can start (vanilla's after the upgrade) gets `horizon:disables` with that vanilla type: desert pyramid, jungle temple, swamp hut, ocean monument, stronghold, fortress. One it can't start, such as Better Mineshafts' Java type, leaves the vanilla structure in place, so the world keeps one of the two. ## Measured (ATM10 8.3's carried mods, seed 1234, `chunkgen_bench --starts`, with #832 #833 #838 #839 #840 #846) - `unsupported` placements: Better Desert Temples, Better Jungle Temples, Better Strongholds and Better Fortresses 1 each → 0. - `horizon:disables` written on 6 structures (desert temple, jungle temple, witch hut, ocean monument, stronghold, fortress). - Overworld, chunks -256..255: Better Strongholds 0 → 10 starts, Better Jungle Temples 0 → 5; vanilla strongholds, jungle pyramids, monuments and swamp huts → 0. Nether, chunks -64..63: Better Fortresses 0 → 7, vanilla fortresses 11 → 0. Details in #846. ## Self-check - `cargo fmt --all --check`, `cargo clippy --workspace --all-targets -- -D warnings`: clean - `cargo test -p horizon-port-pack`: 30 passed. New: `yungs_placements_keep_their_rules` (fortress, desert temple and stronghold placements; disables only for a structure the game starts). - Merges cleanly with #833 and #840. - 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#2856
No description provided.