summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorleucome <leucome@hotmail.com>2020-07-28 12:55:56 -0400
committerGitHub <noreply@github.com>2020-07-28 19:55:56 +0300
commitde4eeebd3b38fb1f9e9937a36e3288d0b9a66ec9 (patch)
tree3a312f68c467c332b45ceb6719e57df1cc621a82
parent75bd1e8be6e9dbcfb722790087a9ed30046d8136 (diff)
downloadmesecons-de4eeebd3b38fb1f9e9937a36e3288d0b9a66ec9.tar
mesecons-de4eeebd3b38fb1f9e9937a36e3288d0b9a66ec9.tar.gz
mesecons-de4eeebd3b38fb1f9e9937a36e3288d0b9a66ec9.tar.bz2
mesecons-de4eeebd3b38fb1f9e9937a36e3288d0b9a66ec9.tar.xz
mesecons-de4eeebd3b38fb1f9e9937a36e3288d0b9a66ec9.zip
Movestone servo-motor sound (#487)
-rw-r--r--mesecons_movestones/init.lua1
-rw-r--r--mesecons_movestones/sounds/movestone.oggbin0 -> 12350 bytes
2 files changed, 1 insertions, 0 deletions
diff --git a/mesecons_movestones/init.lua b/mesecons_movestones/init.lua
index 49ac2b5..cc2d942 100644
--- a/mesecons_movestones/init.lua
+++ b/mesecons_movestones/init.lua
@@ -66,6 +66,7 @@ function mesecon.register_movestone(name, def, is_sticky, is_vertical)
mesecon.on_dignode(pos, node)
mesecon.on_placenode(frontpos, node)
minetest.get_node_timer(frontpos):start(timer_interval)
+ minetest.sound_play("movestone", {pos = pos, max_hear_distance = 20, gain = 0.5,})
-- ### Step 3: If sticky, pull stack behind ###
if is_sticky then
diff --git a/mesecons_movestones/sounds/movestone.ogg b/mesecons_movestones/sounds/movestone.ogg
new file mode 100644
index 0000000..1910d0c
--- /dev/null
+++ b/mesecons_movestones/sounds/movestone.ogg
Binary files differ