[PR #2570] [MERGED] Add the amplified, large-biome and single-biome world types #4435

Closed
opened 2026-11-03 04:17:08 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2570
Author: @levzzz5154
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @ludovic111

Base: main ← Head: fix/world-types


📝 Commits (9)

  • bf05176 Add the amplified, large-biome and single-biome world types
  • d98dc8e Read the test registry without the explicit deref
  • 25b84df Format the world preset test
  • ed01a93 Merge main into fix/world-types
  • 5ea61ed Merge main into world-types
  • e1d8253 Read the flat world's horizon from WorldGen's preset
  • c91ca07 Merge current main and use its preset-aware terrain interface
  • 461a875 Merge main into the branch
  • c7aca84 Merge main into the branch: keep the world icon beside the preset check

📊 Changes

9 files changed (+293 additions, -80 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+2 -1)
📝 crates/horizon-client/src/game/agent.rs (+2 -2)
📝 crates/horizon-client/src/game/dedicated.rs (+20 -23)
📝 crates/horizon-client/src/save.rs (+102 -17)
📝 crates/horizon-client/src/title.rs (+1 -1)
📝 crates/horizon-client/src/title/create_world.rs (+10 -18)
📝 crates/horizon-client/src/title/tests.rs (+95 -13)
📝 crates/horizon-world/src/worldgen/generator.rs (+52 -0)
📝 tools/test_server_world_gen_parity.py (+9 -5)

📄 Description

🤖 Opened by levzzz5154's AI agent (OpenAI Codex), not by levzzz5154 himself.

Add Default, Superflat, Large Biomes, Amplified and Single Biome to the create-world preset cycle. Save the selected preset's generator settings and use them on subsequent loads, including dedicated-server level-type selections and legacy names.

Merged current main and resolved the dedicated-server/world-loading conflicts. Terrain construction now uses main's newer preset-aware interface, avoiding a duplicate preset parameter and retaining its LOD/structure initialization. The previously reported stale WorldGen.flat reader uses WorldPreset::Flat.

Fixes #1873.

Vanilla reference: WorldPresets, WorldPresetTags.NORMAL, WorldCreationUiState, CreateWorldScreen.WorldTab, DedicatedServerProperties.WorldDimensionData, and the pinned worldgen/world_preset definitions. Debug worlds remain outside this PR.

Tests cover the UI cycle, settings round trips, selected generator settings, and dedicated-server settings compared with vanilla.

Focused vanilla proof: python3 tools/test_server_world_gen_parity.py passed all eight cases, with 389 output lines identical. This includes amplified, large-biome and single-biome settings alongside flat, custom flat layers, normal and invalid-input cases.

pr_ready (tools/pr_ready.py --quick --base hr/main on cachyos-x8664, against hr/main at d203ca04b, 8 min 11 s)

Check Result
Scope ✅ 9 files, +293 −80
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 408 passed (31 s)
rustfmt ✅ (11 s)
clippy ✅ (1 min 25 s)
tests: horizon-client, horizon-world ✅ 1058 passed (5 min 17 s)
doc tests ✅ 0 passed (38 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 65 affected, to run in CI (--quick): arrow, attribute_updates, block_removal, block_update, chunk_generation, command_exec, composter, crafter, cursor_death, decorated_region, dedicated_server, dispenser and 53 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Validation used Rust stable 1.99.1 and an isolated Cargo target directory with prepared resources.

🤖 Generated with OpenAI Codex.


🔄 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/2570 **Author:** [@levzzz5154](https://github.com/levzzz5154) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/world-types` --- ### 📝 Commits (9) - [`bf05176`](https://github.com/horizon-rust/horizon/commit/bf051766927a056901701572dc19d87adf33ae50) Add the amplified, large-biome and single-biome world types - [`d98dc8e`](https://github.com/horizon-rust/horizon/commit/d98dc8edc92f476a41037c8b67f0b6f615b54a70) Read the test registry without the explicit deref - [`25b84df`](https://github.com/horizon-rust/horizon/commit/25b84dfc2e4dccebff3edd7f4aa5667eda1fd0e8) Format the world preset test - [`ed01a93`](https://github.com/horizon-rust/horizon/commit/ed01a93df645311c0898839249da1f8a2ac20922) Merge main into fix/world-types - [`5ea61ed`](https://github.com/horizon-rust/horizon/commit/5ea61ed3d8179b734aaf37a977d62460e3383326) Merge main into world-types - [`e1d8253`](https://github.com/horizon-rust/horizon/commit/e1d825312f723ef7f7a0c45e41076763b4418453) Read the flat world's horizon from WorldGen's preset - [`c91ca07`](https://github.com/horizon-rust/horizon/commit/c91ca07115dfe8556c73867eb594a2faf1fe1f0b) Merge current main and use its preset-aware terrain interface - [`461a875`](https://github.com/horizon-rust/horizon/commit/461a8757e3af3a7a3aa20f08a02afd0b0b2a46a6) Merge main into the branch - [`c7aca84`](https://github.com/horizon-rust/horizon/commit/c7aca8489ff0956de67c44f595308ee6533e87fd) Merge main into the branch: keep the world icon beside the preset check ### 📊 Changes **9 files changed** (+293 additions, -80 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+2 -1) 📝 `crates/horizon-client/src/game/agent.rs` (+2 -2) 📝 `crates/horizon-client/src/game/dedicated.rs` (+20 -23) 📝 `crates/horizon-client/src/save.rs` (+102 -17) 📝 `crates/horizon-client/src/title.rs` (+1 -1) 📝 `crates/horizon-client/src/title/create_world.rs` (+10 -18) 📝 `crates/horizon-client/src/title/tests.rs` (+95 -13) 📝 `crates/horizon-world/src/worldgen/generator.rs` (+52 -0) 📝 `tools/test_server_world_gen_parity.py` (+9 -5) </details> ### 📄 Description > 🤖 Opened by levzzz5154's AI agent (OpenAI Codex), not by levzzz5154 himself. Add Default, Superflat, Large Biomes, Amplified and Single Biome to the create-world preset cycle. Save the selected preset's generator settings and use them on subsequent loads, including dedicated-server `level-type` selections and legacy names. Merged current main and resolved the dedicated-server/world-loading conflicts. Terrain construction now uses main's newer preset-aware interface, avoiding a duplicate preset parameter and retaining its LOD/structure initialization. The previously reported stale `WorldGen.flat` reader uses `WorldPreset::Flat`. Fixes #1873. Vanilla reference: `WorldPresets`, `WorldPresetTags.NORMAL`, `WorldCreationUiState`, `CreateWorldScreen.WorldTab`, `DedicatedServerProperties.WorldDimensionData`, and the pinned `worldgen/world_preset` definitions. Debug worlds remain outside this PR. Tests cover the UI cycle, settings round trips, selected generator settings, and dedicated-server settings compared with vanilla. Focused vanilla proof: `python3 tools/test_server_world_gen_parity.py` passed all eight cases, with 389 output lines identical. This includes amplified, large-biome and single-biome settings alongside flat, custom flat layers, normal and invalid-input cases. **pr_ready** (`tools/pr_ready.py --quick --base hr/main` on cachyos-x8664, against hr/main at d203ca04b, 8 min 11 s) | Check | Result | | --- | --- | | Scope | ✅ 9 files, +293 −80 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 408 passed (31 s) | | rustfmt | ✅ (11 s) | | clippy | ✅ (1 min 25 s) | | tests: horizon-client, horizon-world | ✅ 1058 passed (5 min 17 s) | | doc tests | ✅ 0 passed (38 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 65 affected, to run in CI (--quick): arrow, attribute_updates, block_removal, block_update, chunk_generation, command_exec, composter, crafter, cursor_death, decorated_region, dedicated_server, dispenser and 53 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | Validation used Rust stable 1.99.1 and an isolated Cargo target directory with prepared resources. 🤖 Generated with [OpenAI Codex](https://openai.com/codex/). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:17:08 +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#4435
No description provided.