1
0
Fork 0

Add bone eating sound for wolf

objects
Wuzzy 2020-12-06 01:09:55 +01:00
parent 29d46a5949
commit c2fe18def7
3 changed files with 6 additions and 1 deletions

View File

@ -223,6 +223,9 @@ Origin of those models:
* `mobs_mc_wolf_growl.*.ogg` (CC0)
* Sounds modified and simplified
* Source: "dogblocks" mod by Hybrid Dog <https://github.com/HybridDog/dogblocks/>
* [cliftoncarlson](https://freesound.org/people/cliftonmcarlson/)
* `mobs_mc_wolf_take_bone.ogg` (CC0)
* Source: <https://freesound.org/people/cliftonmcarlson/sounds/392883/>
* [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)

View File

@ -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