Started by
randomcontentq
on
Topic category: Help with MCreator software
So i wanted to make a mob that attacks me if i have a specific effect
Edited by randomcontentq on Wed, 02/09/2022 - 00:41
Topic category: Help with MCreator software
So i wanted to make a mob that attacks me if i have a specific effect
using a condition on the ai u can create a procedure to test for just about anything before setting an attack target, just click on the "conditions" for the ai attack block, create a procedure like this:
if (has {nearest entity of type [player] in a (configurable amount) range} potion effect {potion effect here}):
return true
(end if if statement)
return false
Can you show me the procedures pleas
Just photo
Hi Idk if you still need a photo but I can give you a photo of my condition code.
Hey, I know it's been over a year, but Terrarindy, do you still have that photo?
I've done the simple IF statement for:
if event/target entity has custom:effect
return logic: true
else
return logic: false
And then set the entity's attack condition for the player to be for this procedure, but it just doesn't work in game. Was wondering if you still have that photo of your condition?