Files
CustomNPC-Plus/src/main/java
KamandClaude Opus 4.6 b3357a2751 Fix dome melee for all radii with server-side tick detection
MC's processUseEntity uses player.getDistanceSqToEntity(dome) for reach
validation, which computes center-to-center distance. For domes with
radius > 5, this always exceeds the 36-block threshold, making melee
impossible regardless of how close the player is to the surface.

Fix: server-side processMeleeHits() in onUpdate detects swinging players
near the dome surface via ray-sphere intersection, then calls
attackTargetEntityWithCurrentItem directly — bypassing MC's broken reach
check while preserving full damage calculation (enchantments, crits, etc).

Also adds adjustMeleeBoundingBox for client-side entity picking (places a
small 2x2x2 BB at the nearest sphere surface point toward the player),
and allows melee targeting from both inside and outside the dome.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-21 00:57:49 -05:00
..
2026-01-24 16:03:54 -05:00
2025-03-13 17:14:45 -04:00
2025-07-23 14:22:52 -04:00
2026-02-20 21:36:08 -03:00
2026-02-18 05:13:51 -05:00
2025-03-13 17:14:45 -04:00