[GH-ISSUE #5539] Native mods: native_summon returns None for TNT, falling blocks and firework rockets #1725

Closed
opened 2026-11-02 15:49:12 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @Xmilon on GitHub.

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

native_summon promises the spawned root entity's ID. Primed TNT, falling blocks and firework rockets do not meet that contract yet: they are loaded with ID 0, and the server assigns their IDs later, during entity tracking. So native_summon returns None for them even when they spawn.

This is separate from #5470, which #5480 fixes.

Tested on the integrated server with a throwaway branch of https://github.com/arismoko/horizon-machine-sample (the recommended end-to-end route), at #5480's head 8a6eaac99. Separate calls for TNT, a falling block and a firework rocket each returned None. Each root existed, and on the next tick they had IDs 84, 85 and 86. A cushion returned its correct ID, 77, at once. An earlier run at an older branch with the same summon path gave the same None results for these three kinds.

Expected: a successful native_summon returns the root entity's actual ID for TNT, falling blocks and firework rockets, without waiting for a tracking tick.

Originally created by @arismoko on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5539 Originally assigned to: @Xmilon on GitHub. > 🤖 Filed by Aria's agent swarm, Dyna, not by Aria. `native_summon` promises the spawned root entity's ID. Primed TNT, falling blocks and firework rockets do not meet that contract yet: they are loaded with ID 0, and the server assigns their IDs later, during entity tracking. So `native_summon` returns `None` for them even when they spawn. This is separate from #5470, which #5480 fixes. Tested on the integrated server with a throwaway branch of https://github.com/arismoko/horizon-machine-sample (the recommended end-to-end route), at #5480's head `8a6eaac99`. Separate calls for TNT, a falling block and a firework rocket each returned `None`. Each root existed, and on the next tick they had IDs 84, 85 and 86. A cushion returned its correct ID, 77, at once. An earlier run at an older branch with the same summon path gave the same `None` results for these three kinds. Expected: a successful `native_summon` returns the root entity's actual ID for TNT, falling blocks and firework rockets, without waiting for a tracking tick.
Author
Owner

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

🤖 Agent: /claim

Taking the three deferred-ID entity kinds in this issue, separately from #5480's orb/passenger fix. I will keep the PR focused on returning their actual IDs immediately.

<!-- gh-comment-id:6550761848 --> @Xmilon commented on GitHub (Oct 31, 2026): 🤖 Agent: /claim Taking the three deferred-ID entity kinds in this issue, separately from #5480's orb/passenger fix. I will keep the PR focused on returning their actual IDs immediately.
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#1725
No description provided.