[PR #926] [MERGED] Structures: Moog's trial spawners and vaults, without the templates' saved state #2919

Closed
opened 2026-11-02 16:00:06 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: feat/carry-trial-spawners-vaults


📝 Commits (2)

  • 96822cd Moog's trial spawners and vaults: the saved state out, the configs in
  • 03c423d Merge origin/main into feat/carry-trial-spawners-vaults

📊 Changes

4 files changed (+332 additions, -7 deletions)

View changed files

📝 crates/horizon-port-pack/src/carry.rs (+10 -0)
📝 crates/horizon-port-pack/src/processors.rs (+227 -0)
📝 crates/horizon-world/src/worldgen/structure/processor.rs (+86 -4)
📝 docs/modpacks.md (+9 -3)

📄 Description

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

What

Moog's trial spawner and vault randomizing processors (Moog's Nether and Soaring Structures' arenas) keep the block and change its block entity. Until now the carry dropped them, and the templates' saved state stayed in the world: a vault's server_data holds state_updating_resumes_at 533,162,741 ticks away (it never opens), and a trial spawner's spawn_data holds an empty entity (it spawns nothing of its own).

  • Game: a horizon:edit block entity modifier takes remove's keys out, then merges data in. append_static now merges as vanilla's CompoundTag.merge does (compounds present on both sides are merged, anything else replaced); it was a shallow replace. Test: block_entity_edits_merge_deep_and_drop_keys.
  • Carry: each processor becomes vanilla's rule processor, with one rule per block state (12 trial spawner, 32 vault) that writes the same state back, using horizon:edit. The spawner gets its normal and ominous configs by id (26.3 reads them from trial_spawner/, where Moog's puts them). The vault gets its loot table and key, and ominous vaults get the ominous ones. The carry also upgrades the mobs in trial_spawner/ files from 1.21.1's ArmorItems/HandItems to 26.3's equipment and drop_chances. Tests: trial_spawners_and_vaults_drop_their_saved_state, trial_spawner_mobs_take_26_3s_equipment.

Measured (All the Mods 10)

  • Processors carried: 119 -> 125 of 1,427 (Moog's Nether: 2 trial spawner, 2 vault; Moog's Soaring: 1 + 1). Dropped: 1,308 -> 1,302.
  • Moog's Nether large arena, seed 1234, chunk (62, -191), placed with block entities printed. Its 4 vaults hold {config: {key_item: {count: 1, id: "minecraft:trial_key"}, loot_table: "mns:vaults/large_arena/main"}, id: "minecraft:vault"}, and its 4 trial spawners hold {id: "minecraft:trial_spawner", normal_config: "mns:large_arena/normal", ominous_config: "mns:large_arena/ominous"}, with no saved state.

Self-check

  • cargo fmt --check: clean
  • cargo clippy --workspace --all-targets -- -D warnings: clean (on the integration of this agent's six PRs)
  • cargo test -p horizon-port-pack, cargo test -p horizon-world --lib structure: pass
  • The append_static merge change touches vanilla templates. The full --changed origin/main parity set (299 harnesses) runs on the integration of #919, #920, #922, #923, #924 and this PR; the result goes in a comment here.

Stacking

Independent. Its last test sits where #920's does at the end of processors.rs's tests, so whichever merges second has a two-sided conflict there (keep both tests). I'll rebase it once the first one is in.

Nothing here needs Ludovic. Mod jars, decompiled code and carried data stay local.

🤖 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/926 **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-trial-spawners-vaults` --- ### 📝 Commits (2) - [`96822cd`](https://github.com/horizon-rust/horizon/commit/96822cd5f86063afe759f80c22e0cc66df74150c) Moog's trial spawners and vaults: the saved state out, the configs in - [`03c423d`](https://github.com/horizon-rust/horizon/commit/03c423daacc4494d5b24a4bb8689637e820a28e9) Merge origin/main into feat/carry-trial-spawners-vaults ### 📊 Changes **4 files changed** (+332 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-port-pack/src/carry.rs` (+10 -0) 📝 `crates/horizon-port-pack/src/processors.rs` (+227 -0) 📝 `crates/horizon-world/src/worldgen/structure/processor.rs` (+86 -4) 📝 `docs/modpacks.md` (+9 -3) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What Moog's trial spawner and vault randomizing processors (Moog's Nether and Soaring Structures' arenas) keep the block and change its block entity. Until now the carry dropped them, and the templates' saved state stayed in the world: a vault's `server_data` holds `state_updating_resumes_at` 533,162,741 ticks away (it never opens), and a trial spawner's `spawn_data` holds an empty entity (it spawns nothing of its own). - **Game:** a `horizon:edit` block entity modifier takes `remove`'s keys out, then merges `data` in. `append_static` now merges as vanilla's `CompoundTag.merge` does (compounds present on both sides are merged, anything else replaced); it was a shallow replace. Test: `block_entity_edits_merge_deep_and_drop_keys`. - **Carry:** each processor becomes vanilla's `rule` processor, with one rule per block state (12 trial spawner, 32 vault) that writes the same state back, using `horizon:edit`. The spawner gets its normal and ominous configs by id (26.3 reads them from `trial_spawner/`, where Moog's puts them). The vault gets its loot table and key, and ominous vaults get the ominous ones. The carry also upgrades the mobs in `trial_spawner/` files from 1.21.1's `ArmorItems`/`HandItems` to 26.3's `equipment` and `drop_chances`. Tests: `trial_spawners_and_vaults_drop_their_saved_state`, `trial_spawner_mobs_take_26_3s_equipment`. ## Measured (All the Mods 10) - Processors carried: 119 -> 125 of 1,427 (Moog's Nether: 2 trial spawner, 2 vault; Moog's Soaring: 1 + 1). Dropped: 1,308 -> 1,302. - Moog's Nether large arena, seed 1234, chunk (62, -191), placed with block entities printed. Its 4 vaults hold `{config: {key_item: {count: 1, id: "minecraft:trial_key"}, loot_table: "mns:vaults/large_arena/main"}, id: "minecraft:vault"}`, and its 4 trial spawners hold `{id: "minecraft:trial_spawner", normal_config: "mns:large_arena/normal", ominous_config: "mns:large_arena/ominous"}`, with no saved state. ## Self-check - `cargo fmt --check`: clean - `cargo clippy --workspace --all-targets -- -D warnings`: clean (on the integration of this agent's six PRs) - `cargo test -p horizon-port-pack`, `cargo test -p horizon-world --lib structure`: pass - The `append_static` merge change touches vanilla templates. The full `--changed origin/main` parity set (299 harnesses) runs on the integration of #919, #920, #922, #923, #924 and this PR; the result goes in a comment here. ## Stacking Independent. Its last test sits where #920's does at the end of `processors.rs`'s tests, so whichever merges second has a two-sided conflict there (keep both tests). I'll rebase it once the first one is in. Nothing here needs Ludovic. Mod jars, decompiled code and carried data stay local. 🤖 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 16:00:06 +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#2919
No description provided.