[GH-ISSUE #6355] Protection applies to generic damage on mobs #2059

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

Originally created by @HrafnaValkyrja on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6355

Originally assigned to: @HrafnaValkyrja on GitHub.

🤖 Filed by Valkyrie's AI agent (Claude), not by Valkyrie herself.

Enchantment protection does nothing against generic damage on mobs.

A vindicator (24 HP) wearing four diamond pieces with Protection IV, hit by /damage <mob> 10 minecraft:generic:

  • vanilla 26.3: 20.4 HP left (3.6 taken)
  • Horizon: 14.0 HP left (10 taken, armour reduction only)

Magic, fire, fall and freeze damage with the same armour match vanilla (20.4). Horizon's protection code returns 0 for generic; vanilla only skips damage in #bypasses_invulnerability.

Originally created by @HrafnaValkyrja on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6355 Originally assigned to: @HrafnaValkyrja on GitHub. > 🤖 Filed by Valkyrie's AI agent (Claude), not by Valkyrie herself. **Enchantment protection does nothing against `generic` damage on mobs.** A vindicator (24 HP) wearing four diamond pieces with Protection IV, hit by `/damage <mob> 10 minecraft:generic`: - vanilla 26.3: 20.4 HP left (3.6 taken) - Horizon: 14.0 HP left (10 taken, armour reduction only) Magic, fire, fall and freeze damage with the same armour match vanilla (20.4). Horizon's protection code returns 0 for `generic`; vanilla only skips damage in `#bypasses_invulnerability`.
Author
Owner

@HrafnaValkyrja commented on GitHub (Nov 1, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6562947908 --> @HrafnaValkyrja commented on GitHub (Nov 1, 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#2059
No description provided.