mirror of
https://git.minetest.land/Mineclonia/Mineclonia.git
synced 2024-11-24 06:05:11 +00:00
Add shears cut sound
This commit is contained in:
parent
c2fe18def7
commit
b163d17a53
5 changed files with 13 additions and 3 deletions
|
@ -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")
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
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 a new issue