diff --git a/mods/ENTITIES/mobs_mc/LICENSE-media.md b/mods/ENTITIES/mobs_mc/LICENSE-media.md index d9de6ce7ec..3f85bfc8b3 100644 --- a/mods/ENTITIES/mobs_mc/LICENSE-media.md +++ b/mods/ENTITIES/mobs_mc/LICENSE-media.md @@ -105,6 +105,14 @@ Origin of those models: * `mobs_mc_cow_hurt.ogg` (CC0) * Heavily modified * Source: +* [Klaraschick](https://freesound.org/people/Klaraschick/) + * `mobs_mc_cow_milk.ogg` (CC0) + * shortened + * Source: +* [Hitrison](https://freesound.org/people/Hitrison/) + * `mobs_mc_cow_mushroom_stew.ogg` (CC BY 3.0) + * sound was modified + * Source: * [NPXcoot](https://github.com/NPXcoot1) (CC BY-SA 4.0) * `mobs_mc_ender_dragon_*` * Blender Foundation (CC BY 3.0) diff --git a/mods/ENTITIES/mobs_mc/cow+mooshroom.lua b/mods/ENTITIES/mobs_mc/cow+mooshroom.lua index dc231627c3..767bfd1598 100644 --- a/mods/ENTITIES/mobs_mc/cow+mooshroom.lua +++ b/mods/ENTITIES/mobs_mc/cow+mooshroom.lua @@ -54,6 +54,7 @@ local cow_def = { if item:get_name() == mobs_mc.items.bucket and clicker:get_inventory() then local inv = clicker:get_inventory() inv:remove_item("main", mobs_mc.items.bucket) + minetest.sound_play("mobs_mc_cow_milk", {pos=self.object:get_pos(), gain=0.6}) -- if room add bucket of milk to inventory, otherwise drop as item if inv:room_for_item("main", {name=mobs_mc.items.milk}) then clicker:get_inventory():add_item("main", mobs_mc.items.milk) @@ -110,6 +111,7 @@ mooshroom_def.on_rightclick = function(self, clicker) elseif item:get_name() == mobs_mc.items.bucket and clicker:get_inventory() then local inv = clicker:get_inventory() inv:remove_item("main", mobs_mc.items.bucket) + minetest.sound_play("mobs_mc_cow_milk", {pos=self.object:get_pos(), gain=0.6}) -- If room, add milk to inventory, otherwise drop as item if inv:room_for_item("main", {name=mobs_mc.items.milk}) then clicker:get_inventory():add_item("main", mobs_mc.items.milk) @@ -122,6 +124,7 @@ mooshroom_def.on_rightclick = function(self, clicker) elseif item:get_name() == mobs_mc.items.bowl and clicker:get_inventory() then local inv = clicker:get_inventory() inv:remove_item("main", mobs_mc.items.bowl) + minetest.sound_play("mobs_mc_cow_mushroom_stew", {pos=self.object:get_pos(), gain=0.6}) -- If room, add mushroom stew to inventory, otherwise drop as item if inv:room_for_item("main", {name=mobs_mc.items.mushroom_stew}) then clicker:get_inventory():add_item("main", mobs_mc.items.mushroom_stew) diff --git a/mods/ENTITIES/mobs_mc/sounds/mobs_mc_cow_milk.ogg b/mods/ENTITIES/mobs_mc/sounds/mobs_mc_cow_milk.ogg new file mode 100644 index 0000000000..a9163e1b3c Binary files /dev/null and b/mods/ENTITIES/mobs_mc/sounds/mobs_mc_cow_milk.ogg differ diff --git a/mods/ENTITIES/mobs_mc/sounds/mobs_mc_cow_mushroom_stew.ogg b/mods/ENTITIES/mobs_mc/sounds/mobs_mc_cow_mushroom_stew.ogg new file mode 100644 index 0000000000..d120e860f0 Binary files /dev/null and b/mods/ENTITIES/mobs_mc/sounds/mobs_mc_cow_mushroom_stew.ogg differ