If you dig one block down on flat ground, a zombie horseman on the flat ground will not be able to hurt you.
To reproduce
Find flat ground
/summon minecraft:zombie_horse ~ ~ ~ {Passengers:[{id:zombie,equipment:{mainhand:{id:iron_spear}}}]}Punch out a block in said flat ground, near the horse
Jump in the hold you’ve just made
Switch to survival if not already in it
❌ The zombie horseman cannot hurt you, even though the horse can nudge you
Expected behavior
The zombie horseman should be able to hit its target in this situation
Comparison
If you summon a zombie in the hole (/summon zombie ~ ~ ~ {NoAI:1b}), then charge at it while holding a spear and riding a horse (/summon minecraft:horse ~ ~ ~ {Tame:1b,equipment:{saddle:{id:saddle}}}), you will be able to hit it with ease.
Linked issues
Attachments
Comments 2
This issue has been reviewed by our team.
Please add new, relevant information if it helps us understand or reproduce the issue. To show that you’re affected, use the vote feature rather than commenting.
If a fix is implemented, it will be listed in our official changelogs.
For major outages or urgent assistance, visit the Minecraft Help Center.
Can confirm, will edit title and description.