The new ravagers have a very weird hitbox, that makes it harder to hit them, and also makes it so they can stand in lava without taking damage. See images below:
Related issues
Attachments
Comments


It appears that the shadow on where the hitbox is placed is smaller than the mob itself. The small shadow is probably related to MC-138766 where some mobs has small shadows.

Hitbox extends past the shadow on the front side, just not on the backside

I’ve noticed this when fighting a raid, and I snuck behind the ravaged to hit him, accidentally hitting his legs, and it did no damage.

@silentwisperer I also notice that if you put a ravager in a 4x4 fence and push them near the sides of the fence, the backside of the ravager will clip through.

Fixed in 1.13.0.1 beta

Affects 1.16.40 Hotfix.
Affects 1.16.100.55 Beta.

Affects 1.16.100.58 Beta.

Even Hoglins

The ravager in Bedrock Edition this collision box:
"minecraft:collision_box": {
"height": 1.9,
"width": 1.2
},
The collision box in Java, on the other hand, is height 2.2, width 1.95.
If I had to guess, I would surmise that the Bedrock collision box was set based on
1.9 height being the default for mobs in Bedrock.
1.2 width based on how wide the ravager is visually side-to-side, i.e. the literal meaning of "width".
The Java width of 1.95 is a much better balance between the ravager's literal "width" and length. With a 1.95 game width you can bump ravagers from the side without quite touching them visually. That may seem like bug, but its negative impact is more than compensated for by the positive impact of a more accurate collision font-to-back. Moreover, giving ravagers a 1.95 width fixes their visual attack reach extending farther than their actual ability to hit (MCPE-60680).

Affects 1.17.40.20

I believe this links to my report (MCPE-142171) where the ravager's hitbox allow them to basically float at the very edge of a water stream

The behavior in MCPE-142171 indeed does not occur if both this issue and MCPE-48145 are fixed.

Affects 1.18.10

Affects Beta 1.18.20.27
Reply from @unknown: there is no need to report beta versions if the latest release version is already reported or shown on the ticket.

The ravager actually has a hit box about the same size as on Java (1.95 x 2.2) or possibly a little wider (2.2 x 2.2) but it has a smaller collision box of 1.2 x 1.9, which makes its shadow smaller and allows it to clip into blocks visually. This also allows it to take damage from lava or cactus inside a wall that it stands next to, which is odd.
The diverse hit and collision sizes is similar to the hoglin, but the while the hoglin has a data-driven custom_hit_test for its hitbox, the ravager's hitbox is hard-coded. Since the custom_hit_test component was exposed for the hoglin, I don't see why it should remain hard-coded for the ravager.

Probably they did that to help with pathfinding since it's more difficult for big mobs to move around, the recently added Warden also has a thin collision box(2.9x0.8) which allows it to move more efficiently but differs quite a lot from Java in relation to reach

Affects Beta 1.18.30.26 and Preview 1.18.30.27