From 00759da39d621b36be6200fa365c51be86dbb99f Mon Sep 17 00:00:00 2001 From: jordan4ibanez Date: Sun, 11 Apr 2021 18:29:32 -0400 Subject: [PATCH] Unlimit mob ai --- mods/ENTITIES/mcl_mobs/api.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/ENTITIES/mcl_mobs/api.lua b/mods/ENTITIES/mcl_mobs/api.lua index fa3e4ad44..4578f77c5 100644 --- a/mods/ENTITIES/mcl_mobs/api.lua +++ b/mods/ENTITIES/mcl_mobs/api.lua @@ -3574,7 +3574,6 @@ local mob_activate = function(self, staticdata, def, dtime) end --- main mob function local mob_step = function(self, dtime) if not self or not self.object or not self.object:get_luaentity() then @@ -3683,14 +3682,17 @@ local mob_step = function(self, dtime) -- attack timer self.timer = self.timer + dtime + --[[ if self.state ~= "attack" then if self.timer < 1 then + print("returning>>error code 1") return end self.timer = 0 end + ]]-- -- never go over 100 if self.timer > 100 then @@ -3729,8 +3731,6 @@ local mob_step = function(self, dtime) return end - - do_jump(self) runaway_from(self)