The bug
When an iron golem / a VillagerGolem kills a monster it is riding, its AI gets broken and it only turns around the whole time.
How to reproduce
Use the following command and let the VillagerGolem kill the Zombie it is riding
1.13+
/summon zombie ~ ~ ~ {ArmorItems:[{},{},{},{id:"white_wool",Count:1b}],Passengers:[{id:"iron_golem"}]}Attachments
Comments 5
I added a video showing the bug. The fact that iron golems take no knockback is intended as far as I know.
I think it has something to do how the Zombie flies after the iron golem punched it. When you're standing on the ground, it happens more rarely.
Happens sometimes, can now confirm.
Cannot confirm. Maybe the Golem landed on a weird pace when you tried it. But then it has nothing to do with the Zombie.