[PR #3818] [CLOSED] Worldgen: a data pack's block state providers reach the generator #5234

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3818
Author: @AdachiReiYay
Created: 10/29/2026
Status: ❌ Closed

Base: main ← Head: fix/datapack-block-state-providers


📝 Commits (1)

  • b084217 Worldgen: a data pack's block state providers reach the generator

📊 Changes

2 files changed (+10 additions, -3 deletions)

View changed files

📝 crates/horizon-world/src/worldgen/overrides.rs (+7 -1)
📝 docs/world-generation.md (+3 -2)

📄 Description

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

What and why

A follow-up to #3476 (the review there). overrides::KINDS has no worldgen/block_state_provider, so a pack's block state providers never join the state_providers bundle, and every feature that names one is skipped. With William Wythers' Overhauled Overworld 3.0.1 (its wwoo_main data pack) the log says

data pack worldgen: file/wwoo_main: worldgen/block_state_provider: 4 files the generator does not read
7 placed features cannot run and will be skipped

and the pack's stony cliffs are missing (21,474 blocks of dirt where vanilla has stone, in the three areas the review compares).

GeneratorData::load_with already reads state_providers through read_optional_bundle(dir, ov, "state_providers"), so the fix is the one line in KINDS, plus the folder in the unit test and in docs/world-generation.md's list.

Vanilla reference

26.3 reads a pack's worldgen/block_state_provider files with the other worldgen registries: with the same pack on vanilla 26.3 dedicated servers the cliffs generate. With this line (tested at the top of the data pack series, feat/datapack-biomes-4 at 7ef12e4ba, where the table also has dimension_type), all 7 features run and the blocks that differ from vanilla, counting only those two vanilla servers agree on, go from 0.371% to 0.101%; two vanilla servers differ from each other on 0.137%. The review has the method, the per-area table and before/after screenshots of one spot.

Self-check

pr_ready (tools/pr_ready.py --quick on a Windows 10 laptop, against origin/main at 64e298952, 22 min 40 s)

Check Result
Scope ✅ 2 files, +10 −3
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 416 passed (4 min 54 s)
rustfmt ✅ (46 s)
clippy ✅ (12 min 33 s)
tests: horizon-world ✅ 272 passed (4 min 12 s)
doc tests ✅ 0 passed (9 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

The WWOO numbers above come from the series' branch, not from this rebased commit on main; datapack_worldgen's fixture pack has no block state providers, so the harness does not cover this line.

Screenshots

One spot (seed 1234, camera at -561 142 375 looking west-northwest), each world generated the same way by the series' build with WWOO's pack, without and with this line:

Without the fix

wwoo-before-fix

With the fix

wwoo-after-fix

No label: a fix.

🤖 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/3818 **Author:** [@AdachiReiYay](https://github.com/AdachiReiYay) **Created:** 10/29/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/datapack-block-state-providers` --- ### 📝 Commits (1) - [`b084217`](https://github.com/horizon-rust/horizon/commit/b08421756350b8d5205515beeeaff4ba43b7aeba) Worldgen: a data pack's block state providers reach the generator ### 📊 Changes **2 files changed** (+10 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-world/src/worldgen/overrides.rs` (+7 -1) 📝 `docs/world-generation.md` (+3 -2) </details> ### 📄 Description > 🤖 Opened by AdachiReiYay's AI agent (Claude Code, Claude Opus 5.5), not by AdachiReiYay personally. ## What and why A follow-up to #3476 ([the review there](https://github.com/horizon-rust/horizon/pull/3476#issuecomment-6500714049)). `overrides::KINDS` has no `worldgen/block_state_provider`, so a pack's block state providers never join the `state_providers` bundle, and every feature that names one is skipped. With William Wythers' Overhauled Overworld 3.0.1 (its `wwoo_main` data pack) the log says ``` data pack worldgen: file/wwoo_main: worldgen/block_state_provider: 4 files the generator does not read 7 placed features cannot run and will be skipped ``` and the pack's stony cliffs are missing (21,474 blocks of dirt where vanilla has stone, in the three areas the review compares). `GeneratorData::load_with` already reads `state_providers` through `read_optional_bundle(dir, ov, "state_providers")`, so the fix is the one line in `KINDS`, plus the folder in the unit test and in docs/world-generation.md's list. ## Vanilla reference 26.3 reads a pack's `worldgen/block_state_provider` files with the other worldgen registries: with the same pack on vanilla 26.3 dedicated servers the cliffs generate. With this line (tested at the top of the data pack series, `feat/datapack-biomes-4` at 7ef12e4ba, where the table also has `dimension_type`), all 7 features run and the blocks that differ from vanilla, counting only those two vanilla servers agree on, go from 0.371% to 0.101%; two vanilla servers differ from each other on 0.137%. The review has the method, the per-area table and before/after screenshots of one spot. ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on a Windows 10 laptop, against origin/main at 64e298952, 22 min 40 s) | Check | Result | | --- | --- | | Scope | ✅ 2 files, +10 −3 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 416 passed (4 min 54 s) | | rustfmt | ✅ (46 s) | | clippy | ✅ (12 min 33 s) | | tests: horizon-world | ✅ 272 passed (4 min 12 s) | | doc tests | ✅ 0 passed (9 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 | The WWOO numbers above come from the series' branch, not from this rebased commit on main; `datapack_worldgen`'s fixture pack has no block state providers, so the harness does not cover this line. ## Screenshots One spot (seed 1234, camera at -561 142 375 looking west-northwest), each world generated the same way by the series' build with WWOO's pack, without and with this line: **Without the fix** <img width="1920" height="1017" alt="wwoo-before-fix" src="https://github.com/user-attachments/assets/1fc9cbd1-ddbf-4466-a1f5-d95eda7ea27b" /> **With the fix** <img width="1920" height="1017" alt="wwoo-after-fix" src="https://github.com/user-attachments/assets/5a097bdd-2578-465f-9281-b1232809f8a7" /> No label: a fix. 🤖 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:11:09 +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#5234
No description provided.