forked from VoxeLibre/VoxeLibre
Add Wither spawn sound
This commit is contained in:
parent
bccd91e08f
commit
a764298923
|
@ -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.
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue