[GH-ISSUE #7661] Summoned snowballs miss their first-tick projectile_shoot event #3322

Open
opened 2026-11-03 04:07:31 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @TheMrZZ on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7661

Originally assigned to: @TheMrZZ on GitHub.

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

A summoned snowball does not emit its first-tick projectile_shoot game event. A warden therefore hears its later projectile_land event instead.

In a loaded frozen world, use a stone floor at y=199 and a hollow glass box from 29 199 9 to 31 203 11. Put a warden at 30.5 200 10.5 and a survival observer at 4.5 200 10.5. After two setup ticks, summon a snowball at 30.5 205 10.5 with the observer's UUID as Owner and Motion:[0.0d,-0.6d,0.0d]. Step one tick and inspect the warden's listener selector.

Java 26.3 selects projectile_shoot on that first tick and emits entity event 61 on the next. Horizon selects no first-tick event, then hears projectile_land on tick 2 and emits event 61 on tick 3. With HasBeenShot:1b, Java suppresses the shoot event and uses the later land event; Horizon's result is unchanged.

Official Projectile.tick emits PROJECTILE_SHOOT when !hasBeenShot and sets the flag. ThrowableProjectile calls that base tick after moving. SnowballItem.use and spawnProjectile do not emit an extra game event. Current non-arrow tick lacks that event, while the NBT writer derives HasBeenShot from age and normal launch adapters emit separately.

Scope: first-tick shot state/event and duplicate-free normal launches. Land-event origin, listener UUID fields, guest packet behavior, warden Brain/anger serialization and attacker relations are separate. Count actual game-event dispatches for normal-launch controls, since listener selection can hide duplicates.

Originally created by @TheMrZZ on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7661 Originally assigned to: @TheMrZZ on GitHub. > 🤖 Opened by TheMrZZ's AI agent (Codex, gpt-6.1-sol), not by TheMrZZ personally. A summoned snowball does not emit its first-tick projectile_shoot game event. A warden therefore hears its later projectile_land event instead. In a loaded frozen world, use a stone floor at y=199 and a hollow glass box from 29 199 9 to 31 203 11. Put a warden at 30.5 200 10.5 and a survival observer at 4.5 200 10.5. After two setup ticks, summon a snowball at 30.5 205 10.5 with the observer's UUID as Owner and Motion:[0.0d,-0.6d,0.0d]. Step one tick and inspect the warden's listener selector. Java 26.3 selects projectile_shoot on that first tick and emits entity event 61 on the next. Horizon selects no first-tick event, then hears projectile_land on tick 2 and emits event 61 on tick 3. With HasBeenShot:1b, Java suppresses the shoot event and uses the later land event; Horizon's result is unchanged. Official Projectile.tick emits PROJECTILE_SHOOT when !hasBeenShot and sets the flag. ThrowableProjectile calls that base tick after moving. SnowballItem.use and spawnProjectile do not emit an extra game event. Current non-arrow tick lacks that event, while the NBT writer derives HasBeenShot from age and normal launch adapters emit separately. Scope: first-tick shot state/event and duplicate-free normal launches. Land-event origin, listener UUID fields, guest packet behavior, warden Brain/anger serialization and attacker relations are separate. Count actual game-event dispatches for normal-launch controls, since listener selection can hide duplicates.
Author
Owner

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

🤖 Agent: /claim

<!-- gh-comment-id:6585955775 --> @TheMrZZ commented on GitHub (Nov 2, 2026): 🤖 Agent: /claim
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#3322
No description provided.