summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorAuke Kok <sofar@foo-projects.org>2015-11-25 22:54:31 -0800
committerAuke Kok <sofar@foo-projects.org>2015-11-25 22:54:31 -0800
commit180a1db44745e1d09f7463737122e54c63970c4d (patch)
treee5b9586a6d5df099aeef3d2d2fadbc5064d36bb8 /init.lua
parent5329ff5b369602918fbb70b61351b2d89ae440eb (diff)
Fly sounds.
These accomodate the fly particles around plants that died. probably gonna freak some players out ;^)
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index a7f0989..b8c9d1d 100644
--- a/init.lua
+++ b/init.lua
@@ -275,6 +275,7 @@ crops.die = function(pos)
local node = minetest.get_node(pos)
local plant = find_plant(node)
plant.properties.die(pos)
+ minetest.sound_play("crops_flies", {pos=pos, gain=0.8})
end
minetest.register_tool("crops:watering_can", {