[PR #2566] [CLOSED] Add the Large Biomes and Amplified world types #4430

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2566
Author: @Louistuis
Created: 10/26/2026
Status: ❌ Closed

Base: main ← Head: feat/amplified-large-biomes


📝 Commits (1)

  • 6d4341c Add the Large Biomes and Amplified world types

📊 Changes

12 files changed (+274 additions, -36 deletions)

View changed files

📝 crates/horizon-client/src/game/agent.rs (+1 -0)
📝 crates/horizon-client/src/game/dedicated.rs (+5 -2)
📝 crates/horizon-client/src/game/world_loading.rs (+6 -4)
📝 crates/horizon-client/src/save.rs (+52 -4)
📝 crates/horizon-client/src/title/create_world.rs (+34 -6)
📝 crates/horizon-client/src/title/tests.rs (+58 -1)
📝 crates/horizon-client/src/vanillagen.rs (+18 -6)
📝 crates/horizon-client/src/vanillagen/lod.rs (+56 -1)
📝 crates/horizon-world/examples/probe/chunk_dump.rs (+7 -1)
📝 mods/horizon/src/test/java/dev/horizonlab/parity/VanillaChunkGenerationOracle.java (+7 -1)
📝 tools/test_chunk_generation_parity.py (+13 -3)
📝 tools/test_server_world_gen_parity.py (+17 -7)

📄 Description

🤖 Opened by Louis's AI agent (Claude Code), not by Louis personally.

What and why

Fixes #1873. Create World's World Type only offered Default and Superflat.

This adds Large Biomes and Amplified, from choosing them to generating them:

  • Create World. World Type cycles in vanilla's #minecraft:normal order: Default → Superflat → Large Biomes → Amplified. Labels come from the preset id's generator.* language key (WorldTypeEntry.describePreset). Amplified shows its notice (generator.minecraft.amplified.info) as the button's tooltip, as WorldTab does. Customize stays disabled for both, since neither has a PresetEditor.
  • Saving. world_gen_settings stores the preset the way vanilla's world_preset/{large_biomes,amplified}.json define it: the overworld's noise generator gets settings: minecraft:large_biomes / minecraft:amplified, and the biome source and the other dimensions are unchanged.
  • Generating. Reading those settings back hands the preset to the chunk generator and the far-terrain (LOD) generator. Before, both always used minecraft:normal.
  • Dedicated server. level-type accepts large_biomes and amplified. Unknown types still warn and fall back to normal, legacy largebiomes included: vanilla's Identifier.tryParse accepts it before LEGACY_PRESET_NAMES is consulted.
  • Re-Create makes a Default world of any noise world, as vanilla does. CreateWorldScreen.createFromExisting names it normal (WorldPresets.fromSettings), and WorldCreationUiState.updatePresetLists then rebuilds that preset's dimensions. Only presets with an editor (Superflat) keep theirs.

Worlds whose overworld uses any other noise settings, and flat worlds, load and generate exactly as before.

Not in this PR (follow-ups):

  • Single Biome. The last entry of #minecraft:normal; it needs the Customize screen (CreateBuffetWorldScreen). Debug Mode is in vanilla's alternate list (Alt held).
  • Other saved noise settings. Reading a saved overworld still maps only these three presets. A vanilla Single Biome, caves or floating-islands world, or inline custom noise settings, loads as Normal. Passing the saved generator compound straight to the generator would fix that.

Overlap with #2214 (Superflat Customize): flat: bool is kept and the new fields are appended, so the two touch few of the same lines. A trial merge gives one conflict, in create_world.rs's World Type press: keep this cycle and set #2214's flat_settings in its Superflat arm.

Vanilla reference

Read with javap -c and the jar's data on 26.3:

  • CreateWorldScreen$WorldTab (type button, Amplified tooltip, Customize only with a PresetEditor)
  • WorldCreationUiState.setWorldType / updatePresetLists / updateDimensions, CreateWorldScreen.createFromExisting, WorldPresets.fromSettings
  • worldgen/world_preset/{normal,large_biomes,amplified}.json, tag worldgen/world_preset/normal, NoiseGeneratorSettings.LARGE_BIOMES / AMPLIFIED
  • DedicatedServerProperties$WorldDimensionData.create

Harnesses. Both chunk harness runs compare Horizon with vanilla's own generator, 3 sites and 27 chunks each, full generation with features, seed 12345:

Harness Result
test_chunk_generation_parity.py --preset amplified --terrain-only --sites 2 27 chunks across 21 biomes: 0 differing blocks, biome cells or block entities
test_chunk_generation_parity.py --preset large_biomes --terrain-only --sites 2 27 chunks across 20 biomes: 0 differences
test_chunk_generation_parity.py (normal, regression) 0 differences
test_server_world_gen_parity.py (vanilla's dedicated server vs Horizon's) 8 cases, 390 lines identical, including amplified, large-biomes and legacy largebiomes

The chunk harness takes a new --preset. Its runs only cover the overworld, which is the only dimension the presets change, and the preset is in the cached file names. The server harness now also checks that vanilla's output names the preset, so two fallbacks to normal can't pass as a match.

Unit tests:

  • title::tests::create_world_tabs_follow_vanilla_and_their_choices_reach_the_action: the cycle order.
  • title::tests::new_world_generation_settings_round_trip: each preset writes its noise settings and reads back the same, Re-Create gives Normal, and a flat world still reads as Normal.
  • vanillagen::lod::tests::world_presets_shape_the_overworld_terrain (needs prepared data, like the other worldgen tests): mean surface normal 69 vs amplified 91, and Large Biomes changes the biome at 249 of 256 grid points.

Self-check

pr_ready (tools/pr_ready.py --quick --base upstream/main on MrLouis, against upstream/main at a727f617f, 5 min 57 s)

Check Result
Scope ✅ 12 files, +274 −36
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 320 passed (29 s)
rustfmt ✅ (5 s)
clippy ✅ (43 s)
tests: horizon-client, horizon-world ✅ 1579 passed (4 min 1 s)
doc tests ✅ 0 passed (38 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 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/2566 **Author:** [@Louistuis](https://github.com/Louistuis) **Created:** 10/26/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/amplified-large-biomes` --- ### 📝 Commits (1) - [`6d4341c`](https://github.com/horizon-rust/horizon/commit/6d4341c32c5990328f179d307c3ac666429ed528) Add the Large Biomes and Amplified world types ### 📊 Changes **12 files changed** (+274 additions, -36 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/agent.rs` (+1 -0) 📝 `crates/horizon-client/src/game/dedicated.rs` (+5 -2) 📝 `crates/horizon-client/src/game/world_loading.rs` (+6 -4) 📝 `crates/horizon-client/src/save.rs` (+52 -4) 📝 `crates/horizon-client/src/title/create_world.rs` (+34 -6) 📝 `crates/horizon-client/src/title/tests.rs` (+58 -1) 📝 `crates/horizon-client/src/vanillagen.rs` (+18 -6) 📝 `crates/horizon-client/src/vanillagen/lod.rs` (+56 -1) 📝 `crates/horizon-world/examples/probe/chunk_dump.rs` (+7 -1) 📝 `mods/horizon/src/test/java/dev/horizonlab/parity/VanillaChunkGenerationOracle.java` (+7 -1) 📝 `tools/test_chunk_generation_parity.py` (+13 -3) 📝 `tools/test_server_world_gen_parity.py` (+17 -7) </details> ### 📄 Description > 🤖 Opened by Louis's AI agent (Claude Code), not by Louis personally. ## What and why Fixes #1873. Create World's **World Type** only offered Default and Superflat. This adds **Large Biomes** and **Amplified**, from choosing them to generating them: - **Create World.** World Type cycles in vanilla's `#minecraft:normal` order: Default → Superflat → Large Biomes → Amplified. Labels come from the preset id's `generator.*` language key (`WorldTypeEntry.describePreset`). Amplified shows its notice (`generator.minecraft.amplified.info`) as the button's tooltip, as `WorldTab` does. Customize stays disabled for both, since neither has a `PresetEditor`. - **Saving.** `world_gen_settings` stores the preset the way vanilla's `world_preset/{large_biomes,amplified}.json` define it: the overworld's noise generator gets `settings: minecraft:large_biomes` / `minecraft:amplified`, and the biome source and the other dimensions are unchanged. - **Generating.** Reading those settings back hands the preset to the chunk generator *and* the far-terrain (LOD) generator. Before, both always used `minecraft:normal`. - **Dedicated server.** `level-type` accepts `large_biomes` and `amplified`. Unknown types still warn and fall back to normal, legacy `largebiomes` included: vanilla's `Identifier.tryParse` accepts it before `LEGACY_PRESET_NAMES` is consulted. - **Re-Create** makes a Default world of any noise world, as vanilla does. `CreateWorldScreen.createFromExisting` names it `normal` (`WorldPresets.fromSettings`), and `WorldCreationUiState.updatePresetLists` then rebuilds that preset's dimensions. Only presets with an editor (Superflat) keep theirs. Worlds whose overworld uses any other noise settings, and flat worlds, load and generate exactly as before. **Not in this PR** (follow-ups): - **Single Biome.** The last entry of `#minecraft:normal`; it needs the Customize screen (`CreateBuffetWorldScreen`). Debug Mode is in vanilla's alternate list (Alt held). - **Other saved noise settings.** Reading a saved overworld still maps only these three presets. A vanilla Single Biome, caves or floating-islands world, or inline custom noise settings, loads as Normal. Passing the saved `generator` compound straight to the generator would fix that. **Overlap with #2214** (Superflat Customize): `flat: bool` is kept and the new fields are appended, so the two touch few of the same lines. A trial merge gives one conflict, in `create_world.rs`'s World Type press: keep this cycle and set #2214's `flat_settings` in its Superflat arm. ## Vanilla reference Read with `javap -c` and the jar's data on 26.3: - `CreateWorldScreen$WorldTab` (type button, Amplified tooltip, Customize only with a `PresetEditor`) - `WorldCreationUiState.setWorldType` / `updatePresetLists` / `updateDimensions`, `CreateWorldScreen.createFromExisting`, `WorldPresets.fromSettings` - `worldgen/world_preset/{normal,large_biomes,amplified}.json`, tag `worldgen/world_preset/normal`, `NoiseGeneratorSettings.LARGE_BIOMES` / `AMPLIFIED` - `DedicatedServerProperties$WorldDimensionData.create` **Harnesses.** Both chunk harness runs compare Horizon with vanilla's own generator, 3 sites and 27 chunks each, full generation with features, seed 12345: | Harness | Result | | --- | --- | | `test_chunk_generation_parity.py --preset amplified --terrain-only --sites 2` | 27 chunks across 21 biomes: **0** differing blocks, biome cells or block entities | | `test_chunk_generation_parity.py --preset large_biomes --terrain-only --sites 2` | 27 chunks across 20 biomes: **0** differences | | `test_chunk_generation_parity.py` (normal, regression) | **0** differences | | `test_server_world_gen_parity.py` (vanilla's dedicated server vs Horizon's) | 8 cases, 390 lines identical, including `amplified`, `large-biomes` and legacy `largebiomes` | The chunk harness takes a new `--preset`. Its runs only cover the overworld, which is the only dimension the presets change, and the preset is in the cached file names. The server harness now also checks that vanilla's output names the preset, so two fallbacks to normal can't pass as a match. **Unit tests:** - `title::tests::create_world_tabs_follow_vanilla_and_their_choices_reach_the_action`: the cycle order. - `title::tests::new_world_generation_settings_round_trip`: each preset writes its noise settings and reads back the same, Re-Create gives Normal, and a flat world still reads as Normal. - `vanillagen::lod::tests::world_presets_shape_the_overworld_terrain` (needs prepared data, like the other worldgen tests): mean surface normal 69 vs amplified 91, and Large Biomes changes the biome at 249 of 256 grid points. ## Self-check **pr_ready** (`tools/pr_ready.py --quick --base upstream/main` on MrLouis, against upstream/main at a727f617f, 5 min 57 s) | Check | Result | | --- | --- | | Scope | ✅ 12 files, +274 −36 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 320 passed (29 s) | | rustfmt | ✅ (5 s) | | clippy | ✅ (43 s) | | tests: horizon-client, horizon-world | ✅ 1579 passed (4 min 1 s) | | doc tests | ✅ 0 passed (38 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 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-03 04:17:06 +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#4430
No description provided.