Add bone eating sound for wolf
parent
29d46a5949
commit
c2fe18def7
|
@ -223,6 +223,9 @@ Origin of those models:
|
||||||
* `mobs_mc_wolf_growl.*.ogg` (CC0)
|
* `mobs_mc_wolf_growl.*.ogg` (CC0)
|
||||||
* Sounds modified and simplified
|
* Sounds modified and simplified
|
||||||
* Source: "dogblocks" mod by Hybrid Dog <https://github.com/HybridDog/dogblocks/>
|
* 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)
|
* [Inocodum](https://forum.minetest.net/memberlist.php?mode=viewprofile&u=3115)
|
||||||
* `mobs_mc_silverfish_hurt.ogg` (CC BY-SA 4.0)
|
* `mobs_mc_silverfish_hurt.ogg` (CC BY-SA 4.0)
|
||||||
* `mobs_mc_silverfish_death.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
|
local dog, ent
|
||||||
if tool:get_name() == mobs_mc.items.bone then
|
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
|
if not minetest.is_creative_enabled(clicker:get_player_name()) then
|
||||||
tool:take_item()
|
tool:take_item()
|
||||||
clicker:set_wielded_item(tool)
|
clicker:set_wielded_item(tool)
|
||||||
|
@ -72,7 +73,8 @@ local wolf = {
|
||||||
ent = dog:get_luaentity()
|
ent = dog:get_luaentity()
|
||||||
ent.owner = clicker:get_player_name()
|
ent.owner = clicker:get_player_name()
|
||||||
-- cornfirm taming
|
-- 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()
|
self.object:remove()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue