mirror of
https://github.com/minetest-mods/MoreMesecons.git
synced 2025-01-09 17:30:24 +01:00
add jammer sound
M moremesecons_jammer/init.lua A moremesecons_jammer/sounds/moremesecons_jammer.ogg
This commit is contained in:
parent
d35966f082
commit
cac0ca5ba5
@ -101,6 +101,7 @@ mesecon.register_node("moremesecons_jammer:jammer", {
|
|||||||
mesecons = {effector = {
|
mesecons = {effector = {
|
||||||
action_on = function(pos)
|
action_on = function(pos)
|
||||||
add_jammer(pos)
|
add_jammer(pos)
|
||||||
|
minetest.sound_play("moremesecons_jammer", {pos = pos})
|
||||||
minetest.swap_node(pos, {name="moremesecons_jammer:jammer_on"})
|
minetest.swap_node(pos, {name="moremesecons_jammer:jammer_on"})
|
||||||
end
|
end
|
||||||
}},
|
}},
|
||||||
|
BIN
moremesecons_jammer/sounds/moremesecons_jammer.ogg
Normal file
BIN
moremesecons_jammer/sounds/moremesecons_jammer.ogg
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user