Added target lost event. Added all new NPC events to the old 1.7.10 script system.

This commit is contained in:
Luis C.M committed 2023-03-16 04:56:33 -05:00
1 parent 29935a1c6d
commit fe780d69ee
9 files changed
+39 -8

No files matched your search

@@ -551,6 +551,9 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
entity = null;
else
entity = event.getTarget().getMCEntity();
} else {
if(EventHooks.onNPCTargetLost(this, getAttackTarget(), entity))
return;
}
if (entity != null && entity != this && ai.onAttack != 3 && !isAttacking()) {
Line line = advanced.getAttackLine();