Add shears cut sound

This commit is contained in:
Wuzzy 2020-12-06 01:21:02 +01:00
parent c2fe18def7
commit b163d17a53
5 changed files with 13 additions and 3 deletions

View file

@ -91,7 +91,7 @@ mooshroom_def.on_rightclick = function(self, clicker)
-- Use shears to get mushrooms and turn mooshroom into cow
if item:get_name() == mobs_mc.items.shears then
local pos = self.object:get_pos()
minetest.sound_play("shears", {pos = pos}, true)
minetest.sound_play("mcl_tools_shears_cut", {pos = pos}, true)
if self.base_texture[1] == "mobs_mc_mooshroom_brown.png" then
minetest.add_item({x=pos.x, y=pos.y+1.4, z=pos.z}, mobs_mc.items.mushroom_brown .. " 5")

View file

@ -157,7 +157,7 @@ mobs:register_mob("mobs_mc:sheep", {
if item:get_name() == mobs_mc.items.shears and not self.gotten and not self.child then
self.gotten = true
local pos = self.object:get_pos()
minetest.sound_play("shears", {pos = pos}, true)
minetest.sound_play("mcl_tools_shears_cut", {pos = pos}, true)
pos.y = pos.y + 0.5
if not self.color then
self.color = "unicolor_white"

View file

@ -117,7 +117,7 @@ mobs:register_mob("mobs_mc:snowman", {
})
local pos = self.object:get_pos()
minetest.sound_play("shears", {pos = pos}, true)
minetest.sound_play("mcl_tools_shears_cut", {pos = pos}, true)
-- Wear out
if not minetest.is_creative_enabled(clicker:get_player_name()) then

View file

@ -0,0 +1,10 @@
This mod adds tools for MineClone 2.
## Credits
* `default_shears_cut.ogg:`
* Author: SmartWentCody (CC BY 3.0)
* Source: <https://freesound.org/people/SmartWentCody/sounds/179015/>
Other files:
See main MineClone 2 README.

Binary file not shown.