diff --git a/mods/ENTITIES/mobs_mc/LICENSE-media.md b/mods/ENTITIES/mobs_mc/LICENSE-media.md index 30c42c740e..3a4fe83fa3 100644 --- a/mods/ENTITIES/mobs_mc/LICENSE-media.md +++ b/mods/ENTITIES/mobs_mc/LICENSE-media.md @@ -223,6 +223,9 @@ Origin of those models: * `mobs_mc_wolf_growl.*.ogg` (CC0) * Sounds modified and simplified * Source: "dogblocks" mod by Hybrid Dog +* [cliftoncarlson](https://freesound.org/people/cliftonmcarlson/) + * `mobs_mc_wolf_take_bone.ogg` (CC0) + * Source: * [Inocodum](https://forum.minetest.net/memberlist.php?mode=viewprofile&u=3115) * `mobs_mc_silverfish_hurt.ogg` (CC BY-SA 4.0) * `mobs_mc_silverfish_death.ogg` (CC BY-SA 4.0) diff --git a/mods/ENTITIES/mobs_mc/sounds/mobs_mc_wolf_take_bone.ogg b/mods/ENTITIES/mobs_mc/sounds/mobs_mc_wolf_take_bone.ogg new file mode 100644 index 0000000000..3c1b6913ee Binary files /dev/null and b/mods/ENTITIES/mobs_mc/sounds/mobs_mc_wolf_take_bone.ogg differ diff --git a/mods/ENTITIES/mobs_mc/wolf.lua b/mods/ENTITIES/mobs_mc/wolf.lua index f0b74be4a7..b02999fa44 100644 --- a/mods/ENTITIES/mobs_mc/wolf.lua +++ b/mods/ENTITIES/mobs_mc/wolf.lua @@ -60,6 +60,7 @@ local wolf = { local dog, ent if tool:get_name() == mobs_mc.items.bone then + minetest.sound_play("mobs_mc_wolf_take_bone", {object=self.object, max_hear_distance=16}, true) if not minetest.is_creative_enabled(clicker:get_player_name()) then tool:take_item() clicker:set_wielded_item(tool) @@ -72,7 +73,8 @@ local wolf = { ent = dog:get_luaentity() ent.owner = clicker:get_player_name() -- cornfirm taming - minetest.sound_play("mobs_mc_wolf_bark", {object=self.object, max_hear_distance=16}, true) + minetest.sound_play("mobs_mc_wolf_bark", {object=dog, max_hear_distance=16}, true) + -- Replace wolf self.object:remove() end end