1
0
Fork 0

Add pop sound when baby mob is born

mineclone5
jordan4ibanez 2021-04-25 01:24:19 -04:00
parent f83ccdb2ed
commit 38c22f277d
1 changed files with 2 additions and 0 deletions

View File

@ -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_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})) 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.special_breed_timer = 0
self.breed_lookout_timer = 0 self.breed_lookout_timer = 0
self.breed_timer = self.breed_timer_cooloff self.breed_timer = self.breed_timer_cooloff