summaryrefslogtreecommitdiff
path: root/beanpole.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-04-01 11:02:18 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2016-04-01 11:02:18 +0100
commit2a6212020815e53540e0df28946e09a81546ff2b (patch)
treedc3ea6bcf5e4304eea4ad31df0bafd2f725cca0b /beanpole.lua
parenta084ab464eb332ca8c11b475cb625fbb8dc30d88 (diff)
Play sound when planting crops
Diffstat (limited to 'beanpole.lua')
-rw-r--r--beanpole.lua4
1 files changed, 3 insertions, 1 deletions
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