Movestone servo-motor sound (#487)

This commit is contained in:
leucome 2020-07-28 12:55:56 -04:00 committed by GitHub
parent 75bd1e8be6
commit de4eeebd3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 0 deletions

View File

@ -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

Binary file not shown.