From e97439084433f572dbf4103fc0cffff7f3d5a901 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Fri, 1 Apr 2016 11:05:18 +0100 Subject: [PATCH] Play sounds when planting crops --- cocoa.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cocoa.lua b/cocoa.lua index e5e50cf..b618114 100644 --- a/cocoa.lua +++ b/cocoa.lua @@ -24,6 +24,8 @@ function place_cocoa(itemstack, placer, pointed_thing, plantname) -- add the node and remove 1 item from the itemstack minetest.set_node(pt.above, {name = plantname}) + minetest.sound_play("default_place_node", {gain = 1.0}) + if not minetest.setting_getbool("creative_mode") then itemstack:take_item()