From 0d6db95a9e30bace7b2dd06a09337bd95ebd9bce Mon Sep 17 00:00:00 2001 From: nixnoxus Date: Sun, 25 Feb 2024 19:00:51 +0100 Subject: [PATCH] fix skeletons and wolves behavior --- mods/ENTITIES/mobs_mc/skeleton+stray.lua | 1 + mods/ENTITIES/mobs_mc/skeleton_wither.lua | 1 + mods/ENTITIES/mobs_mc/wolf.lua | 10 +++++++++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/mods/ENTITIES/mobs_mc/skeleton+stray.lua b/mods/ENTITIES/mobs_mc/skeleton+stray.lua index 2ce2fba5b..2fbd1e824 100644 --- a/mods/ENTITIES/mobs_mc/skeleton+stray.lua +++ b/mods/ENTITIES/mobs_mc/skeleton+stray.lua @@ -46,6 +46,7 @@ local skeleton = { }, walk_velocity = 1.2, run_velocity = 2.0, + runaway_from = {"mobs_mc:wolf"}, damage = 2, reach = 2, drops = { diff --git a/mods/ENTITIES/mobs_mc/skeleton_wither.lua b/mods/ENTITIES/mobs_mc/skeleton_wither.lua index cd2b44abb..ec1d58b83 100644 --- a/mods/ENTITIES/mobs_mc/skeleton_wither.lua +++ b/mods/ENTITIES/mobs_mc/skeleton_wither.lua @@ -44,6 +44,7 @@ mcl_mobs.register_mob("mobs_mc:witherskeleton", { }, walk_velocity = 1.2, run_velocity = 2.0, + runaway_from = {"mobs_mc:wolf"}, damage = 7, reach = 2, drops = { diff --git a/mods/ENTITIES/mobs_mc/wolf.lua b/mods/ENTITIES/mobs_mc/wolf.lua index e2cb206b1..cfd2d06e6 100644 --- a/mods/ENTITIES/mobs_mc/wolf.lua +++ b/mods/ENTITIES/mobs_mc/wolf.lua @@ -97,7 +97,15 @@ local wolf = { jump = true, attacks_monsters = true, attack_animals = true, - specific_attack = { "player", "mobs_mc:sheep" }, + specific_attack = { + "player", + "mobs_mc:sheep", + "mobs_mc:rabbit", + -- TODO: "mobs_mc:fox", + "mobs_mc:skeleton", + "mobs_mc:stray", + "mobs_mc:witherskeleton", + }, } mcl_mobs.register_mob("mobs_mc:wolf", wolf)