diff options
author | Anthony Zhang <azhang9@gmail.com> | 2013-03-06 20:51:57 -0500 |
---|---|---|
committer | Anthony Zhang <azhang9@gmail.com> | 2013-03-06 20:51:57 -0500 |
commit | 3792b692aafed0ce6b0092b34278ad391b9eaf27 (patch) | |
tree | b369d66cdf9e418e014131f00d5a3547a4fc78e9 /mesecons_lamp/init.lua | |
parent | 84d5546df1fbe17b7f6b60ec53fb596343d93340 (diff) |
Digging and footstep sounds for everything that needs them! Plus, pushing buttons, punching switches, and flipping levers all make sounds.
Diffstat (limited to 'mesecons_lamp/init.lua')
-rw-r--r-- | mesecons_lamp/init.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mesecons_lamp/init.lua b/mesecons_lamp/init.lua index 175a22b..8b5a4ab 100644 --- a/mesecons_lamp/init.lua +++ b/mesecons_lamp/init.lua @@ -22,6 +22,7 @@ minetest.register_node("mesecons_lamp:lamp_on", { selection_box = mesecon_lamp_box, groups = {dig_immediate=3,not_in_creative_inventory=1, mesecon_effector_on = 1}, drop='"mesecons_lamp:lamp_off" 1', + sounds = default.node_sound_glass_defaults(), mesecons = {effector = { action_off = function (pos, node) mesecon:swap_node(pos, "mesecons_lamp:lamp_off") @@ -42,6 +43,7 @@ minetest.register_node("mesecons_lamp:lamp_off", { selection_box = mesecon_lamp_box, groups = {dig_immediate=3, mesecon_receptor_off = 1, mesecon_effector_off = 1}, description="Meselamp", + sounds = default.node_sound_glass_defaults(), mesecons = {effector = { action_on = function (pos, node) mesecon:swap_node(pos, "mesecons_lamp:lamp_on") |