Add Wither spawn sound

This commit is contained in:
Wuzzy 2020-12-05 20:13:14 +01:00
parent bccd91e08f
commit a764298923
3 changed files with 6 additions and 0 deletions

View file

@ -115,6 +115,9 @@ Origin of those models:
* Source: <https://freesound.org/people/Hitrison/sounds/251411/> * Source: <https://freesound.org/people/Hitrison/sounds/251411/>
* [NPXcoot](https://github.com/NPXcoot1) (CC BY-SA 4.0) * [NPXcoot](https://github.com/NPXcoot1) (CC BY-SA 4.0)
* `mobs_mc_ender_dragon_*` * `mobs_mc_ender_dragon_*`
* [bevibeldesign](https://freesound.org/people/bevibeldesign/)
* `mobs_mc_wither_spawn.ogg` (CC0)
* Source: <https://freesound.org/people/bevibeldesign/sounds/366095/>
* Blender Foundation (CC BY 3.0) * Blender Foundation (CC BY 3.0)
* `mobs_sheep.ogg`, * `mobs_sheep.ogg`,
* daufinsyd (MIT License) * daufinsyd (MIT License)

Binary file not shown.

View file

@ -63,6 +63,9 @@ mobs:register_mob("mobs_mc:wither", {
run_start = 0, run_end = 20, run_start = 0, run_end = 20,
}, },
harmed_by_heal = true, harmed_by_heal = true,
on_spawn = function(self)
minetest.sound_play("mobs_mc_wither_spawn", {object=self.object, gain=1.0, max_hear_distance=64})
end,
}) })
local mobs_griefing = minetest.settings:get_bool("mobs_griefing") ~= false local mobs_griefing = minetest.settings:get_bool("mobs_griefing") ~= false