Started by
Alex_n_italy
on
Topic category: Help with Minecraft modding (Java Edition)
Hi, so i want to make a mob attack the player always, except when he's wearing a specific helmet, how could i do that?
Topic category: Help with Minecraft modding (Java Edition)
Hi, so i want to make a mob attack the player always, except when he's wearing a specific helmet, how could i do that?
Basically like an Enderman
use conditions on the AI attack player code block. in the conditions, check if the target has helmet
i'm trying so, but didn't succeed so far.
Am i doing right to put the Return block on the end of the if? as so far it either didn't attacked at all or always attacked.
Sorry for asking but, can you send an image on how do it exactly? I may be doing some error im not realizing.
create a procedure like this:
then in your entity's AI setup, put the procedure in the AI goal like this:
actually make your entity's AI settings like this:
sorry man, the procedure should be like this:
thanks!
note, actually i had to put it "= False", because otherwise mobs will attack me only when wearing the helmet.