Add shears cut sound
This commit is contained in:
parent
c2fe18def7
commit
b163d17a53
|
@ -91,7 +91,7 @@ mooshroom_def.on_rightclick = function(self, clicker)
|
||||||
-- Use shears to get mushrooms and turn mooshroom into cow
|
-- Use shears to get mushrooms and turn mooshroom into cow
|
||||||
if item:get_name() == mobs_mc.items.shears then
|
if item:get_name() == mobs_mc.items.shears then
|
||||||
local pos = self.object:get_pos()
|
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
|
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")
|
minetest.add_item({x=pos.x, y=pos.y+1.4, z=pos.z}, mobs_mc.items.mushroom_brown .. " 5")
|
||||||
|
|
|
@ -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
|
if item:get_name() == mobs_mc.items.shears and not self.gotten and not self.child then
|
||||||
self.gotten = true
|
self.gotten = true
|
||||||
local pos = self.object:get_pos()
|
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
|
pos.y = pos.y + 0.5
|
||||||
if not self.color then
|
if not self.color then
|
||||||
self.color = "unicolor_white"
|
self.color = "unicolor_white"
|
||||||
|
|
|
@ -117,7 +117,7 @@ mobs:register_mob("mobs_mc:snowman", {
|
||||||
})
|
})
|
||||||
|
|
||||||
local pos = self.object:get_pos()
|
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
|
-- Wear out
|
||||||
if not minetest.is_creative_enabled(clicker:get_player_name()) then
|
if not minetest.is_creative_enabled(clicker:get_player_name()) then
|
||||||
|
|
10
mods/ITEMS/mcl_tools/README.md
Normal file
10
mods/ITEMS/mcl_tools/README.md
Normal 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.
|
BIN
mods/ITEMS/mcl_tools/sounds/mcl_tools_shears_cut.ogg
Normal file
BIN
mods/ITEMS/mcl_tools/sounds/mcl_tools_shears_cut.ogg
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user