From 38c22f277db652226ce9911e8bffbb8e8b8bc398 Mon Sep 17 00:00:00 2001 From: jordan4ibanez Date: Sun, 25 Apr 2021 01:24:19 -0400 Subject: [PATCH] Add pop sound when baby mob is born --- mods/ENTITIES/mcl_mobs/api/mob_functions/ai.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mods/ENTITIES/mcl_mobs/api/mob_functions/ai.lua b/mods/ENTITIES/mcl_mobs/api/mob_functions/ai.lua index 957b44ea01..da15e8bb8a 100644 --- a/mods/ENTITIES/mcl_mobs/api/mob_functions/ai.lua +++ b/mods/ENTITIES/mcl_mobs/api/mob_functions/ai.lua @@ -347,6 +347,8 @@ local land_state_execution = function(self,dtime) local baby_pos = vector.divide(vector.add(self.object:get_pos(), mate:get_pos()), 2) local baby_mob = minetest.add_entity(pos, self.name, minetest.serialize({baby = true, grow_up_timer = self.grow_up_goal, bred = true})) + mobs.play_sound_specific(self,"item_drop_pickup") + self.special_breed_timer = 0 self.breed_lookout_timer = 0 self.breed_timer = self.breed_timer_cooloff