forked from VoxeLibre/VoxeLibre
Add bone eating sound for wolf
This commit is contained in:
parent
29d46a5949
commit
c2fe18def7
|
@ -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)
|
||||
|
|
Binary file not shown.
|
@ -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
|
||||
|
|
Reference in New Issue