Add support for the preinstalled wooden door in minetest_game

This commit is contained in:
Jeija 2012-12-08 12:13:45 +01:00
parent 3926c46293
commit 12206ac190
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1 @@
mesecons

View File

@ -0,0 +1,11 @@
minetest.after(0,
function ()
if minetest.registered_nodes["doors:door_wood_b_1"] then
mesecon:register_effector("doors:door_wood_b_1", "doors:door_wood_b_2")
mesecon:register_on_signal_change(function(pos, node)
if node.name == "doors:door_wood_b_2" or node.name == "doors:door_wood_b_1" then
minetest.registered_nodes[node.name].on_punch(pos, node)
end
end)
end
end)