[PR #2698] [MERGED] Worldgen: structure mobs and generation animals as vanilla (carries #2544 and #2586 by FusselTV) #4552

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

📋 Pull Request Information

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

Base: main ← Head: cg20/fusseltv-worldgen-mobs


📝 Commits (10+)

  • 1a80673 Worldgen: structure mobs save the fields vanilla's chunk keeps
  • 52f0e38 Add the amplified, large-biome and single-biome world types
  • 22054ee Worldgen: chunk generation spawns its animals as vanilla, ticking or not
  • 729a224 Read the test registry without the explicit deref
  • 0104eea Format the world preset test
  • 815c09b Merge #2214 (world presets in the create-world screen)
  • bca77d1 Merge origin/main
  • d0b42fb Merge #2570
  • e5ebedd Merge #2585
  • bc5ec6f Structure mobs test: pass the world preset #2570 added to for_dimension

📊 Changes

18 files changed (+377 additions, -109 deletions)

View changed files

📝 crates/horizon-client/examples/probe/finalize_spawn_fixture.rs (+3 -2)
📝 crates/horizon-client/examples/probe/natural_spawn_fixture.rs (+1 -1)
📝 crates/horizon-client/src/entity_nbt.rs (+105 -12)
📝 crates/horizon-client/src/game.rs (+1 -0)
📝 crates/horizon-client/src/game/creatures.rs (+7 -3)
📝 crates/horizon-client/src/game/natural_spawning.rs (+77 -28)
📝 crates/horizon-client/src/mobs/finalize.rs (+10 -5)
📝 crates/horizon-client/src/mobs/frog.rs (+1 -1)
📝 crates/horizon-client/src/mobs/goat.rs (+2 -2)
📝 crates/horizon-client/src/mobs/nautilus.rs (+0 -13)
📝 crates/horizon-client/src/mobs/spawn_selection.rs (+13 -12)
📝 crates/horizon-client/src/mobs/spawner.rs (+9 -1)
📝 crates/horizon-client/src/mobs/trial_spawner.rs (+9 -1)
📝 crates/horizon-client/src/vanillagen.rs (+19 -0)
📝 crates/horizon-client/src/vanillagen/structure_mobs.rs (+89 -16)
📝 crates/horizon-world/src/worldgen/generator.rs (+24 -11)
📝 mods/horizon/src/test/java/dev/horizonlab/parity/VanillaFinalizeSpawnOracle.java (+1 -1)
📝 mods/horizon/src/test/java/dev/horizonlab/parity/VanillaNaturalSpawnOracle.java (+6 -0)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

What and why

This carries @FusselTV's #2544 and #2586 unchanged. Their fork, RoyalPixelsDE, refuses pushes from maintainers, and the two PRs no longer build once they're merged with #2541/#2585 and #2570. All the credit for the work goes to FusselTV; please read #2544 and #2586 for the what and why, the vanilla references and the measurements.

On top of their commits, this branch adds:

  • main merged in;
  • #2570 (world presets) and #2585 merged in, because #2586 conflicts with both;
  • entity_nbt.rs tests: #2585's farm-animal and fox/rabbit/goat tests and #2544's baby-villager test are all kept, as separate tests;
  • vanillagen/structure_mobs.rs test: passes the world preset ("minecraft:normal") that #2570 added to VanillaTerrain::for_dimension.

The diff against main shows #2570 and #2585 until those two land. Once they do, only #2544, #2586 and the two small fixes above remain. When this merges, GitHub marks #2544 and #2586 as merged, because their commits are in it.

Vanilla reference

As in #2544 and #2586: ProtoChunk.addEntity, ChunkStatusTasks.postLoadProtoChunk, NoiseBasedChunkGenerator.spawnOriginalMobs, NaturalSpawner.spawnMobsForChunkGeneration.

Self-check

Checked on the Mac mini, merged with main:

  • cargo clippy -p horizon-client --lib --bins --tests -- -D warnings: clean.
  • cargo fmt --check: clean.
  • cargo test -p horizon-client --lib -- structure_mobs entity_nbt structure_blocks streaming create_world title: 72 passed.
  • Parity: in the contrib-gate union, with the harnesses selected for its files on the Mac mini (see the gate comment).

🤖 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/2698 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `cg20/fusseltv-worldgen-mobs` --- ### 📝 Commits (10+) - [`1a80673`](https://github.com/horizon-rust/horizon/commit/1a80673d50561657398e977cdd4618b1011a5c07) Worldgen: structure mobs save the fields vanilla's chunk keeps - [`52f0e38`](https://github.com/horizon-rust/horizon/commit/52f0e38d4157f13c1547ffebf85cc930bd914d3f) Add the amplified, large-biome and single-biome world types - [`22054ee`](https://github.com/horizon-rust/horizon/commit/22054eee9000528cec04c9c95c4885248f9a8112) Worldgen: chunk generation spawns its animals as vanilla, ticking or not - [`729a224`](https://github.com/horizon-rust/horizon/commit/729a224eefe003cf08f4b8496c6344b8bd992c99) Read the test registry without the explicit deref - [`0104eea`](https://github.com/horizon-rust/horizon/commit/0104eeaf33853c0ac6a3b56f4715c012408cc291) Format the world preset test - [`815c09b`](https://github.com/horizon-rust/horizon/commit/815c09b1f8d3a011b8f93273aa94a2c152c43ac9) Merge #2214 (world presets in the create-world screen) - [`bca77d1`](https://github.com/horizon-rust/horizon/commit/bca77d1ac4af96674a51b828d05e8247b59d4670) Merge origin/main - [`d0b42fb`](https://github.com/horizon-rust/horizon/commit/d0b42fb88e7b94341f13c8f45b09b3e9f5115613) Merge #2570 - [`e5ebedd`](https://github.com/horizon-rust/horizon/commit/e5ebeddb904c71fce6615b3b1c8de9d515a0a5eb) Merge #2585 - [`bc5ec6f`](https://github.com/horizon-rust/horizon/commit/bc5ec6fb462aa524ff26dfbdaf5a9e2e6fb3da17) Structure mobs test: pass the world preset #2570 added to for_dimension ### 📊 Changes **18 files changed** (+377 additions, -109 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/examples/probe/finalize_spawn_fixture.rs` (+3 -2) 📝 `crates/horizon-client/examples/probe/natural_spawn_fixture.rs` (+1 -1) 📝 `crates/horizon-client/src/entity_nbt.rs` (+105 -12) 📝 `crates/horizon-client/src/game.rs` (+1 -0) 📝 `crates/horizon-client/src/game/creatures.rs` (+7 -3) 📝 `crates/horizon-client/src/game/natural_spawning.rs` (+77 -28) 📝 `crates/horizon-client/src/mobs/finalize.rs` (+10 -5) 📝 `crates/horizon-client/src/mobs/frog.rs` (+1 -1) 📝 `crates/horizon-client/src/mobs/goat.rs` (+2 -2) 📝 `crates/horizon-client/src/mobs/nautilus.rs` (+0 -13) 📝 `crates/horizon-client/src/mobs/spawn_selection.rs` (+13 -12) 📝 `crates/horizon-client/src/mobs/spawner.rs` (+9 -1) 📝 `crates/horizon-client/src/mobs/trial_spawner.rs` (+9 -1) 📝 `crates/horizon-client/src/vanillagen.rs` (+19 -0) 📝 `crates/horizon-client/src/vanillagen/structure_mobs.rs` (+89 -16) 📝 `crates/horizon-world/src/worldgen/generator.rs` (+24 -11) 📝 `mods/horizon/src/test/java/dev/horizonlab/parity/VanillaFinalizeSpawnOracle.java` (+1 -1) 📝 `mods/horizon/src/test/java/dev/horizonlab/parity/VanillaNaturalSpawnOracle.java` (+6 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What and why This carries @FusselTV's #2544 and #2586 unchanged. Their fork, RoyalPixelsDE, refuses pushes from maintainers, and the two PRs no longer build once they're merged with #2541/#2585 and #2570. All the credit for the work goes to FusselTV; please read #2544 and #2586 for the what and why, the vanilla references and the measurements. On top of their commits, this branch adds: - main merged in; - #2570 (world presets) and #2585 merged in, because #2586 conflicts with both; - `entity_nbt.rs` tests: #2585's farm-animal and fox/rabbit/goat tests and #2544's baby-villager test are all kept, as separate tests; - `vanillagen/structure_mobs.rs` test: passes the world preset (`"minecraft:normal"`) that #2570 added to `VanillaTerrain::for_dimension`. The diff against main shows #2570 and #2585 until those two land. Once they do, only #2544, #2586 and the two small fixes above remain. When this merges, GitHub marks #2544 and #2586 as merged, because their commits are in it. ## Vanilla reference As in #2544 and #2586: `ProtoChunk.addEntity`, `ChunkStatusTasks.postLoadProtoChunk`, `NoiseBasedChunkGenerator.spawnOriginalMobs`, `NaturalSpawner.spawnMobsForChunkGeneration`. ## Self-check Checked on the Mac mini, merged with main: - `cargo clippy -p horizon-client --lib --bins --tests -- -D warnings`: clean. - `cargo fmt --check`: clean. - `cargo test -p horizon-client --lib -- structure_mobs entity_nbt structure_blocks streaming create_world title`: 72 passed. - Parity: in the contrib-gate union, with the harnesses selected for its files on the Mac mini (see the gate comment). 🤖 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 04:18:00 +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#4552
No description provided.