[GH-ISSUE #2067] can't hit ghast fireballs back at them #604

Closed
opened 2026-11-02 15:40:27 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @ludovic111 on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/2067

What I did: go into the nether and get attacked by a ghast
What happened: i couldn't hit the fireball back at it
What I expected: i wanted to hit the fireball back at it
Horizon version: 0.2.66
OS, CPU, GPU: macbook pro m1 pro 27.0.1

Reported on Discord by jules in #horizon-bugs · Discord thread
Tags: gameplay

Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.

Originally created by @ludovic111 on GitHub (Oct 26, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/2067 > What I did: go into the nether and get attacked by a ghast > What happened: i couldn't hit the fireball back at it > What I expected: i wanted to hit the fireball back at it > Horizon version: 0.2.66 > OS, CPU, GPU: macbook pro m1 pro 27.0.1 Reported on Discord by **jules** in #horizon-bugs · [Discord thread](https://discord.com/channels/1559227979002028052/1564206953272705044) Tags: gameplay <sub>Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.</sub><!-- kira -->
bsakaguchi 2026-11-02 15:40:27 +07:00
Author
Owner

@kacpherek commented on GitHub (Oct 26, 2026):

Fixed in #2111 (waiting for review). Hitting the fireball back did turn it on the server, but the window only learned about it at the fireball's next update, up to 10 ticks later, so it kept flying at the player first. The turn is now sent at once, as vanilla's AIM_DEFLECT does.

<!-- gh-comment-id:6414877657 --> @kacpherek commented on GitHub (Oct 26, 2026): Fixed in #2111 (waiting for review). Hitting the fireball back did turn it on the server, but the window only learned about it at the fireball's next update, up to 10 ticks later, so it kept flying at the player first. The turn is now sent at once, as vanilla's AIM_DEFLECT does.
Author
Owner

@rdbtCVS commented on GitHub (Oct 26, 2026):

🤖 Agent: rdbtCVS’s AI agent (OpenAI Codex), triage follow-up. PR #2111 addresses immediate display of fireball deflection. It is still open, so recommend keeping this issue open until the relevant fix lands and the reported behavior is verified.

<!-- gh-comment-id:6418496066 --> @rdbtCVS commented on GitHub (Oct 26, 2026): 🤖 Agent: rdbtCVS’s AI agent (OpenAI Codex), triage follow-up. PR #2111 addresses immediate display of fireball deflection. It is still open, so recommend keeping this issue open until the relevant fix lands and the reported behavior is verified.
Author
Owner

@levzzz5154 commented on GitHub (Oct 26, 2026):

🤖 Agent: levzzz5154's AI agent (Claude Code). The half of this issue that #2111 does not cover - the hit itself - works: a player's attack turns a ghast's fireball instead of damaging it, and the fireball then flies along the player's view and kills the ghast.

In vanilla this is not a damage at all: AbstractHurtingProjectile.hurtServer returns false, so a fireball cannot be hurt. Player.attack(Entity) calls deflectProjectile(entity), and for a #minecraft:redirectable_projectile (Projectile.isPickable, pick radius 1.0) that is Projectile.deflect(ProjectileDeflection.AIM_DEFLECT, player, EntityReference.of(player), true, 1.0): the movement becomes the player's look angle, the player becomes its owner, and AbstractHurtingProjectile.onDeflection(byAttack) puts its acceleration power back to 0.1.

The repository's LAN suite already checks this (tools/lan_e2e.py, check_deflect: the host punches a ghast's fireball back, the fireball becomes the player's and the ghast dies of it). Running it here, with the host in its own window (the single-player path, Game::attack -> attack_redirectable -> deflect):

$ HORIZON_E2E_HEADLESS=1 python3 tools/test_lan_integration_parity.py --check deflect --in-frame
[lan] deflect: PASS {'struck_at': 4.13}

The chat of the same run carries vanilla's own challenge for it - "Player has completed the challenge [Return to Sender]" - which minecraft:nether/return_to_sender awards for killing a ghast with a fireball.

The visible half - the window learning about the turn at once - is #2111, which is still open: vanilla's ProjectileDeflection.AIM_DEFLECT sets needsSync, and ServerEntity.sendChanges then sends the motion in the same tick. Horizon's Projectile has no such flag, so the window only hears about the turn at the fireball's next tracker update (up to 10 ticks later) and keeps drawing it flying on at the player.

I have no permission to close issues, so I am leaving this open for the maintainer, and it needs #2111 to land before the reported symptom is gone.

<!-- gh-comment-id:6429521867 --> @levzzz5154 commented on GitHub (Oct 26, 2026): 🤖 Agent: levzzz5154's AI agent (Claude Code). The half of this issue that #2111 does not cover - the hit itself - works: a player's attack turns a ghast's fireball instead of damaging it, and the fireball then flies along the player's view and kills the ghast. In vanilla this is not a damage at all: `AbstractHurtingProjectile.hurtServer` returns false, so a fireball cannot be hurt. `Player.attack(Entity)` calls `deflectProjectile(entity)`, and for a `#minecraft:redirectable_projectile` (`Projectile.isPickable`, pick radius 1.0) that is `Projectile.deflect(ProjectileDeflection.AIM_DEFLECT, player, EntityReference.of(player), true, 1.0)`: the movement becomes the player's look angle, the player becomes its owner, and `AbstractHurtingProjectile.onDeflection(byAttack)` puts its acceleration power back to 0.1. The repository's LAN suite already checks this (tools/lan_e2e.py, `check_deflect`: the host punches a ghast's fireball back, the fireball becomes the player's and the ghast dies of it). Running it here, with the host in its own window (the single-player path, `Game::attack` -> `attack_redirectable` -> `deflect`): ``` $ HORIZON_E2E_HEADLESS=1 python3 tools/test_lan_integration_parity.py --check deflect --in-frame [lan] deflect: PASS {'struck_at': 4.13} ``` The chat of the same run carries vanilla's own challenge for it - "Player has completed the challenge [Return to Sender]" - which `minecraft:nether/return_to_sender` awards for killing a ghast with a fireball. The visible half - the window learning about the turn at once - is #2111, which is still open: vanilla's `ProjectileDeflection.AIM_DEFLECT` sets `needsSync`, and `ServerEntity.sendChanges` then sends the motion in the same tick. Horizon's `Projectile` has no such flag, so the window only hears about the turn at the fireball's next tracker update (up to 10 ticks later) and keeps drawing it flying on at the player. I have no permission to close issues, so I am leaving this open for the maintainer, and it needs #2111 to land before the reported symptom is gone.
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#604
No description provided.