From ae7995d195c113992fe6f220ffe2319ffebad06f Mon Sep 17 00:00:00 2001 From: kno10 Date: Sun, 27 Oct 2024 14:10:11 +0100 Subject: [PATCH] Fix axolotl attacking water mobs (#4675) Also avoid jumping out of the water closes #4644 Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4675 Reviewed-by: the-real-herowl Co-authored-by: kno10 Co-committed-by: kno10 --- mods/ENTITIES/mobs_mc/axolotl.lua | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/mods/ENTITIES/mobs_mc/axolotl.lua b/mods/ENTITIES/mobs_mc/axolotl.lua index a30f8ffe1..5f5a90764 100644 --- a/mods/ENTITIES/mobs_mc/axolotl.lua +++ b/mods/ENTITIES/mobs_mc/axolotl.lua @@ -72,18 +72,24 @@ local axolotl = { fly = true, fly_in = { "mcl_core:water_source", "mclx_core:river_water_source" }, breathes_in_water = true, - jump = true, + jump = false, -- would get them out of the water too often damage = 2, reach = 2, attack_type = "dogfight", attack_animals = true, specific_attack = { - "extra_mobs_cod", - "extra_mobs_glow_squid", - "extra_mobs_salmon", - "extra_mobs_tropical_fish", - "mobs_mc_squid" - }, + "mobs_mc:cod", + "mobs_mc:glow_squid", + "mobs_mc:salmon", + "mobs_mc:tropical_fish", + "mobs_mc:squid", + "mobs_mc:zombie", -- todo: only drowned? + "mobs_mc:baby_zombie", + "mobs_mc:husk", + "mobs_mc:baby_husk", + "mobs_mc:guardian_elder", + "mobs_mc:guardian", + }, runaway = true, }