The bug
Hoglins can't hit some mobs with larger hitboxes. Instead, they push their enemies and never hit them. They may hit those mobs if they attack in a group. Probably due to their attack range being very low that they need to get closer to their enemies.
How to reproduce
Summon a ravager withthe tags
NoAI
UUIDLeast
andUUIDMost
.Summon a hoglin
Summon a snowball above the hoglin with the
owner
tag, which the L and M should be the same as the ravager
→ ❌ The hoglin charges at the ravager and tries to attack the ravager, but instead pushes the ravager.
Mobs that hoglins can't hit
Iron golem (Sometimes)
Ravagers
Elder guardians
Slimes/Magma cubes/Phantoms (Size 3 or above)
Ghasts
Giants
Polar bears (Somtimes)
Any mountable mobs except for pigs and llamas (Sometimes)
Related issues
relates to
Attachments
Comments


Seems to be fixed in 20w11a.