Started by
AlanBur
on
Topic category: Help with Minecraft modding (Java Edition)
Hello!, i cant find the way to make my mob attack when its attacked, i made a mob wich is a Skeleton SheepMan who lives in the hell but it attacks like a skeleton and i dont want that, i just want it to be passive until it gets attacked, do someone know how do i do that? (im new) :)
Edited by AlanBur on Sun, 07/28/2019 - 22:02
That's pretty easy. Just add the "Make Mob Aggressive" AI Block and remove the "Attack [properties] type of EntityPlayer/EntityPlayerMP" AI Block. That'll make the Mob attack only it's Damage source. If the mob isn't hit by any entity, it'll have no damage source and because of that, it won't react.
thanks!
You can also just look in the AI templates and click "Mob that attacks only when hurt" template.