Change redstone open/close rules of doors etc.
This commit is contained in:
parent
10c2097ac1
commit
3830e5d24c
|
@ -334,7 +334,7 @@ function mcl_doors:register_door(name, def)
|
|||
on_rightclick = on_rightclick,
|
||||
|
||||
mesecons = { effector = {
|
||||
action_on = on_mesecons_signal_close
|
||||
action_off = on_mesecons_signal_close
|
||||
}},
|
||||
|
||||
can_dig = check_player_priv,
|
||||
|
@ -381,7 +381,7 @@ function mcl_doors:register_door(name, def)
|
|||
on_rightclick = on_rightclick,
|
||||
|
||||
mesecons = { effector = {
|
||||
action_on = on_mesecons_signal_close_top
|
||||
action_off = on_mesecons_signal_close_top
|
||||
}},
|
||||
|
||||
can_dig = check_player_priv,
|
||||
|
|
|
@ -180,7 +180,7 @@ function mcl_doors:register_trapdoor(name, def)
|
|||
},
|
||||
on_rightclick = on_rightclick,
|
||||
mesecons = {effector = {
|
||||
action_on = (function(pos, node)
|
||||
action_off = (function(pos, node)
|
||||
punch(pos)
|
||||
end),
|
||||
}},
|
||||
|
|
|
@ -158,6 +158,9 @@ mcl_fences.register_fence_gate = function(id, fence_gate_name, texture, groups,
|
|||
punch_gate(pos, node)
|
||||
end,
|
||||
mesecons = {effector = {
|
||||
action_off = (function(pos, node)
|
||||
punch_gate(pos, node)
|
||||
end),
|
||||
action_on = (function(pos, node)
|
||||
punch_gate(pos, node)
|
||||
end),
|
||||
|
|
Loading…
Reference in New Issue