[PR #3490] [MERGED] docs/world-height.md, a 2096-high fixture pack, and the tall parity run #5021

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/3490
Author: @ThatCakeIsAPie
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @ludovic111

Base: main ← Head: feat/level-shape-11


📝 Commits (10+)

  • 8e445b4 Merge the data pack worldgen series (feat/datapack-worldgen-4) under the level-shape series
  • 72317bb Worldgen: a level's build range from its dimension type, a data pack's over vanilla's
  • 0a72ffb Each level's shape from the world's dimension types, local and remote
  • 148d592 Uniform sections are shared, and the sky-source scan skips them
  • 83b958a docs/world-height.md, a 2096-high fixture pack, and the tall parity run
  • c3daaa8 Worldgen: data packs' block state providers join the state_providers bundle
  • ab82d71 Merge feat/level-shape-9 into feat/level-shape-10: data packs' block state providers
  • 5983bae Merge feat/level-shape-10 into feat/level-shape-11: data packs' block state providers
  • 3b58497 Merge main (through the carried #3487) into level-shape-9
  • 04cbf91 Merge branch 'pt1-3488' into pt1-3489

📊 Changes

36 files changed (+651 additions, -117 deletions)

View changed files

📝 README.md (+1 -1)
📝 crates/horizon-client-render/src/chunk.rs (+82 -3)
📝 crates/horizon-client-render/src/datapack.rs (+7 -9)
📝 crates/horizon-client-render/src/light.rs (+34 -2)
📝 crates/horizon-client/src/game.rs (+9 -15)
📝 crates/horizon-client/src/game/consume.rs (+3 -3)
📝 crates/horizon-client/src/game/dedicated.rs (+2 -0)
📝 crates/horizon-client/src/game/initial_spawn.rs (+1 -1)
📝 crates/horizon-client/src/game/integrated.rs (+2 -0)
📝 crates/horizon-client/src/game/lan.rs (+2 -0)
📝 crates/horizon-client/src/game/levels.rs (+2 -1)
📝 crates/horizon-client/src/game/minecarts.rs (+1 -1)
📝 crates/horizon-client/src/game/native_world_read.rs (+12 -11)
📝 crates/horizon-client/src/game/remote.rs (+17 -3)
📝 crates/horizon-client/src/game/remote_chunks.rs (+8 -0)
📝 crates/horizon-client/src/game/render_tick.rs (+1 -1)
📝 crates/horizon-client/src/game/world_loading.rs (+52 -5)
📝 crates/horizon-client/src/lan/conn.rs (+1 -1)
📝 crates/horizon-client/src/lan/data.rs (+65 -8)
📝 crates/horizon-client/src/lan/hub.rs (+5 -14)

...and 16 more files

📄 Description

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

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

What and why

Last part of the level-shape series: the check against vanilla at a data pack's height, and the docs.

  • tools/fixtures/tall_datapacks/horizon_tall_test is Horizon's own pack (MIT, pack_format 121). Its Overworld dimension type is min_y -64, height 2096, To The Max's and the highest top vanilla allows, and its noise settings raise peaks past y 1000 (terrain from about y 475 to 1900).
  • VanillaChunkGenerationOracle builds each level at its dimension type's range instead of a fixed -64..320 (the same values for vanilla's types). So HORIZON_PARITY_DATAPACKS=tools/fixtures/tall_datapacks python3 tools/test_datapack_worldgen_parity.py compares Horizon's tall generation with vanilla's.
  • docs/world-height.md covers the model (one LevelShape per level, from its dimension type, read everywhere, no process-wide height), the network path (single player's integrated server sends the changed types), the checks, and what's left (the Nether and End at their own 16 sections; far terrain's camera height). docs/README.md links it, and world-generation.md and the README say a pack's dimension types now apply.

Vanilla reference

None

Self-check

Tests

HORIZON_PARITY_DATAPACKS=tools/fixtures/tall_datapacks python3 tools/test_datapack_worldgen_parity.py (DESKTOP-LT6RAH8, 11 min 49 s):

12345-terrain: 4 chunks with the packs, differing chunks 0 (blocks 0, biome cells 0, block entities 0)
12345-terrain: without the packs Horizon differs from them in 4 of 4 chunks (272477 blocks)
4242-terrain: 4 chunks with the packs, differing chunks 0 (blocks 0, biome cells 0, block entities 0)
4242-terrain: without the packs Horizon differs from them in 4 of 4 chunks (279041 blocks)
12345-full: 4 chunks with the packs, differing chunks 0 (blocks 0, biome cells 0, block entities 0)
12345-full: without the packs Horizon differs from them in 4 of 4 chunks (277554 blocks)
4242-full: 4 chunks with the packs, differing chunks 0 (blocks 0, biome cells 0, block entities 0)
4242-full: without the packs Horizon differs from them in 4 of 4 chunks (283424 blocks)
Data pack worldgen parity passed

The default run (tools/fixtures/datapacks, vanilla heights) passes on this branch too, with the same counts as in the data-pack worldgen series (16 chunks, 0 differences; 1 min 28 s with the probe already built).

In game, single player through the integrated server (the series' tip built with --profile fast, offscreen, scratch HORIZON_HOME, a new creative world with only this fixture pack, driven with horizon-ctl):

  • The player spawns on grass at y 854. 637 chunks stream in with 72,404 meshed sections and 0 chunk decode errors.
  • setblock 0 2020 0 stone and setblock 0 2031 0 glowstone work, and block reads them back. setblock 0 2032 0 answers "That position is out of this world!", as vanilla does at this dimension type's top.
  • The light around the glowstone at y 2031 is 12 to 14, with full sky light. No error in the log.
  • After save, the chunk at 0,0 is saved with yPos -4 and 131 sections.

pr_ready (tools/pr_ready.py --quick --base upstream/main on DESKTOP-LT6RAH8, against upstream/main at fe3333f3f, 13 min 28 s)

Check Result
Scope ⚠️ 109 files, +3050 −652; 3344 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ❌ 408 run, FAILED (failures=1, skipped=2) (1 min 16 s)
rustfmt ✅ (11 s)
clippy ✅ (1 min 48 s)
tests: horizon-client, horizon-protocol, horizon-world ❌ 1124 passed, 1 failed (8 min 2 s)
doc tests ✅ 0 passed (2 min 7 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-10) is 12 files, +200 −5, 117 lines of code.

test_port_publish's test_body_has_names_and_signatures_only fails on upstream main on this Windows machine too (it expects / in a path); CI runs the Python tests on Linux.

save::tests::session_lock_is_exclusive fails on upstream main here too (Windows only).

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/3490 **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/level-shape-11` --- ### 📝 Commits (10+) - [`8e445b4`](https://github.com/horizon-rust/horizon/commit/8e445b4c3d7cb3f01678294d54f47408b8748186) Merge the data pack worldgen series (feat/datapack-worldgen-4) under the level-shape series - [`72317bb`](https://github.com/horizon-rust/horizon/commit/72317bb0c65d0e8486fc539af1a5d8d629ecb84b) Worldgen: a level's build range from its dimension type, a data pack's over vanilla's - [`0a72ffb`](https://github.com/horizon-rust/horizon/commit/0a72ffbf5c4dbf61aa32ca6f0db1ee329bab77b4) Each level's shape from the world's dimension types, local and remote - [`148d592`](https://github.com/horizon-rust/horizon/commit/148d59256761c04a7ed86a9c450b11f002710b92) Uniform sections are shared, and the sky-source scan skips them - [`83b958a`](https://github.com/horizon-rust/horizon/commit/83b958a824c4530fd7973875d18046255f79fe71) docs/world-height.md, a 2096-high fixture pack, and the tall parity run - [`c3daaa8`](https://github.com/horizon-rust/horizon/commit/c3daaa876206b9dfbec7666b1c80f5a5679c31bf) Worldgen: data packs' block state providers join the state_providers bundle - [`ab82d71`](https://github.com/horizon-rust/horizon/commit/ab82d71a960b6a11637f0971968d283dc5e2f2ef) Merge feat/level-shape-9 into feat/level-shape-10: data packs' block state providers - [`5983bae`](https://github.com/horizon-rust/horizon/commit/5983bae947d080084ce9bd01aa87d6b8397f9dc9) Merge feat/level-shape-10 into feat/level-shape-11: data packs' block state providers - [`3b58497`](https://github.com/horizon-rust/horizon/commit/3b584979a895efd0312323a57402c99f41c7982a) Merge main (through the carried #3487) into level-shape-9 - [`04cbf91`](https://github.com/horizon-rust/horizon/commit/04cbf91533be6430823412eeacaee495ff3f8ecb) Merge branch 'pt1-3488' into pt1-3489 ### 📊 Changes **36 files changed** (+651 additions, -117 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -1) 📝 `crates/horizon-client-render/src/chunk.rs` (+82 -3) 📝 `crates/horizon-client-render/src/datapack.rs` (+7 -9) 📝 `crates/horizon-client-render/src/light.rs` (+34 -2) 📝 `crates/horizon-client/src/game.rs` (+9 -15) 📝 `crates/horizon-client/src/game/consume.rs` (+3 -3) 📝 `crates/horizon-client/src/game/dedicated.rs` (+2 -0) 📝 `crates/horizon-client/src/game/initial_spawn.rs` (+1 -1) 📝 `crates/horizon-client/src/game/integrated.rs` (+2 -0) 📝 `crates/horizon-client/src/game/lan.rs` (+2 -0) 📝 `crates/horizon-client/src/game/levels.rs` (+2 -1) 📝 `crates/horizon-client/src/game/minecarts.rs` (+1 -1) 📝 `crates/horizon-client/src/game/native_world_read.rs` (+12 -11) 📝 `crates/horizon-client/src/game/remote.rs` (+17 -3) 📝 `crates/horizon-client/src/game/remote_chunks.rs` (+8 -0) 📝 `crates/horizon-client/src/game/render_tick.rs` (+1 -1) 📝 `crates/horizon-client/src/game/world_loading.rs` (+52 -5) 📝 `crates/horizon-client/src/lan/conn.rs` (+1 -1) 📝 `crates/horizon-client/src/lan/data.rs` (+65 -8) 📝 `crates/horizon-client/src/lan/hub.rs` (+5 -14) _...and 16 more files_ </details> ### 📄 Description > 🤖 Opened by ThatCakeIsAPie's AI agent (Claude), not by ThatCakeIsAPie themself. **Builds on #3489 (`feat/level-shape-10`)**: until that merges, its commits show here too; this PR's own change is the commit(s) on top. ## What and why Last part of the level-shape series: the check against vanilla at a data pack's height, and the docs. - `tools/fixtures/tall_datapacks/horizon_tall_test` is Horizon's own pack (MIT, `pack_format` 121). Its Overworld dimension type is `min_y -64, height 2096`, To The Max's and the highest top vanilla allows, and its noise settings raise peaks past y 1000 (terrain from about y 475 to 1900). - `VanillaChunkGenerationOracle` builds each level at its dimension type's range instead of a fixed `-64..320` (the same values for vanilla's types). So `HORIZON_PARITY_DATAPACKS=tools/fixtures/tall_datapacks python3 tools/test_datapack_worldgen_parity.py` compares Horizon's tall generation with vanilla's. - `docs/world-height.md` covers the model (one `LevelShape` per level, from its dimension type, read everywhere, no process-wide height), the network path (single player's integrated server sends the changed types), the checks, and what's left (the Nether and End at their own 16 sections; far terrain's camera height). `docs/README.md` links it, and `world-generation.md` and the README say a pack's dimension types now apply. ## Vanilla reference None ## Self-check **Tests** `HORIZON_PARITY_DATAPACKS=tools/fixtures/tall_datapacks python3 tools/test_datapack_worldgen_parity.py` (DESKTOP-LT6RAH8, 11 min 49 s): ``` 12345-terrain: 4 chunks with the packs, differing chunks 0 (blocks 0, biome cells 0, block entities 0) 12345-terrain: without the packs Horizon differs from them in 4 of 4 chunks (272477 blocks) 4242-terrain: 4 chunks with the packs, differing chunks 0 (blocks 0, biome cells 0, block entities 0) 4242-terrain: without the packs Horizon differs from them in 4 of 4 chunks (279041 blocks) 12345-full: 4 chunks with the packs, differing chunks 0 (blocks 0, biome cells 0, block entities 0) 12345-full: without the packs Horizon differs from them in 4 of 4 chunks (277554 blocks) 4242-full: 4 chunks with the packs, differing chunks 0 (blocks 0, biome cells 0, block entities 0) 4242-full: without the packs Horizon differs from them in 4 of 4 chunks (283424 blocks) Data pack worldgen parity passed ``` The default run (`tools/fixtures/datapacks`, vanilla heights) passes on this branch too, with the same counts as in the data-pack worldgen series (16 chunks, 0 differences; 1 min 28 s with the probe already built). In game, single player through the integrated server (the series' tip built with `--profile fast`, offscreen, scratch `HORIZON_HOME`, a new creative world with only this fixture pack, driven with `horizon-ctl`): - The player spawns on grass at y 854. 637 chunks stream in with 72,404 meshed sections and 0 chunk decode errors. - `setblock 0 2020 0 stone` and `setblock 0 2031 0 glowstone` work, and `block` reads them back. `setblock 0 2032 0` answers "That position is out of this world!", as vanilla does at this dimension type's top. - The light around the glowstone at y 2031 is 12 to 14, with full sky light. No error in the log. - After `save`, the chunk at 0,0 is saved with `yPos -4` and 131 sections. **pr_ready** (`tools/pr_ready.py --quick --base upstream/main` on DESKTOP-LT6RAH8, against upstream/main at fe3333f3f, 13 min 28 s) | Check | Result | | --- | --- | | Scope | ⚠️ 109 files, +3050 −652; 3344 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ❌ 408 run, FAILED (failures=1, skipped=2) (1 min 16 s) | | rustfmt | ✅ (11 s) | | clippy | ✅ (1 min 48 s) | | tests: horizon-client, horizon-protocol, horizon-world | ❌ 1124 passed, 1 failed (8 min 2 s) | | doc tests | ✅ 0 passed (2 min 7 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-10`) is 12 files, +200 −5, 117 lines of code. `test_port_publish`'s `test_body_has_names_and_signatures_only` fails on upstream main on this Windows machine too (it expects `/` in a path); CI runs the Python tests on Linux. `save::tests::session_lock_is_exclusive` fails on upstream main here too (Windows only). 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#5021
No description provided.