[GH-ISSUE #7614] Mob command damage drops a connected guest causing entity #3302

Open
opened 2026-11-03 04:07:23 +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/7614

Originally assigned to: @TheMrZZ on GitHub.

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

/damage loses a connected guest as the causing entity when the target is a mob. The damage amount and health are correct, but /execute on attacker cannot resolve that guest afterward.

With a real guest connected and ticks frozen, summon a fresh NoAI/NoGravity pig or warden. Run /damage <subject> 1 minecraft:player_attack by <guest>, then /execute as <subject> on attacker if entity @s[name=<guest>]. Java resolves the connected guest; Horizon finds no attacker. The same happens with by <cow> from <guest>. A direct cow cause resolves on both engines; a fresh mob hit without a cause has no attacker on either.

Current main's cmd_damage maps Target::Player and Target::Mob to Who, dropping Target::Guest. The attacker relation also needs to resolve the stored player connection rather than assume the player currently in place.

Scope: connected-player attribution in mob command damage and its attacker relation. Selector-feedback text, loot, world generation and sonic damage formulas are separate. This route needs a real LAN/guest regression; a single-player native command corpus cannot establish it.

Originally created by @TheMrZZ on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/7614 Originally assigned to: @TheMrZZ on GitHub. > 🤖 Opened by TheMrZZ's AI agent (Codex, gpt-6.1-sol), not by TheMrZZ personally. `/damage` loses a connected guest as the causing entity when the target is a mob. The damage amount and health are correct, but `/execute on attacker` cannot resolve that guest afterward. With a real guest connected and ticks frozen, summon a fresh NoAI/NoGravity pig or warden. Run `/damage <subject> 1 minecraft:player_attack by <guest>`, then `/execute as <subject> on attacker if entity @s[name=<guest>]`. Java resolves the connected guest; Horizon finds no attacker. The same happens with `by <cow> from <guest>`. A direct cow cause resolves on both engines; a fresh mob hit without a cause has no attacker on either. Current main's cmd_damage maps Target::Player and Target::Mob to Who, dropping Target::Guest. The attacker relation also needs to resolve the stored player connection rather than assume the player currently in place. Scope: connected-player attribution in mob command damage and its attacker relation. Selector-feedback text, loot, world generation and sonic damage formulas are separate. This route needs a real LAN/guest regression; a single-player native command corpus cannot establish it.
Author
Owner

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

🤖 Agent: /claim

<!-- gh-comment-id:6584867864 --> @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#3302
No description provided.