Started by
BryAstro
on
Topic category: Help with Minecraft modding (Java Edition)
I would like to make a part of the procedure that only activates when the Mob makes an attack target. And when there is an attack target, it should be during a entity tick.
Edited by BryAstro on Thu, 12/21/2023 - 00:33
keep in mind that this is the specific part of the procedure I would like to only be activated when the Mob detects an attack target.
https://imgur.com/a/7gTWXnv
Have you checked the global trigger "Entity sets it's attack target"?
Yes, but when I did it, it would activate when ANY entity sets it's attack target.
Nevermind, I made the procedure check if the entity is the certain entity, and it is working! Hopefully it doesn't crash though, and if it does, I will let you know
It still does entity tick crashes (albeit occasionally), what should I do?
Show me your updated procedure.
if Get entity is targeting for attack not equal No entity
then
Just use search in procedures, search word "target". "no entity" is in Advanced block.
Thanks for helping! It works!