From 2a6212020815e53540e0df28946e09a81546ff2b Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Fri, 1 Apr 2016 11:02:18 +0100 Subject: Play sound when planting crops --- beanpole.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'beanpole.lua') diff --git a/beanpole.lua b/beanpole.lua index d049438..4c14b80 100644 --- a/beanpole.lua +++ b/beanpole.lua @@ -19,7 +19,9 @@ minetest.register_craftitem("farming:beans", { local nodename = minetest.get_node(pointed_thing.under).name if nodename == "farming:beanpole" then - minetest.set_node(pointed_thing.under, {name="farming:beanpole_1"}) + minetest.set_node(pointed_thing.under, {name = "farming:beanpole_1"}) + + minetest.sound_play("default_place_node", {gain = 1.0}) else return end -- cgit v1.2.3