diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2016-04-01 11:05:18 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2016-04-01 11:05:18 +0100 |
commit | e97439084433f572dbf4103fc0cffff7f3d5a901 (patch) | |
tree | 650df2edceb7d736dd3bbd7a9ca941f7e2b8e890 | |
parent | 2a6212020815e53540e0df28946e09a81546ff2b (diff) |
Play sounds when planting crops
-rw-r--r-- | cocoa.lua | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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() |