[PR #909] [MERGED] Carry: the structure mods' spawner processors, as data the game runs #2904

Closed
opened 2026-11-02 15:59:58 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: feat/carry-spawner-processors


📝 Commits (1)

  • db13bd7 Carry: the structure mods' spawner processors, as data the game runs

📊 Changes

5 files changed (+551 additions, -37 deletions)

View changed files

📝 crates/horizon-port-pack/src/carry.rs (+13 -3)
📝 crates/horizon-port-pack/src/lib.rs (+1 -0)
➕ crates/horizon-port-pack/src/processors.rs (+505 -0)
📝 crates/horizon-port-pack/src/worldgen.rs (+13 -31)
📝 docs/modpacks.md (+19 -3)

📄 Description

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

Merge after #908: an older game refuses horizon:spawner_mobs and would drop the pools that use it.

What

The port step now carries the structure mods' spawner processors as data the game runs, instead of dropping them.

  • Moog's spawner_randomizing_processor becomes horizon:spawner_mobs with its own mob list.
  • Repurposed Structures' spawner_randomizing_processor becomes horizon:spawner_mobs. The mob list comes from the mod's rs_spawners/*.json data, with weight-0 entries left out, plus its repurposed_light spawn rules.
  • Moog's vanilla_loot_swap_processor is removed when its preset in replace_vanilla.json is off (the default), since then it does nothing.
  • YUNG's Better Dungeons and Better Desert Temples spawner processors become vanilla minecraft:rule processors. Each one turns the template's marker block into a spawner with append_static NBT: the mob, the timings and equipment the mod sets. Examples:
    • A wither skeleton in netherite armour with a stone sword, its armour never dropped.
    • A husk with a golden sword, shield and mixed armour.
    • Bone-block skeletons with no bow, as in the mod.

docs/modpacks.md lists what is carried and what is still lost (block processors only now).

Measured (All the Mods 10's carried mods, seed 1234, chunks -64..63, decorated)

before after
Overworld spawners with a mob 628 763
Placeholder pigs (Better Dungeons) 83 0 (zombie 69, skeleton 40, spider 19)
Overworld empty spawners 17 0 (MSS skeleton 3; MVS guardian 9, drowned 5)
Nether spawners with a mob 110 162
Nether empty spawners (MNS) 52 0 (piglin 19, piglin brute 15, blaze 9, wither skeleton 8, ...)
Chests with a loot table 2,777 / 1,405 unchanged
Structure starts / pieces 362 / 22,026 (overworld), 512 / 5,362 (Nether) unchanged
  • Processors carried: 119. All 56 of Repurposed's lists resolved.
  • Processors dropped: 1,427 → 1,308.
  • Chests already carry their loot tables in the templates (9,757 of them), so loot is unchanged. Repurposed's mobs are unchanged too: its templates already match its lists.

Self-check

  • cargo fmt --check: clean
  • cargo clippy --workspace --all-targets -- -D warnings: clean
  • cargo test -p horizon-port-pack: 36 pass, including spawner_processors_become_data and yungs_spawners_become_rules
  • tools/parity.py --changed origin/main: no harness covers horizon-port-pack (0 listed)
  • Vanilla structure-start oracle (seed 1234, chunks -24..23): 35 of 35 match

Nothing here needs Ludovic. Mod jars and their data stay local; nothing from them is in this PR.

🤖 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/909 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/18/2026 **Status:** ✅ Merged **Merged:** 10/18/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/carry-spawner-processors` --- ### 📝 Commits (1) - [`db13bd7`](https://github.com/horizon-rust/horizon/commit/db13bd7df5a0805af298a9083b4506c9f4d46273) Carry: the structure mods' spawner processors, as data the game runs ### 📊 Changes **5 files changed** (+551 additions, -37 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-port-pack/src/carry.rs` (+13 -3) 📝 `crates/horizon-port-pack/src/lib.rs` (+1 -0) ➕ `crates/horizon-port-pack/src/processors.rs` (+505 -0) 📝 `crates/horizon-port-pack/src/worldgen.rs` (+13 -31) 📝 `docs/modpacks.md` (+19 -3) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Merge after #908: an older game refuses `horizon:spawner_mobs` and would drop the pools that use it. ## What The port step now carries the structure mods' spawner processors as data the game runs, instead of dropping them. - **Moog's** `spawner_randomizing_processor` becomes `horizon:spawner_mobs` with its own mob list. - **Repurposed Structures'** `spawner_randomizing_processor` becomes `horizon:spawner_mobs`. The mob list comes from the mod's `rs_spawners/*.json` data, with weight-0 entries left out, plus its `repurposed_light` spawn rules. - **Moog's** `vanilla_loot_swap_processor` is removed when its preset in `replace_vanilla.json` is off (the default), since then it does nothing. - **YUNG's Better Dungeons and Better Desert Temples** spawner processors become vanilla `minecraft:rule` processors. Each one turns the template's marker block into a spawner with `append_static` NBT: the mob, the timings and equipment the mod sets. Examples: - A wither skeleton in netherite armour with a stone sword, its armour never dropped. - A husk with a golden sword, shield and mixed armour. - Bone-block skeletons with no bow, as in the mod. `docs/modpacks.md` lists what is carried and what is still lost (block processors only now). ## Measured (All the Mods 10's carried mods, seed 1234, chunks -64..63, decorated) | | before | after | |---|---|---| | Overworld spawners with a mob | 628 | 763 | | Placeholder pigs (Better Dungeons) | 83 | 0 (zombie 69, skeleton 40, spider 19) | | Overworld empty spawners | 17 | 0 (MSS skeleton 3; MVS guardian 9, drowned 5) | | Nether spawners with a mob | 110 | 162 | | Nether empty spawners (MNS) | 52 | 0 (piglin 19, piglin brute 15, blaze 9, wither skeleton 8, ...) | | Chests with a loot table | 2,777 / 1,405 | unchanged | | Structure starts / pieces | 362 / 22,026 (overworld), 512 / 5,362 (Nether) | unchanged | - Processors carried: 119. All 56 of Repurposed's lists resolved. - Processors dropped: 1,427 → 1,308. - Chests already carry their loot tables in the templates (9,757 of them), so loot is unchanged. Repurposed's mobs are unchanged too: its templates already match its lists. ## Self-check - `cargo fmt --check`: clean - `cargo clippy --workspace --all-targets -- -D warnings`: clean - `cargo test -p horizon-port-pack`: 36 pass, including `spawner_processors_become_data` and `yungs_spawners_become_rules` - `tools/parity.py --changed origin/main`: no harness covers horizon-port-pack (0 listed) - Vanilla structure-start oracle (seed 1234, chunks -24..23): 35 of 35 match Nothing here needs Ludovic. Mod jars and their data stay local; nothing from them is in this PR. 🤖 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-02 15:59:58 +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#2904
No description provided.