[PR #422] [MERGED] Show trial spawner and vault visuals #2553

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

📋 Pull Request Information

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

Base: main ← Head: feat/trial-visuals


📝 Commits (4)

  • 2567a4a Add the vault's server logic with a parity harness
  • 2c07b5e Wire vaults into the game
  • 3ac3efe Save round-trip: a vault's next state update moves with the clock
  • ed54271 Show trial spawner and vault visuals

📊 Changes

15 files changed (+1982 additions, -43 deletions)

View changed files

📝 crates/horizon-client/examples/natural_spawn_fixture.rs (+201 -2)
📝 crates/horizon-client/src/containers.rs (+9 -0)
📝 crates/horizon-client/src/game.rs (+16 -0)
📝 crates/horizon-client/src/game/spawner.rs (+29 -12)
📝 crates/horizon-client/src/game/trial_spawner.rs (+28 -15)
➕ crates/horizon-client/src/game/trial_visuals.rs (+333 -0)
➕ crates/horizon-client/src/game/vault.rs (+242 -0)
📝 crates/horizon-client/src/lib.rs (+1 -0)
📝 crates/horizon-client/src/mobs/spawner.rs (+15 -10)
📝 crates/horizon-client/src/save.rs (+2 -0)
📝 crates/horizon-client/src/structure_blocks.rs (+3 -0)
➕ crates/horizon-client/src/vault.rs (+771 -0)
📝 mods/horizon/src/test/java/dev/horizonlab/parity/VanillaNaturalSpawnOracle.java (+105 -3)
📝 tools/test_save_roundtrip_parity.py (+2 -1)
➕ tools/test_vault_parity.py (+225 -0)

📄 Description

Part of #223. Stacked on #417 (vaults in the game); retarget to main once it merges.

The client side of trial spawners and vaults, from the 26.3 sources:

  • LevelEventHandler 3011–3021: trial spawner spawn, detect-player, eject and become-ominous particles and sounds, mob and item spawn effects, vault activation (3015) and deactivation (3016).
  • TrialSpawner.tickClient: each state's particles (ParticleEmission), the display mob spinning in the cage (shared with mob spawners' display_pose) and the ambient sound.
  • VaultBlockEntity.Client.tick: idle smoke and flames (soul flames when ominous), the connection particles flying from the keyhole towards a nearby player, the ambient sound.

Every draw comes from the client level's random, as in vanilla.

Verified in game (offscreen, seed 12345 trial chamber): flames and smoke on active and waiting spawners, the display zombie spinning in a waiting trial spawner placed next to a mob spawner, vault display item spinning. No harness: these are client-only effects.

Self-check: fmt, clippy -D warnings, cargo test -p horizon-client (692 lib + integration) pass.

🤖 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/422 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/15/2026 **Status:** ✅ Merged **Merged:** 10/16/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/trial-visuals` --- ### 📝 Commits (4) - [`2567a4a`](https://github.com/horizon-rust/horizon/commit/2567a4a41aaeb13318756d2deba5331d81f61d63) Add the vault's server logic with a parity harness - [`2c07b5e`](https://github.com/horizon-rust/horizon/commit/2c07b5e621805ec33cdc198615be7a25c0a7742f) Wire vaults into the game - [`3ac3efe`](https://github.com/horizon-rust/horizon/commit/3ac3efe749c8d7cba9a1b768d070290a81d33606) Save round-trip: a vault's next state update moves with the clock - [`ed54271`](https://github.com/horizon-rust/horizon/commit/ed5427197f78d0118a81a712d79069d210c3cffd) Show trial spawner and vault visuals ### 📊 Changes **15 files changed** (+1982 additions, -43 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/examples/natural_spawn_fixture.rs` (+201 -2) 📝 `crates/horizon-client/src/containers.rs` (+9 -0) 📝 `crates/horizon-client/src/game.rs` (+16 -0) 📝 `crates/horizon-client/src/game/spawner.rs` (+29 -12) 📝 `crates/horizon-client/src/game/trial_spawner.rs` (+28 -15) ➕ `crates/horizon-client/src/game/trial_visuals.rs` (+333 -0) ➕ `crates/horizon-client/src/game/vault.rs` (+242 -0) 📝 `crates/horizon-client/src/lib.rs` (+1 -0) 📝 `crates/horizon-client/src/mobs/spawner.rs` (+15 -10) 📝 `crates/horizon-client/src/save.rs` (+2 -0) 📝 `crates/horizon-client/src/structure_blocks.rs` (+3 -0) ➕ `crates/horizon-client/src/vault.rs` (+771 -0) 📝 `mods/horizon/src/test/java/dev/horizonlab/parity/VanillaNaturalSpawnOracle.java` (+105 -3) 📝 `tools/test_save_roundtrip_parity.py` (+2 -1) ➕ `tools/test_vault_parity.py` (+225 -0) </details> ### 📄 Description Part of #223. Stacked on #417 (vaults in the game); retarget to `main` once it merges. The client side of trial spawners and vaults, from the 26.3 sources: - `LevelEventHandler` 3011–3021: trial spawner spawn, detect-player, eject and become-ominous particles and sounds, mob and item spawn effects, vault activation (3015) and deactivation (3016). - `TrialSpawner.tickClient`: each state's particles (`ParticleEmission`), the display mob spinning in the cage (shared with mob spawners' `display_pose`) and the ambient sound. - `VaultBlockEntity.Client.tick`: idle smoke and flames (soul flames when ominous), the connection particles flying from the keyhole towards a nearby player, the ambient sound. Every draw comes from the client level's random, as in vanilla. Verified in game (offscreen, seed 12345 trial chamber): flames and smoke on active and waiting spawners, the display zombie spinning in a waiting trial spawner placed next to a mob spawner, vault display item spinning. No harness: these are client-only effects. Self-check: fmt, clippy `-D warnings`, `cargo test -p horizon-client` (692 lib + integration) pass. 🤖 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:57:08 +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#2553
No description provided.