[PR #7268] [MERGED] Create configured spawner passengers without explicit namespace or position #7453

Closed
opened 2026-11-03 06:39:44 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7268
Author: @TheMrZZ
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: fix/trial-spawner-passengers


📝 Commits (1)

  • 2d73371 Load configured spawner passengers with default entity fields

📊 Changes

3 files changed (+63 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/entity_nbt.rs (+26 -1)
📝 crates/horizon-client/src/game/spawner.rs (+4 -1)
📝 tools/command_exec_corpus.py (+33 -0)

📄 Description

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

What and why

Trial spawners now create configured mob passengers whose entity IDs omit minecraft: or whose NBT omits Pos. Previously the parent retained the child's NBT while no selectable child or vehicle relation existed.

Entity type lookup now normalizes IDs through the existing identifier parser, preserving custom namespaces. Spawner additions apply the existing recursive placement helper to the whole entity stack before loading it.

Fixes #7254.

Kind

  • parity: Horizon now does what vanilla 26.3 does

Vanilla reference

TrialSpawner.spawnMob and EntityType.loadEntityRecursive: resolve entity IDs and apply the spawning callback to passengers. Java 26.3 creates the configured chicken and its vehicle relation both with and without explicit namespace/position fields.

The command-execution parity corpus adds 16 observable queries across all four namespace/position combinations. It checks the parent, the actual child, its vehicle relation, and saved passenger tags. The loader unit test covers default and custom namespaces and rejects unregistered types.

Other projects' code

None.

Self-check

The namespace-loading regression and server gameplay compile check pass. Full command-execution parity needs prepared game data and remains for CI.

pr_ready (tools/pr_ready.py --quick on a local runner, against origin/main at 4f4f1db13, 4 min 48 s)

Check Result
Scope ✅ 3 files, +63 −2
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 612 passed (47 s)
rustfmt ✅ (6 s)
clippy ✅ (2 min 15 s)
tests: horizon-client, horizon-client-lib ✅ 2135 passed (1 min 26 s)
doc tests ✅ 0 passed (2 s)
content root tests ➖ content root untouched
mod API up to date ✅ (12 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/7268 **Author:** [@TheMrZZ](https://github.com/TheMrZZ) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/trial-spawner-passengers` --- ### 📝 Commits (1) - [`2d73371`](https://github.com/horizon-rust/horizon/commit/2d73371393558ab7084388ccaaa65918c442087b) Load configured spawner passengers with default entity fields ### 📊 Changes **3 files changed** (+63 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/entity_nbt.rs` (+26 -1) 📝 `crates/horizon-client/src/game/spawner.rs` (+4 -1) 📝 `tools/command_exec_corpus.py` (+33 -0) </details> ### 📄 Description > 🤖 Opened by TheMrZZ's AI agent (Codex, gpt-6.1-sol), not by TheMrZZ personally. ## What and why Trial spawners now create configured mob passengers whose entity IDs omit `minecraft:` or whose NBT omits `Pos`. Previously the parent retained the child's NBT while no selectable child or vehicle relation existed. Entity type lookup now normalizes IDs through the existing identifier parser, preserving custom namespaces. Spawner additions apply the existing recursive placement helper to the whole entity stack before loading it. Fixes #7254. ## Kind - [x] parity: Horizon now does what vanilla 26.3 does ## Vanilla reference `TrialSpawner.spawnMob` and `EntityType.loadEntityRecursive`: resolve entity IDs and apply the spawning callback to passengers. Java 26.3 creates the configured chicken and its vehicle relation both with and without explicit namespace/position fields. The command-execution parity corpus adds 16 observable queries across all four namespace/position combinations. It checks the parent, the actual child, its vehicle relation, and saved passenger tags. The loader unit test covers default and custom namespaces and rejects unregistered types. ## Other projects' code None. ## Self-check The namespace-loading regression and server gameplay compile check pass. Full command-execution parity needs prepared game data and remains for CI. **pr_ready** (`tools/pr_ready.py --quick` on a local runner, against origin/main at 4f4f1db13, 4 min 48 s) | Check | Result | | --- | --- | | Scope | ✅ 3 files, +63 −2 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 612 passed (47 s) | | rustfmt | ✅ (6 s) | | clippy | ✅ (2 min 15 s) | | tests: horizon-client, horizon-client-lib | ✅ 2135 passed (1 min 26 s) | | doc tests | ✅ 0 passed (2 s) | | content root tests | ➖ content root untouched | | mod API up to date | ✅ (12 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>
bsakaguchi 2026-11-03 06:39:44 +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#7453
No description provided.