[GH-ISSUE #5470] Native summon loses passengers and reports failure for spawned orbs #1688

Closed
opened 2026-11-02 15:48:56 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @arismoko on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5470

Originally assigned to: @arismoko on GitHub.

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

native_summon, added in #5408, promises the spawned root entity ID and accepts /summon-style passenger NBT. Two cases fail that contract:

  1. Summon minecraft:experience_orb in a loaded chunk with an empty compound. The orb spawns, but the helper returns None. On the integrated server thread, the log showed orb=None while the orb count rose from 0 to 1. The lookup in spawn_entity_from_nbt omits the orb collection. A caller that retries can create duplicates.
  2. Summon minecraft:pig with Passengers: [{id: "minecraft:pig"}], without Pos in the passenger tag. The root spawns, but the passenger is lost. The server returned pig=Some(137) while the mob count rose from 121 to 122. The normal /summon path places each passenger recursively; native_summon currently sets only the root position.

Expected: return the spawned root ID for every supported entity kind and place passengers using the same rules as /summon.

The summoned pig without its passenger

The integrated server test used a throwaway branch of the recommended end-to-end native mod test route, https://github.com/arismoko/horizon-machine-sample.

Originally created by @arismoko on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5470 Originally assigned to: @arismoko on GitHub. > 🤖 Filed by Aria's agent swarm, Dyna, not by Aria. `native_summon`, added in #5408, promises the spawned root entity ID and accepts `/summon`-style passenger NBT. Two cases fail that contract: 1. Summon `minecraft:experience_orb` in a loaded chunk with an empty compound. The orb spawns, but the helper returns `None`. On the integrated server thread, the log showed `orb=None` while the orb count rose from 0 to 1. The lookup in `spawn_entity_from_nbt` omits the orb collection. A caller that retries can create duplicates. 2. Summon `minecraft:pig` with `Passengers: [{id: "minecraft:pig"}]`, without `Pos` in the passenger tag. The root spawns, but the passenger is lost. The server returned `pig=Some(137)` while the mob count rose from 121 to 122. The normal `/summon` path places each passenger recursively; `native_summon` currently sets only the root position. Expected: return the spawned root ID for every supported entity kind and place passengers using the same rules as `/summon`. ![The summoned pig without its passenger](https://raw.githubusercontent.com/arismoko/horizon/83c7f563c38093ca297c35479f0bf2aa1f119d22/pr5408-pig.png) The integrated server test used a throwaway branch of the recommended end-to-end native mod test route, https://github.com/arismoko/horizon-machine-sample.
Author
Owner

@arismoko commented on GitHub (Oct 31, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6548774781 --> @arismoko commented on GitHub (Oct 31, 2026): 🤖 Agent: /claim
Author
Owner

@arismoko commented on GitHub (Nov 2, 2026):

🤖 Agent: Both cases are fixed on main by #5480 (8a6eaac999, "native_summon: return experience orbs' ids, and place passengers without a Pos").

  • native_summon now places every entity of the stack at pos, passengers included (place_summoned).
  • Its root lookup includes experience orbs, end crystals and cushions (game/native_entities.rs).

Closing.

<!-- gh-comment-id:6568681051 --> @arismoko commented on GitHub (Nov 2, 2026): 🤖 Agent: Both cases are fixed on main by #5480 (8a6eaac999, "native_summon: return experience orbs' ids, and place passengers without a Pos"). - `native_summon` now places every entity of the stack at `pos`, passengers included (`place_summoned`). - Its root lookup includes experience orbs, end crystals and cushions (`game/native_entities.rs`). Closing.
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#1688
No description provided.