[PR #3491] [MERGED] Biomes: a world's data-pack biome files over the built-in table #5020

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3491
Author: @ThatCakeIsAPie
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @ludovic111

Base: main ← Head: feat/datapack-biomes-1


📝 Commits (9)

  • a777134 Biomes: a world's data-pack biome files over the built-in table
  • 6b01498 Merge feat/level-shape-11 into feat/datapack-biomes-1: data packs' block state providers
  • 37f449f Merge branch 'pt1-3490' into pt1-3491
  • a1dc00d Merge branch 'pt1-3490' into pt1-3491
  • 71571ed Merge branch 'pt1-3490' into pt1-3491
  • 3ecec2c Merge branch 'pt1-3490' into pt1-3491
  • 11d1936 Merge branch 'pt1-3490' into pt1-3491
  • 91c77af Merge main into datapack-biomes-1
  • eeb1d37 Merge remote-tracking branch 'origin/main' into pt1-3491

📊 Changes

1 file changed (+242 additions, -68 deletions)

View changed files

📝 crates/horizon-client-render/src/biome.rs (+242 -68)

📄 Description

🤖 Opened by ThatCakeIsAPie's AI agent (Claude), not by ThatCakeIsAPie themself.

Builds on #3490 (feat/level-shape-11): until that merges, its commits show here too; this PR's own change is the commit(s) on top.

What and why

Part 1 of 4 of data-pack biomes. With the data-pack worldgen series, a pack's changes to vanilla's biomes reach generation, but a pack's new biomes are left out: the client's biome table (colours, spawns, precipitation, sounds, the ids saves and packets use) is the built-in one.

This part gives biome::Biomes the table a world needs. No caller yet; part 2 builds it when a world opens.

  • Biomes::with_packs(files): the built-in biomes with a world's pack biome files (id → JSON) over them, as RegistryDataLoader builds the registry. A file for a built-in biome replaces it and keeps its id, and new biomes join after the built-in ones. So the client's ids for vanilla's biomes never move, and it always starts from the built-in table, whatever packs the table had.
  • builtin_only, pack_file (the file a pack gave a biome, for the network) and has_packs.
  • registry_order: vanilla's network order, Identifier order (path, then namespace). So a new minecraft:molten_peaks lands between meadow and mushroom_fields.
  • BiomeInfo::from_json, the parsing the loader already did, now shared by the loader and with_packs. It includes the fields upstream added since (frozen, increased_fire_burnout).

Vanilla reference

None

Self-check

Tests

biome::pack_tests: packs replace in place and add after the built-in biomes (ids, colours, a second pack set starting from the built-in table again). Registry order is path, then namespace.

Run before this branch was rebased from upstream/main 56f968e11 onto fe3333f3f. After the rebase, CI's two clippy commands pass on it again, and pr_ready was re-run at the top of its series (#3494).

pr_ready (tools/pr_ready.py --quick --base upstream/main on DESKTOP-LT6RAH8, against upstream/main at 56f968e11, 14 min 40 s)

Check Result
Scope ⚠️ 110 files, +3280 −733; 3655 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ❌ 398 run, FAILED (failures=2, errors=8, skipped=1) (1 min 13 s)
rustfmt ✅ (11 s)
clippy ✅ (1 min 6 s)
tests: horizon-client, horizon-protocol, horizon-world ❌ 1106 passed, 3 failed (9 min 28 s)
doc tests ✅ 0 passed (2 min 39 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 ➖ 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)

The Scope row counts the whole stack against upstream main; this PR's own part (over feat/level-shape-11) is 1 files, +229 −55, 284 lines of code.

The Python tests fail on upstream main on this Windows machine too, more often there (main 56f968e11: failures=3, errors=13; path separators, symlink privilege). CI runs them on Linux.

crash::tests::stacks_start_at_the_panicking_frame and save::tests::session_lock_is_exclusive fail on upstream main here too (Windows only). gfx::end_sky::tests::separate_draws_match_combined_celestial_pixels (GPU) failed once in the full run and passes alone, as on main.

Suggested label: skip-release.

🤖 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/3491 **Author:** [@ThatCakeIsAPie](https://github.com/ThatCakeIsAPie) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/datapack-biomes-1` --- ### 📝 Commits (9) - [`a777134`](https://github.com/horizon-rust/horizon/commit/a7771347e6910989639a404bb7fc2049a730ea3b) Biomes: a world's data-pack biome files over the built-in table - [`6b01498`](https://github.com/horizon-rust/horizon/commit/6b01498127e99a078cc8e52322a8a7e99ed88093) Merge feat/level-shape-11 into feat/datapack-biomes-1: data packs' block state providers - [`37f449f`](https://github.com/horizon-rust/horizon/commit/37f449f91fad63d577491a4d1118c30c12798cc4) Merge branch 'pt1-3490' into pt1-3491 - [`a1dc00d`](https://github.com/horizon-rust/horizon/commit/a1dc00d4668deccae48284cc5819a535f8626e22) Merge branch 'pt1-3490' into pt1-3491 - [`71571ed`](https://github.com/horizon-rust/horizon/commit/71571ed2cc222f029d2842079b5b687da5038fe7) Merge branch 'pt1-3490' into pt1-3491 - [`3ecec2c`](https://github.com/horizon-rust/horizon/commit/3ecec2ca7b81b8bc0139ca58ed73a64fe6176ed2) Merge branch 'pt1-3490' into pt1-3491 - [`11d1936`](https://github.com/horizon-rust/horizon/commit/11d1936a5e5bcac4b6832b4a7255ef65c4548546) Merge branch 'pt1-3490' into pt1-3491 - [`91c77af`](https://github.com/horizon-rust/horizon/commit/91c77af9aeeb922cb96840de0832192029bfc942) Merge main into datapack-biomes-1 - [`eeb1d37`](https://github.com/horizon-rust/horizon/commit/eeb1d3773dc9d6163644f0b044105b5cebb1338d) Merge remote-tracking branch 'origin/main' into pt1-3491 ### 📊 Changes **1 file changed** (+242 additions, -68 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-render/src/biome.rs` (+242 -68) </details> ### 📄 Description > 🤖 Opened by ThatCakeIsAPie's AI agent (Claude), not by ThatCakeIsAPie themself. **Builds on #3490 (`feat/level-shape-11`)**: until that merges, its commits show here too; this PR's own change is the commit(s) on top. ## What and why Part 1 of 4 of data-pack biomes. With the data-pack worldgen series, a pack's changes to vanilla's biomes reach generation, but a pack's **new** biomes are left out: the client's biome table (colours, spawns, precipitation, sounds, the ids saves and packets use) is the built-in one. This part gives `biome::Biomes` the table a world needs. No caller yet; part 2 builds it when a world opens. - `Biomes::with_packs(files)`: the built-in biomes with a world's pack biome files (id → JSON) over them, as `RegistryDataLoader` builds the registry. A file for a built-in biome replaces it and keeps its id, and new biomes join after the built-in ones. So the client's ids for vanilla's biomes never move, and it always starts from the built-in table, whatever packs the table had. - `builtin_only`, `pack_file` (the file a pack gave a biome, for the network) and `has_packs`. - `registry_order`: vanilla's network order, `Identifier` order (path, then namespace). So a new `minecraft:molten_peaks` lands between `meadow` and `mushroom_fields`. - `BiomeInfo::from_json`, the parsing the loader already did, now shared by the loader and `with_packs`. It includes the fields upstream added since (`frozen`, `increased_fire_burnout`). ## Vanilla reference None ## Self-check **Tests** `biome::pack_tests`: packs replace in place and add after the built-in biomes (ids, colours, a second pack set starting from the built-in table again). Registry order is path, then namespace. Run before this branch was rebased from upstream/main 56f968e11 onto fe3333f3f. After the rebase, CI's two clippy commands pass on it again, and pr_ready was re-run at the top of its series (#3494). **pr_ready** (`tools/pr_ready.py --quick --base upstream/main` on DESKTOP-LT6RAH8, against upstream/main at 56f968e11, 14 min 40 s) | Check | Result | | --- | --- | | Scope | ⚠️ 110 files, +3280 −733; 3655 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ❌ 398 run, FAILED (failures=2, errors=8, skipped=1) (1 min 13 s) | | rustfmt | ✅ (11 s) | | clippy | ✅ (1 min 6 s) | | tests: horizon-client, horizon-protocol, horizon-world | ❌ 1106 passed, 3 failed (9 min 28 s) | | doc tests | ✅ 0 passed (2 min 39 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 | ➖ 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) | The Scope row counts the whole stack against upstream main; this PR's own part (over `feat/level-shape-11`) is 1 files, +229 −55, 284 lines of code. The Python tests fail on upstream main on this Windows machine too, more often there (main 56f968e11: failures=3, errors=13; path separators, symlink privilege). CI runs them on Linux. `crash::tests::stacks_start_at_the_panicking_frame` and `save::tests::session_lock_is_exclusive` fail on upstream main here too (Windows only). `gfx::end_sky::tests::separate_draws_match_combined_celestial_pixels` (GPU) failed once in the full run and passes alone, as on main. Suggested label: `skip-release`. 🤖 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 05:09:40 +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#5020
No description provided.