[PR #5518] [CLOSED] Fix native summon passenger placement and entity IDs #6334

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5518
Author: @arismoko
Created: 10/31/2026
Status: ❌ Closed

Base: main ← Head: fix-native-summon


📝 Commits (1)

  • 8485be7 Fix native summon entity lookup and passenger placement

📊 Changes

2 files changed (+58 additions, -53 deletions)

View changed files

📝 crates/horizon-client/src/game/commands/data.rs (+31 -48)
📝 crates/horizon-client/src/game/native_entities.rs (+27 -5)

📄 Description

🤖 Opened by Aria's agent swarm, Dyna, not by Aria.

Fixes #5470.

Use the existing level entity lookup to find a spawned orb and other supported targets. Share /summon's recursive placement with native_summon so passengers without Pos join the root at the summon position. The existing /summon placement also supplies missing Fire and Rotation defaults.

The shared lookup also resolves a spawned orb, projectile, crystal or dragon as a /summon target. The orb command reported success both before and after this change.

The separate ID contract for cushions and entities assigned IDs later, including TNT, falling blocks and rockets, remains unchanged.

Game test

At 8485be74a61905fbee0b01de3e9f59fd245c8313, I used a throwaway branch of the recommended end-to-end native mod test route, horizon-machine-sample. On both the integrated server thread and a dedicated server, the mod summoned a pig with a pig passenger whose NBT had no Pos, then summoned an experience orb. The integrated server returned pig ID 32, passenger ID 33 riding 32, and orb ID 34 matching the spawned orb. The dedicated server returned pig ID 519, passenger ID 520 riding 519, and orb ID 521 matching the spawned orb.

Before the fix, the passenger did not spawn:

Pig without its passenger before the fix

After the fix, the passenger rides the pig:

Pig carrying its passenger after the fix

Checks

The command_exec, command_parse and entity_components parity harnesses passed. dedicated_server fails the same registry-data comparison on the base caaab6c1a, so this change does not cause it.

pr_ready (tools/pr_ready.py --quick --base caaab6c1a76af53f0b16c5f10d9bcad800b92b97 on arch, against caaab6c1a7 at caaab6c1a, 2 min 35 s)

Check Result
Scope ✅ 2 files, +58 −53
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 510 passed (43 s)
rustfmt ✅ (9 s)
clippy ✅ (53 s)
tests: horizon-client ✅ 1571 passed (48 s)
doc tests ✅ 0 passed (2 s)
content root tests ➖ content root untouched
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 Dyna.


🔄 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/5518 **Author:** [@arismoko](https://github.com/arismoko) **Created:** 10/31/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix-native-summon` --- ### 📝 Commits (1) - [`8485be7`](https://github.com/horizon-rust/horizon/commit/8485be74a61905fbee0b01de3e9f59fd245c8313) Fix native summon entity lookup and passenger placement ### 📊 Changes **2 files changed** (+58 additions, -53 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/commands/data.rs` (+31 -48) 📝 `crates/horizon-client/src/game/native_entities.rs` (+27 -5) </details> ### 📄 Description > 🤖 Opened by Aria's agent swarm, Dyna, not by Aria. Fixes #5470. Use the existing level entity lookup to find a spawned orb and other supported targets. Share `/summon`'s recursive placement with `native_summon` so passengers without `Pos` join the root at the summon position. The existing `/summon` placement also supplies missing `Fire` and `Rotation` defaults. The shared lookup also resolves a spawned orb, projectile, crystal or dragon as a `/summon` target. The orb command reported success both before and after this change. The separate ID contract for cushions and entities assigned IDs later, including TNT, falling blocks and rockets, remains unchanged. ## Game test At `8485be74a61905fbee0b01de3e9f59fd245c8313`, I used a throwaway branch of the recommended end-to-end native mod test route, [horizon-machine-sample](https://github.com/arismoko/horizon-machine-sample). On both the integrated server thread and a dedicated server, the mod summoned a pig with a pig passenger whose NBT had no `Pos`, then summoned an experience orb. The integrated server returned pig ID 32, passenger ID 33 riding 32, and orb ID 34 matching the spawned orb. The dedicated server returned pig ID 519, passenger ID 520 riding 519, and orb ID 521 matching the spawned orb. Before the fix, the passenger did not spawn: ![Pig without its passenger before the fix](https://raw.githubusercontent.com/arismoko/horizon/83c7f563c38093ca297c35479f0bf2aa1f119d22/pr5408-pig.png) After the fix, the passenger rides the pig: ![Pig carrying its passenger after the fix](https://raw.githubusercontent.com/arismoko/horizon/58987f12047077f4af2b60eeb86278dc414e864e/pr5470-pig-with-passenger.png) ## Checks The `command_exec`, `command_parse` and `entity_components` parity harnesses passed. `dedicated_server` fails the same registry-data comparison on the base caaab6c1a, so this change does not cause it. **pr_ready** (`tools/pr_ready.py --quick --base caaab6c1a76af53f0b16c5f10d9bcad800b92b97` on arch, against caaab6c1a76af53f0b16c5f10d9bcad800b92b97 at caaab6c1a, 2 min 35 s) | Check | Result | | --- | --- | | Scope | ✅ 2 files, +58 −53 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 510 passed (43 s) | | rustfmt | ✅ (9 s) | | clippy | ✅ (53 s) | | tests: horizon-client | ✅ 1571 passed (48 s) | | doc tests | ✅ 0 passed (2 s) | | content root tests | ➖ content root untouched | | 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 Dyna. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:18:24 +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#6334
No description provided.