Change redstone open/close rules of doors etc.

This commit is contained in:
Wuzzy 2018-01-10 02:25:20 +01:00
parent 10c2097ac1
commit 3830e5d24c
3 changed files with 6 additions and 3 deletions

View file

@ -334,7 +334,7 @@ function mcl_doors:register_door(name, def)
on_rightclick = on_rightclick, on_rightclick = on_rightclick,
mesecons = { effector = { mesecons = { effector = {
action_on = on_mesecons_signal_close action_off = on_mesecons_signal_close
}}, }},
can_dig = check_player_priv, can_dig = check_player_priv,
@ -381,7 +381,7 @@ function mcl_doors:register_door(name, def)
on_rightclick = on_rightclick, on_rightclick = on_rightclick,
mesecons = { effector = { mesecons = { effector = {
action_on = on_mesecons_signal_close_top action_off = on_mesecons_signal_close_top
}}, }},
can_dig = check_player_priv, can_dig = check_player_priv,

View file

@ -180,7 +180,7 @@ function mcl_doors:register_trapdoor(name, def)
}, },
on_rightclick = on_rightclick, on_rightclick = on_rightclick,
mesecons = {effector = { mesecons = {effector = {
action_on = (function(pos, node) action_off = (function(pos, node)
punch(pos) punch(pos)
end), end),
}}, }},

View file

@ -158,6 +158,9 @@ mcl_fences.register_fence_gate = function(id, fence_gate_name, texture, groups,
punch_gate(pos, node) punch_gate(pos, node)
end, end,
mesecons = {effector = { mesecons = {effector = {
action_off = (function(pos, node)
punch_gate(pos, node)
end),
action_on = (function(pos, node) action_on = (function(pos, node)
punch_gate(pos, node) punch_gate(pos, node)
end), end),