From 6db4511dd5b038cd95c7ea196559bb25a53246e9 Mon Sep 17 00:00:00 2001 From: jordan4ibanez Date: Fri, 16 Apr 2021 20:06:55 -0400 Subject: [PATCH] Add notes --- mods/ENTITIES/mcl_mobs/api/mob_functions/ai.lua | 2 +- mods/ENTITIES/mcl_mobs/api/mob_functions/combat_interaction.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 mods/ENTITIES/mcl_mobs/api/mob_functions/combat_interaction.lua diff --git a/mods/ENTITIES/mcl_mobs/api/mob_functions/ai.lua b/mods/ENTITIES/mcl_mobs/api/mob_functions/ai.lua index 982641e738..73f5beff3c 100644 --- a/mods/ENTITIES/mcl_mobs/api/mob_functions/ai.lua +++ b/mods/ENTITIES/mcl_mobs/api/mob_functions/ai.lua @@ -167,7 +167,7 @@ end - +--the main loop mobs.mob_step = function(self, dtime) --do not continue if non-existent diff --git a/mods/ENTITIES/mcl_mobs/api/mob_functions/combat_interaction.lua b/mods/ENTITIES/mcl_mobs/api/mob_functions/combat_interaction.lua new file mode 100644 index 0000000000..5ba67b28c5 --- /dev/null +++ b/mods/ENTITIES/mcl_mobs/api/mob_functions/combat_interaction.lua @@ -0,0 +1 @@ +--make mobs scan players and check distance then if direct line of sight then add to list and go after whichever one is closer \ No newline at end of file