From d5ca4fca9b04ed1593a368cf26dc92905d7e8fc4 Mon Sep 17 00:00:00 2001 From: TheOnlyJoeEnderman Date: Wed, 2 Nov 2022 04:30:09 +0000 Subject: [PATCH] fix constant need to run for the hills, restore ability to jump previous commit just added comments. --- mods/ENTITIES/mobs_mc/axolotl.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ENTITIES/mobs_mc/axolotl.lua b/mods/ENTITIES/mobs_mc/axolotl.lua index d79cd8a29..80b8ef926 100644 --- a/mods/ENTITIES/mobs_mc/axolotl.lua +++ b/mods/ENTITIES/mobs_mc/axolotl.lua @@ -84,7 +84,7 @@ local axolotl = { fly = true, fly_in = { "mcl_core:water_source", "mclx_core:river_water_source" }, breathes_in_water = true, - jump = false, + jump = true, view_range = 16, runaway = true, fear_height = 4, @@ -105,7 +105,7 @@ local axolotl = { y = lp.y - s.y, z = lp.z - s.z } - if object and not object:is_player() and object:get_luaentity() and object:get_luaentity().name == "mobs_mc:axolotl" then + if object and not object:is_player() and object:get_luaentity() and object:get_luaentity().name == "extra_mobs_tropical_fish" then self.state = "runaway" self.object:set_rotation({x=0,y=(atan(vec.z / vec.x) + 3 * pi / 2) - self.rotate,z=0}) end