Zoglins, hoglins, and ravagers all do a little knockback when they hit a player holding a shield. However, iron golems don't give players knockback when they hold a shield even when they can fling players without a shield. Zoglins and Hoglins can fling players just like iron golems except that they can knock players upwards even when holding a shield. Iron golems should also have the same behavior as zoglins, hoglins, and ravagers.
Comments 7
yes, because they don't have the attack knockback attribute which was added way after golems were introduced, unlike the other mobs you mentioned.
Seems like i was wrong here, that attribute doesn't work on iron golems, and doesn't work on shields either as per MC-235198.
Can confirm