[PR #7393] [MERGED] Parity: a biome data-pack fixture, and the chunk oracle uses a pack's level stem #7574

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7393
Author: @ThatCakeIsAPie
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: feat/biome-fixture-parity


📝 Commits (1)

  • 6a6ef2d Parity: a biome data-pack fixture, and the chunk oracle uses a pack's level stem

📊 Changes

7 files changed (+202 additions, -2 deletions)

View changed files

📝 mods/horizon/src/test/java/dev/horizonlab/parity/VanillaChunkGenerationOracle.java (+13 -1)
➕ tools/fixtures/biome_datapacks/horizon_biome_test/data/horizon_test/worldgen/biome/ember_fields.json (+41 -0)
➕ tools/fixtures/biome_datapacks/horizon_biome_test/data/horizon_test/worldgen/biome/frost_wastes.json (+24 -0)
➕ tools/fixtures/biome_datapacks/horizon_biome_test/data/minecraft/dimension/overworld.json (+72 -0)
➕ tools/fixtures/biome_datapacks/horizon_biome_test/data/minecraft/worldgen/biome/glass_meadow.json (+44 -0)
➕ tools/fixtures/biome_datapacks/horizon_biome_test/pack.mcmeta (+7 -0)
📝 tools/test_datapack_worldgen_parity.py (+1 -1)

📄 Description

🤖 Opened by ThatCakeIsAPie's AI agent (Claude Code, Claude Sonnet 5.5), not by ThatCakeIsAPie personally.

What and why

The follow-up @ludovic111 invited on #4577: the biome data-pack fixture and the oracle change from closed #4682, carried over on their own and adapted to #4577's design. No Rust change. Size: 7 files, +202 −2, almost all of it the fixture.

  • tools/fixtures/biome_datapacks/horizon_biome_test: a pack with three new biomes (one in minecraft: and two in horizon_test:), each with its own colours, spawns, features and climate point, placed by a multi-noise Overworld level stem (dimension/overworld.json).
  • VanillaChunkGenerationOracle: when HORIZON_DATAPACKS is set, a pack's level stem for the dimension replaces the built-in preset's biome source and noise settings, the same as when a world is created with the pack. Before this, the oracle always used vanilla's preset, so a pack's biome list never reached vanilla's side of the comparison.
  • tools/test_datapack_worldgen_parity.py: the comment on HORIZON_PARITY_DATAPACKS lists the new fixture next to tall_datapacks.

Run it with:

HORIZON_PARITY_DATAPACKS=tools/fixtures/biome_datapacks python3 tools/test_datapack_worldgen_parity.py

Pushed on an older base from the fork because the fork can't take upstream's newer workflow commits. It merges into current main cleanly, and the merged tree is the same as the branch the checks below ran on (upstream/main 5914e52b9).

Kind

  • tooling: tools, CI, tests, harnesses

Vanilla reference

net.minecraft.world.level.dimension.LevelStem, NoiseBasedChunkGenerator.getBiomeSource()/generatorSettings() and MultiNoiseBiomeSource from a pack's dimension/<id>.json, loaded with RegistryDataLoader.DIMENSION_REGISTRIES. Harness: tools/test_datapack_worldgen_parity.py.

Other projects' code

none

Self-check

python3 tools/pr_ready.py --quick --base upstream/main on upstream/main 5914e52b9:

Check Result
Scope ✅ 7 files, +202 −2
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 612 passed
rustfmt / clippy / tests / doc tests ➖ no Rust change
content root tests ➖ content root untouched
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label skip-release

Not run here: the parity harness itself and a compile of the Java oracle. This box has no vanilla data in .local/ and no JDK, so CI's parity job is the first real run.

🤖 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/7393 **Author:** [@ThatCakeIsAPie](https://github.com/ThatCakeIsAPie) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/biome-fixture-parity` --- ### 📝 Commits (1) - [`6a6ef2d`](https://github.com/horizon-rust/horizon/commit/6a6ef2de28c36f186b5e519372945f259d5a0f95) Parity: a biome data-pack fixture, and the chunk oracle uses a pack's level stem ### 📊 Changes **7 files changed** (+202 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `mods/horizon/src/test/java/dev/horizonlab/parity/VanillaChunkGenerationOracle.java` (+13 -1) ➕ `tools/fixtures/biome_datapacks/horizon_biome_test/data/horizon_test/worldgen/biome/ember_fields.json` (+41 -0) ➕ `tools/fixtures/biome_datapacks/horizon_biome_test/data/horizon_test/worldgen/biome/frost_wastes.json` (+24 -0) ➕ `tools/fixtures/biome_datapacks/horizon_biome_test/data/minecraft/dimension/overworld.json` (+72 -0) ➕ `tools/fixtures/biome_datapacks/horizon_biome_test/data/minecraft/worldgen/biome/glass_meadow.json` (+44 -0) ➕ `tools/fixtures/biome_datapacks/horizon_biome_test/pack.mcmeta` (+7 -0) 📝 `tools/test_datapack_worldgen_parity.py` (+1 -1) </details> ### 📄 Description > 🤖 Opened by ThatCakeIsAPie's AI agent (Claude Code, Claude Sonnet 5.5), not by ThatCakeIsAPie personally. ## What and why The follow-up @ludovic111 invited on #4577: the biome data-pack fixture and the oracle change from closed #4682, carried over on their own and adapted to #4577's design. No Rust change. Size: 7 files, +202 −2, almost all of it the fixture. - `tools/fixtures/biome_datapacks/horizon_biome_test`: a pack with three new biomes (one in `minecraft:` and two in `horizon_test:`), each with its own colours, spawns, features and climate point, placed by a multi-noise Overworld level stem (`dimension/overworld.json`). - `VanillaChunkGenerationOracle`: when `HORIZON_DATAPACKS` is set, a pack's level stem for the dimension replaces the built-in preset's biome source and noise settings, the same as when a world is created with the pack. Before this, the oracle always used vanilla's preset, so a pack's biome list never reached vanilla's side of the comparison. - `tools/test_datapack_worldgen_parity.py`: the comment on `HORIZON_PARITY_DATAPACKS` lists the new fixture next to `tall_datapacks`. Run it with: ``` HORIZON_PARITY_DATAPACKS=tools/fixtures/biome_datapacks python3 tools/test_datapack_worldgen_parity.py ``` Pushed on an older base from the fork because the fork can't take upstream's newer workflow commits. It merges into current main cleanly, and the merged tree is the same as the branch the checks below ran on (upstream/main 5914e52b9). ## Kind - [x] tooling: tools, CI, tests, harnesses ## Vanilla reference `net.minecraft.world.level.dimension.LevelStem`, `NoiseBasedChunkGenerator.getBiomeSource()`/`generatorSettings()` and `MultiNoiseBiomeSource` from a pack's `dimension/<id>.json`, loaded with `RegistryDataLoader.DIMENSION_REGISTRIES`. Harness: `tools/test_datapack_worldgen_parity.py`. ## Other projects' code none ## Self-check `python3 tools/pr_ready.py --quick --base upstream/main` on upstream/main 5914e52b9: | Check | Result | | --- | --- | | Scope | ✅ 7 files, +202 −2 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 612 passed | | rustfmt / clippy / tests / doc tests | ➖ no Rust change | | content root tests | ➖ content root untouched | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | `skip-release` | Not run here: the parity harness itself and a compile of the Java oracle. This box has no vanilla data in `.local/` and no JDK, so CI's parity job is the first real run. 🤖 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 07:20:07 +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#7574
No description provided.