Melee damage dealt on entities with collision boxes/hitboxes greater than 10 blocks fails
Partner Rank: 2 (Important)
Partner Team Reporting: Oreville Studios
Verification builds and Platforms: 1.18.12, Windows 10
Summary:
Being able to deal damage to entities is important for gameplay. Large entities that require large hitboxes greater than 10 blocks (set by either minecraft:collision_box or minecraft:custom_hit_test) results in no damage taken when hurt by a melee attack targeted on the edge of the hitbox. It appears collision and hit boxes only allow melee damage to be dealt in a 10 block radius from the entity, and then will fail to do damage beyond that even if the collision/hitbox extends beyond that radius. Interesting to note, however, is that projectile damage is not affected by this issue. Firing an arrow in this region will deal damage to the entity, but punching it will not (see this reproduction video: https://www.youtube.com/watch?v=iMwsdNpsA-E)
Impact:
Content in development is impacted by this issue. Other people have indicated that the hitbox size limitation due to this issue has been annoying to work around. While we can make entities ride each other with hitboxes under 10 blocks and deal damage to the main entity as a workaround, it is ultimately a hacky and poor solution to a bigger problem.
Repro Steps:
- Download and load the attached world.
- Run the /bounds command (dev client required).
- Punch the entity near the edge of the collision box (the blue line).
- No damage will be dealt.
- Now use a bow and fire an arrow in the same spot. Damage will be dealt (a command saying success in chat will run when damage is dealt).
Expected Results:
Melee damage should be dealt to entities with a large (>10 block) collision/hit box.
Observed Results:
Melee damage is not dealt to entities with a large (>10 block) collision/hit box.
Regression Builds:
N/A{}