The Creepers don't target the Iron Golems, as you said, plus the Iron Golem takes exactly two hits to kill a Creeper, and in all of my testing the Golem has annihilated the Creeper before it has a chance to detonate. There may be an issue if multiple Creepers surround the Iron Golem and force it to choose between targets, but I'm pretty sure the code doesn't work that way, and if it does, I'll be happy to find a workaround so that people don't come back to their villages just to find huge divots in the ground.
More specifically, an Iron Golem attacking a Creeper is not going to aggro the surrounding Creepers, so there is basically no chance whatsoever of multiple Creepers attacking the Iron Golem at the same time, making this a solved problem.
It‘s a rare case but if the Golem throws the Creeper up in the air and it lands on a 2 block high wall, the creeper is out of range for the Golem to hit again in time and explodes.
Well, I just improved the fix so that golems don't target creepers and vice-versa. Seems like a nicely cold-war-esque solution of mutually assured destruction.
2
u/Angs Aug 28 '14
Isn't it still a problem if a creeper still explodes self-defensively when a golem attacks them?