Skip to content

Commit

Permalink
Movestone servo-motor sound (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
leucome committed Jul 28, 2020
1 parent 75bd1e8 commit de4eeeb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mesecons_movestones/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file added mesecons_movestones/sounds/movestone.ogg
Binary file not shown.

0 comments on commit de4eeeb

Please sign in to comment.