Started by
U.S.S.DEFIANT
on
Topic category: Help with modding (Java Edition)
Good evening.
I want to make a procedure for mob AI: if player have some effects, attack him. How can I get the target, that mob want to attack? I tried to use: Get Entity (Event/target entity) is targeting for attack, but it returned null. How can I fix it?
same
Any idea about this?
The returning null error for the 'Get Entity (Event/target entity) is targeting for attack' can be bypassed by putting it in an if block that checks is Get Entity (Event/target entity) is targeting for attack (sub)type of LivingEntity. I don't know why, but it works without crashing.