So I'm working in 1.6.4, and I was wondering if there was a way to make a mob explosion - proof (ie, taking no damage from explosions)?
[I just took the Minecraft Noob test! Check out what I scored. Think you can beat me?!
To take the test, check out
Yes, there is an event fired that you can use. This tutorial by Jabelar (1.7.2, but events are mostly the same even in 1.8) lists commonly used events, which includes:
LivingAttackEvent e.g. Check if the damage source is explosion damage. If so, cancel the event to make immune from explosions (maybe based on potion or armor).
LivingEvents always include the entity that is, in this case, receiving the damage. Read the tutorial if you're rusty on event handling, and happy modding!