diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2016-04-01 11:02:18 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2016-04-01 11:02:18 +0100 |
commit | 2a6212020815e53540e0df28946e09a81546ff2b (patch) | |
tree | dc3ea6bcf5e4304eea4ad31df0bafd2f725cca0b /beanpole.lua | |
parent | a084ab464eb332ca8c11b475cb625fbb8dc30d88 (diff) |
Play sound when planting crops
Diffstat (limited to 'beanpole.lua')
-rw-r--r-- | beanpole.lua | 4 |
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 |