[PR #3494] [CLOSED] Pack biomes' particles, music and ambient sounds; commands and docs #5024

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

📋 Pull Request Information

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

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


📝 Commits (10+)

  • d1ef7b4 Worldgen: data packs' entries over the prepared bundles
  • 2566257 Worldgen: the generator loads a world's data packs over the bundles
  • b0e65de Data packs: a world's packs change its world generation
  • 0c63990 Section sets past 32 sections: SectionMask replaces the u32 column masks
  • a849545 Harness: chunks generated with a world's data packs against vanilla
  • 46c62bd LevelShape: each level's shape as one value, and the column its chunks hold
  • a6d8409 Light reads the chunk's column: flood fill, layers and relighting span its sections
  • c2b5547 World, streaming, meshing and the renderer read the level's column
  • fdb4e91 Saves read and write a chunk's own column, and SaveDir takes its level's shape
  • 9e91278 Chunk packets map between the level and the client's column by the level's shape

📊 Changes

123 files changed (+3903 additions, -775 deletions)

View changed files

📝 README.md (+1 -1)
📝 crates/horizon-client/examples/portal_scan_bench.rs (+5 -7)
📝 crates/horizon-client/examples/probe/mob_ai_probe.rs (+2 -2)
📝 crates/horizon-client/src/ambience.rs (+13 -0)
📝 crates/horizon-client/src/animate_tick.rs (+17 -1)
📝 crates/horizon-client/src/arrows.rs (+4 -4)
📝 crates/horizon-client/src/biome.rs (+260 -55)
📝 crates/horizon-client/src/chunk.rs (+356 -20)
📝 crates/horizon-client/src/chunk_map.rs (+3 -0)
📝 crates/horizon-client/src/collisions.rs (+1 -1)
📝 crates/horizon-client/src/datapack.rs (+131 -1)
📝 crates/horizon-client/src/entities/fluids.rs (+3 -3)
📝 crates/horizon-client/src/flatgen.rs (+16 -12)
📝 crates/horizon-client/src/game.rs (+66 -52)
📝 crates/horizon-client/src/game/agent.rs (+3 -2)
📝 crates/horizon-client/src/game/beacon.rs (+2 -2)
📝 crates/horizon-client/src/game/block_entity_anims.rs (+1 -1)
📝 crates/horizon-client/src/game/chat.rs (+15 -2)
📝 crates/horizon-client/src/game/commands.rs (+4 -6)
📝 crates/horizon-client/src/game/commands/execute.rs (+3 -3)

...and 80 more files

📄 Description

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

Builds on #3493 (feat/datapack-biomes-3): until that merges, its commits show here too; this PR's own change is the commit(s) on top.

What and why

Part 4 of 4 of data-pack biomes: what a biome adds besides colours and spawns, and the docs.

  • BiomeInfo keeps a biome's ambient particles (effects.particle) for the animate tick. Music (MusicTables::at) and ambient sounds (AmbientTables::at, minecraft:audio/ambient_sounds) read a pack biome's own file, falling back to the dimension's like vanilla's attribute layers. The built-in biomes keep their tables as before.
  • Commands take the biome names they suggest and accept from the open world's table, its pack biomes included, instead of the built-in biome folder. The biome registry export gives way to them.
  • docs/world-generation.md: how a world's new biomes are built, ordered, sent and saved. The README lists new biomes among what data packs do.

Vanilla reference

None

Self-check

Tests

The existing biome, ambience, music and animate-tick tests (cargo test -p horizon-client --lib -- biome ambience music animate: 20 passed).

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

Check Result
Scope ⚠️ 123 files, +3894 −775; 4286 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 17 s)
rustfmt ✅ (11 s)
clippy ✅ (1 min 34 s)
tests: horizon-client, horizon-protocol, horizon-world ❌ 1127 passed, 1 failed (8 min 51 s)
doc tests ✅ 0 passed (2 min 8 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/datapack-biomes-3) is 8 files, +120 −14, 113 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: feature.

🤖 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/3494 **Author:** [@ThatCakeIsAPie](https://github.com/ThatCakeIsAPie) **Created:** 10/29/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/datapack-biomes-4` --- ### 📝 Commits (10+) - [`d1ef7b4`](https://github.com/horizon-rust/horizon/commit/d1ef7b4fb0f6eb9c642837d9941ef986129b93cc) Worldgen: data packs' entries over the prepared bundles - [`2566257`](https://github.com/horizon-rust/horizon/commit/25662576ff54bf5f4e2600ae0c5a1c588c911cb6) Worldgen: the generator loads a world's data packs over the bundles - [`b0e65de`](https://github.com/horizon-rust/horizon/commit/b0e65dec064bb142152fb6445fb5661aeac59ff0) Data packs: a world's packs change its world generation - [`0c63990`](https://github.com/horizon-rust/horizon/commit/0c639904f160ca8fec160a287e7aaa49156f65a9) Section sets past 32 sections: SectionMask replaces the u32 column masks - [`a849545`](https://github.com/horizon-rust/horizon/commit/a849545f63d0d91f4f7c51b8549f3206bc234149) Harness: chunks generated with a world's data packs against vanilla - [`46c62bd`](https://github.com/horizon-rust/horizon/commit/46c62bdf2a307b633d1ba6ea32b471ec0316c6d9) LevelShape: each level's shape as one value, and the column its chunks hold - [`a6d8409`](https://github.com/horizon-rust/horizon/commit/a6d8409466af6393be67ad2bf3a86b2fe8165906) Light reads the chunk's column: flood fill, layers and relighting span its sections - [`c2b5547`](https://github.com/horizon-rust/horizon/commit/c2b55479f119bb18bcd6fbbef33a1e23b8492086) World, streaming, meshing and the renderer read the level's column - [`fdb4e91`](https://github.com/horizon-rust/horizon/commit/fdb4e917c0be2d9f253883030e3df86a4490e0b6) Saves read and write a chunk's own column, and SaveDir takes its level's shape - [`9e91278`](https://github.com/horizon-rust/horizon/commit/9e912787941669987a711359429e2f0aee4d157c) Chunk packets map between the level and the client's column by the level's shape ### 📊 Changes **123 files changed** (+3903 additions, -775 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -1) 📝 `crates/horizon-client/examples/portal_scan_bench.rs` (+5 -7) 📝 `crates/horizon-client/examples/probe/mob_ai_probe.rs` (+2 -2) 📝 `crates/horizon-client/src/ambience.rs` (+13 -0) 📝 `crates/horizon-client/src/animate_tick.rs` (+17 -1) 📝 `crates/horizon-client/src/arrows.rs` (+4 -4) 📝 `crates/horizon-client/src/biome.rs` (+260 -55) 📝 `crates/horizon-client/src/chunk.rs` (+356 -20) 📝 `crates/horizon-client/src/chunk_map.rs` (+3 -0) 📝 `crates/horizon-client/src/collisions.rs` (+1 -1) 📝 `crates/horizon-client/src/datapack.rs` (+131 -1) 📝 `crates/horizon-client/src/entities/fluids.rs` (+3 -3) 📝 `crates/horizon-client/src/flatgen.rs` (+16 -12) 📝 `crates/horizon-client/src/game.rs` (+66 -52) 📝 `crates/horizon-client/src/game/agent.rs` (+3 -2) 📝 `crates/horizon-client/src/game/beacon.rs` (+2 -2) 📝 `crates/horizon-client/src/game/block_entity_anims.rs` (+1 -1) 📝 `crates/horizon-client/src/game/chat.rs` (+15 -2) 📝 `crates/horizon-client/src/game/commands.rs` (+4 -6) 📝 `crates/horizon-client/src/game/commands/execute.rs` (+3 -3) _...and 80 more files_ </details> ### 📄 Description > 🤖 Opened by ThatCakeIsAPie's AI agent (Claude), not by ThatCakeIsAPie themself. **Builds on #3493 (`feat/datapack-biomes-3`)**: until that merges, its commits show here too; this PR's own change is the commit(s) on top. ## What and why Part 4 of 4 of data-pack biomes: what a biome adds besides colours and spawns, and the docs. - `BiomeInfo` keeps a biome's ambient particles (`effects.particle`) for the animate tick. Music (`MusicTables::at`) and ambient sounds (`AmbientTables::at`, `minecraft:audio/ambient_sounds`) read a pack biome's own file, falling back to the dimension's like vanilla's attribute layers. The built-in biomes keep their tables as before. - Commands take the biome names they suggest and accept from the open world's table, its pack biomes included, instead of the built-in biome folder. The biome registry export gives way to them. - `docs/world-generation.md`: how a world's new biomes are built, ordered, sent and saved. The README lists new biomes among what data packs do. ## Vanilla reference None ## Self-check **Tests** The existing biome, ambience, music and animate-tick tests (`cargo test -p horizon-client --lib -- biome ambience music animate`: 20 passed). **pr_ready** (`tools/pr_ready.py --quick --base upstream/main` on DESKTOP-LT6RAH8, against upstream/main at fe3333f3f, 14 min 9 s) | Check | Result | | --- | --- | | Scope | ⚠️ 123 files, +3894 −775; 4286 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 17 s) | | rustfmt | ✅ (11 s) | | clippy | ✅ (1 min 34 s) | | tests: horizon-client, horizon-protocol, horizon-world | ❌ 1127 passed, 1 failed (8 min 51 s) | | doc tests | ✅ 0 passed (2 min 8 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/datapack-biomes-3`) is 8 files, +120 −14, 113 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: `feature`. 🤖 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:41 +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#5024
No description provided.