1
0
Fork 0

fix constant need to run for the hills, restore ability to jump

previous commit just added comments.
This commit is contained in:
TheOnlyJoeEnderman 2022-11-02 04:30:09 +00:00
parent 3bdd1ea160
commit d5ca4fca9b
1 changed files with 2 additions and 2 deletions

View File

@ -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