summaryrefslogtreecommitdiff
path: root/grapes.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 /grapes.lua
parenta084ab464eb332ca8c11b475cb625fbb8dc30d88 (diff)
Play sound when planting crops
Diffstat (limited to 'grapes.lua')
-rw-r--r--grapes.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/grapes.lua b/grapes.lua
index a23f560..ffd5698 100644
--- a/grapes.lua
+++ b/grapes.lua
@@ -14,7 +14,9 @@ minetest.register_craftitem("farming:grapes", {
local nodename = minetest.get_node(pointed_thing.under).name
if nodename == "farming:trellis" then
- minetest.set_node(pointed_thing.under, {name="farming:grapes_1"})
+ minetest.set_node(pointed_thing.under, {name = "farming:grapes_1"})
+
+ minetest.sound_play("default_place_node", {gain = 1.0})
else
return
end