[PR #910] [MERGED] Start checks: Repurposed's Nether city, Nether shipwreck and End stronghold rules #2905

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

📋 Pull Request Information

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

Base: main ← Head: feat/repurposed-start-checks


📝 Commits (1)

  • f3099e8 Start checks: Repurposed's Nether city, Nether shipwreck and End stronghold rules

📊 Changes

1 file changed (+190 additions, -5 deletions)

View changed files

📝 crates/horizon-world/src/worldgen/structure/start_checks.rs (+190 -5)

📄 Description

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

What

horizon:start_checks gets a repurposed key that names one of three extra start checks from Repurposed Structures. Each of these types is its generic jigsaw plus one extraSpawningChecks override:

  • "city_nether": at the corner of each of the eight chunks around the start, the noise column holds no block (air only) from sea level + 20 up to sea level + 45, capped at the noise's top. The city needs open air over the lava sea.
  • "shipwreck_nether": on a grid of x and z offsets from -16 to 16 (step 8) and heights from 0 to 30 above the start (step 5), no block is both non-air and free of fluid. The ship sits on lava with nothing solid around it.
  • "stronghold_end": land, measured with WORLD_SURFACE_WG, is at least 45 above the bottom at 70 and then 35 blocks north, east, south and west of the chunk corner, and at the corner itself. As the mod does, each sample keeps the lowest height so far, less one.

CheckQueries gains sea_level() and bottom() for these.

Why

Without these checks, carrying these types as plain jigsaws would place a Nether city into the netherrack, a ship inside the terrain, or an End stronghold off the edge of an island. The carry side is #911.

Measured (All the Mods 10's carried mods, seed 1234)

without the checks with them
Nether cities, chunks -320..319 30 2
Nether shipwrecks, chunks -320..319 865 45
End strongholds, chunks 500..1139 × -320..319 (they keep 8,000 blocks from the centre) 43 2

These structures are rare by design: each set has wide spacing and every start has to pass a strict open-space test. Without that test, nearly every candidate chunk generates one.

Nothing else moves. In chunks -64..63 the other Nether and End starts are the same.

Self-check

  • cargo fmt --check: clean
  • cargo clippy --workspace --all-targets -- -D warnings: clean
  • cargo test -p horizon-world structure tests: pass, including repurposed_city_needs_air_above_the_lava_sea_around, repurposed_shipwreck_needs_no_solid_block_around and repurposed_end_stronghold_needs_land_around
  • tools/parity.py --changed origin/main: 298 of 298 harnesses pass, run once on an integration of this PR, the other game PR of this set and origin/main 2b6ae71f (merge commit 234bd101)
  • Vanilla structure-start oracle (seed 1234, chunks -24..23): 35 of 35 match

Nothing here needs Ludovic.

🤖 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/910 **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/repurposed-start-checks` --- ### 📝 Commits (1) - [`f3099e8`](https://github.com/horizon-rust/horizon/commit/f3099e83400977df3b1a4cbaf34d96ef693f0ce0) Start checks: Repurposed's Nether city, Nether shipwreck and End stronghold rules ### 📊 Changes **1 file changed** (+190 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-world/src/worldgen/structure/start_checks.rs` (+190 -5) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What `horizon:start_checks` gets a `repurposed` key that names one of three extra start checks from Repurposed Structures. Each of these types is its generic jigsaw plus one `extraSpawningChecks` override: - `"city_nether"`: at the corner of each of the eight chunks around the start, the noise column holds no block (air only) from sea level + 20 up to sea level + 45, capped at the noise's top. The city needs open air over the lava sea. - `"shipwreck_nether"`: on a grid of x and z offsets from -16 to 16 (step 8) and heights from 0 to 30 above the start (step 5), no block is both non-air and free of fluid. The ship sits on lava with nothing solid around it. - `"stronghold_end"`: land, measured with WORLD_SURFACE_WG, is at least 45 above the bottom at 70 and then 35 blocks north, east, south and west of the chunk corner, and at the corner itself. As the mod does, each sample keeps the lowest height so far, less one. `CheckQueries` gains `sea_level()` and `bottom()` for these. ## Why Without these checks, carrying these types as plain jigsaws would place a Nether city into the netherrack, a ship inside the terrain, or an End stronghold off the edge of an island. The carry side is #911. ## Measured (All the Mods 10's carried mods, seed 1234) | | without the checks | with them | |---|---|---| | Nether cities, chunks -320..319 | 30 | 2 | | Nether shipwrecks, chunks -320..319 | 865 | 45 | | End strongholds, chunks 500..1139 × -320..319 (they keep 8,000 blocks from the centre) | 43 | 2 | These structures are rare by design: each set has wide spacing and every start has to pass a strict open-space test. Without that test, nearly every candidate chunk generates one. Nothing else moves. In chunks -64..63 the other Nether and End starts are the same. ## Self-check - `cargo fmt --check`: clean - `cargo clippy --workspace --all-targets -- -D warnings`: clean - `cargo test -p horizon-world` structure tests: pass, including `repurposed_city_needs_air_above_the_lava_sea_around`, `repurposed_shipwreck_needs_no_solid_block_around` and `repurposed_end_stronghold_needs_land_around` - `tools/parity.py --changed origin/main`: 298 of 298 harnesses pass, run once on an integration of this PR, the other game PR of this set and `origin/main` 2b6ae71f (merge commit 234bd101) - Vanilla structure-start oracle (seed 1234, chunks -24..23): 35 of 35 match Nothing here needs Ludovic. 🤖 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:59 +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#2905
No description provided.