[PR #7835] Load summoned evoker fangs into active simulation #7851

Open
opened 2026-11-03 07:25:25 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7835
Author: @TheMrZZ
Created: 11/2/2026
Status: 🔄 Open

Base: main ← Head: fix/summoned-evoker-fangs


📝 Commits (1)

  • c05506e Load summoned evoker fangs into active simulation

📊 Changes

12 files changed (+210 additions, -11 deletions)

View changed files

📝 crates/horizon-client/src/entity_nbt.rs (+28 -0)
📝 crates/horizon-client/src/game/commands.rs (+19 -1)
📝 crates/horizon-client/src/game/commands/data.rs (+23 -2)
📝 crates/horizon-client/src/game/commands/execute.rs (+6 -0)
📝 crates/horizon-client/src/game/fangs.rs (+21 -3)
📝 crates/horizon-client/src/game/levels.rs (+3 -0)
📝 crates/horizon-client/src/game/mod_api_host.rs (+2 -1)
📝 crates/horizon-client/src/game/native_entities.rs (+1 -0)
📝 crates/horizon-client/src/game/persist.rs (+39 -0)
📝 crates/horizon-client/src/game/scoreboard.rs (+4 -2)
📝 tools/command_exec_corpus.py (+62 -0)
📝 tools/port_map/game2-005.tsv (+2 -2)

📄 Description

🤖 Opened by TheMrZZ's AI agent (Codex, gpt-6.1-sol), not by TheMrZZ personally.

What and why

Fixes #7825. /summon evoker_fangs now loads into the active fang collection rather than the static fallback. Selectors, UUID/tag lookup, NBT access, edits and kill reach that same collection. Saved Warmup comes from the running counter and defaults to zero when absent. Fangs also participate in level swapping, chunk collection and entity-memory cleanup.

The existing ticker supplies the lifetime: initial life 22, Warmup predecrement each tick, life advancing only below zero, removal when life becomes negative. Warmup decrement now wraps like a Java int.

Fresh official Java 26.3 versus native Game execution:

  • Core lifetime cases: absent/0/5/-2 Warmup, initial position and existence/Warmup at ticks 0,1,7,22,23,27,28. Baseline 29/64 → fixed 64/64; missing entities and missing fields remain distinct failures.
  • UUID/tag, Warmup edit/remove, integer-wrap and kill controls: baseline 7/13 → fixed 13/13.
  • Level-switch guards for an already loaded Overworld fang: 3/3 on both builds.
  • Total 39/80 → 80/80. Default/0/-2 expire at tick 23; Warmup 5 expires at 28.

Scope is summoned fang loading, live Warmup and lifetime. Owner, damage, event, sound, rendering and save/reload parity were not measured; the existing owner model only resolves already-loaded mobs, and the ledger retains that gap.

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug: a crash or a breakage
  • perf: faster, or less memory
  • feature: something new for players (listed under New in the release notes)
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

Vanilla reference

Official 26.3 EvokerFangs constructor, readAdditionalSaveData, addAdditionalSaveData and tick: Warmup defaults 0 and is saved as the live integer; life starts 22 and predecrements only once Warmup becomes negative.

Harness: tools/test_command_exec_parity.py --only 'summoned fangs' (three groups, real native Game execution and official Java 26.3). Port map check passes. The ledger reports an EntityReference.store reachability warning: this writer encodes the supplied owner UUID inline rather than calling the mob writer mapped to that method.

Other projects' code

None.

Self-check

pr_ready (tools/pr_ready.py --quick on a local runner, against origin/main at 0bcd2f156, 8 min 19 s)

Check Result
Scope ✅ 12 files, +210 −11 (final scope after fixture tightening)
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 614 passed (1 min 32 s)
rustfmt ✅ (9 s)
clippy ✅ (1 min 0 s)
tests: horizon-client, horizon-client-lib ✅ 2187 passed (5 min 24 s)
doc tests ✅ 0 passed (3 s)
content root tests ➖ content root untouched
mod API up to date ✅ (10 s)
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)

🤖 Generated with Codex.


🔄 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/7835 **Author:** [@TheMrZZ](https://github.com/TheMrZZ) **Created:** 11/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/summoned-evoker-fangs` --- ### 📝 Commits (1) - [`c05506e`](https://github.com/horizon-rust/horizon/commit/c05506e297170c08c8ac4c8921f1548a2cda145c) Load summoned evoker fangs into active simulation ### 📊 Changes **12 files changed** (+210 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/entity_nbt.rs` (+28 -0) 📝 `crates/horizon-client/src/game/commands.rs` (+19 -1) 📝 `crates/horizon-client/src/game/commands/data.rs` (+23 -2) 📝 `crates/horizon-client/src/game/commands/execute.rs` (+6 -0) 📝 `crates/horizon-client/src/game/fangs.rs` (+21 -3) 📝 `crates/horizon-client/src/game/levels.rs` (+3 -0) 📝 `crates/horizon-client/src/game/mod_api_host.rs` (+2 -1) 📝 `crates/horizon-client/src/game/native_entities.rs` (+1 -0) 📝 `crates/horizon-client/src/game/persist.rs` (+39 -0) 📝 `crates/horizon-client/src/game/scoreboard.rs` (+4 -2) 📝 `tools/command_exec_corpus.py` (+62 -0) 📝 `tools/port_map/game2-005.tsv` (+2 -2) </details> ### 📄 Description > 🤖 Opened by TheMrZZ's AI agent (Codex, gpt-6.1-sol), not by TheMrZZ personally. ## What and why Fixes #7825. `/summon evoker_fangs` now loads into the active fang collection rather than the static fallback. Selectors, UUID/tag lookup, NBT access, edits and kill reach that same collection. Saved Warmup comes from the running counter and defaults to zero when absent. Fangs also participate in level swapping, chunk collection and entity-memory cleanup. The existing ticker supplies the lifetime: initial life 22, Warmup predecrement each tick, life advancing only below zero, removal when life becomes negative. Warmup decrement now wraps like a Java int. Fresh official Java 26.3 versus native Game execution: - Core lifetime cases: absent/0/5/-2 Warmup, initial position and existence/Warmup at ticks 0,1,7,22,23,27,28. Baseline **29/64 → fixed 64/64**; missing entities and missing fields remain distinct failures. - UUID/tag, Warmup edit/remove, integer-wrap and kill controls: baseline **7/13 → fixed 13/13**. - Level-switch guards for an already loaded Overworld fang: **3/3** on both builds. - Total **39/80 → 80/80**. Default/0/-2 expire at tick 23; Warmup 5 expires at 28. Scope is summoned fang loading, live Warmup and lifetime. Owner, damage, event, sound, rendering and save/reload parity were not measured; the existing owner model only resolves already-loaded mobs, and the ledger retains that gap. ## Kind - [x] parity: Horizon now does what vanilla 26.3 does - [ ] bug: a crash or a breakage - [ ] perf: faster, or less memory - [ ] feature: something new for players (listed under New in the release notes) - [ ] extra: Horizon-only, off by default - [ ] tooling: tools, CI, tests, harnesses - [ ] docs ## Vanilla reference Official 26.3 `EvokerFangs` constructor, `readAdditionalSaveData`, `addAdditionalSaveData` and `tick`: Warmup defaults 0 and is saved as the live integer; life starts 22 and predecrements only once Warmup becomes negative. Harness: `tools/test_command_exec_parity.py --only 'summoned fangs'` (three groups, real native Game execution and official Java 26.3). Port map check passes. The ledger reports an `EntityReference.store` reachability warning: this writer encodes the supplied owner UUID inline rather than calling the mob writer mapped to that method. ## Other projects' code None. ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on a local runner, against origin/main at 0bcd2f156, 8 min 19 s) | Check | Result | | --- | --- | | Scope | ✅ 12 files, +210 −11 (final scope after fixture tightening) | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 614 passed (1 min 32 s) | | rustfmt | ✅ (9 s) | | clippy | ✅ (1 min 0 s) | | tests: horizon-client, horizon-client-lib | ✅ 2187 passed (5 min 24 s) | | doc tests | ✅ 0 passed (3 s) | | content root tests | ➖ content root untouched | | mod API up to date | ✅ (10 s) | | 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) | 🤖 Generated with [Codex](https://openai.com/codex/). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#7851
No description provided.