[GH-ISSUE #1477] [both singleplayer modes] Nearby firework explosions hurt mobs but not the player #446

Closed
opened 2026-11-02 15:39:08 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @rdbtCVS on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1477

Tested 33e35d37c0362a0580e4927bfc12d0b15a3dc5a7, explicitly using --no-server-thread and --server-thread.

Reproduce in Survival: launch a rocket with an explosion star under a low ceiling, about three blocks away, so it bursts close to the player. Tested rocket:

/give @s firework_rocket[fireworks={flight_duration:0,explosions:[{shape:"large_ball",colors:[I;16711680],has_trail:true}]}]

Expected: nearby players take firework explosion damage, subject to native distance/visibility rules.
Actual in both modes: player health stays 20 while a nearby cow takes about 5.4 damage. The rocket is consumed and the explosion is processed.

Repeated in fresh pairs current-fireworks-{a,b}/blast-* under .local/singleplayer-audit/, with authoritative health queries and regeneration disabled. Native 26.3 control native-firework-damage-reference/check.log at the same player/cow positions gives player 20→16.051922 and also damages the cow.

Hypothesis: explode_rocket damages the attached player and nearby mobs, but omits nearby unattached players.

Acceptance: a nearby unattached player receives the native explosion damage in both modes; preserve the working mob-damage and item-consumption behavior.

Originally created by @rdbtCVS on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1477 Tested `33e35d37c0362a0580e4927bfc12d0b15a3dc5a7`, explicitly using `--no-server-thread` and `--server-thread`. Reproduce in Survival: launch a rocket with an explosion star under a low ceiling, about three blocks away, so it bursts close to the player. Tested rocket: ``` /give @s firework_rocket[fireworks={flight_duration:0,explosions:[{shape:"large_ball",colors:[I;16711680],has_trail:true}]}] ``` Expected: nearby players take firework explosion damage, subject to native distance/visibility rules. Actual in both modes: player health stays 20 while a nearby cow takes about 5.4 damage. The rocket is consumed and the explosion is processed. Repeated in fresh pairs `current-fireworks-{a,b}/blast-*` under `.local/singleplayer-audit/`, with authoritative health queries and regeneration disabled. Native 26.3 control `native-firework-damage-reference/check.log` at the same player/cow positions gives player 20→16.051922 and also damages the cow. Hypothesis: `explode_rocket` damages the attached player and nearby mobs, but omits nearby unattached players. Acceptance: a nearby unattached player receives the native explosion damage in both modes; preserve the working mob-damage and item-consumption behavior.
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#446
No description provided.