e2473aafd8
AbstractArrow.onHitEntity: an entity that takes no damage from the arrow (a raised shield, invulnerability) turns it back with ProjectileDeflection.REVERSE at power 0.2: a tenth of the speed, a half turn give or take ten degrees from the arrow's own random; one left almost still drops its pickup and is discarded. Arrows used to vanish. The arrow tick now stops at the entity it hits: the game hurts the entity, then arrows::finish_entity_hit spends the arrow (with its hit sound, from the arrow's random) or turns it back, and ends the tick (drag, gravity, fluids). The damage is taken from the speed at the hit, the crit bonus from the arrow's random, the entity search follows ProjectileUtil.getManyEntityHitResult (the box first, then computeMargin's margin, which needs tickCount), Punch pushes only what was hurt, and a refused burning arrow leaves the player's fire as it was. Mobs' refusals keep the old ending until their hurt results follow hurtServer. The arrow harness gains an entity in the way that takes or refuses the damage: squarely, grazing, slow enough to drop. Part of #277 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>