after_dig_node = function(pos)
pipe_scanforobjects(pos)
end,
- drop = "pipeworks:pump_off"
+ drop = "pipeworks:pump_off",
+ mesecons = {effector = {
+ action_on = function (pos, node)
+ minetest.env:add_node(pos,{name="pipeworks:pump_on", param2 = node.param2})
+ end,
+ action_off = function (pos, node)
+ minetest.env:add_node(pos,{name="pipeworks:pump_off", param2 = node.param2})
+ end
+ }}
})
local valveboxes = {}
end,
drop = "pipeworks:valve_off",
pipelike=1,
+ mesecons = {effector = {
+ action_on = function (pos, node)
+ minetest.env:add_node(pos,{name="pipeworks:valve_on_empty", param2 = node.param2})
+ end,
+ action_off = function (pos, node)
+ minetest.env:add_node(pos,{name="pipeworks:valve_off_empty", param2 = node.param2})
+ end
+ }}
})
end
end,
drop = "pipeworks:valve_off_empty",
pipelike=1,
+ mesecons = {effector = {
+ action_on = function (pos, node)
+ minetest.env:add_node(pos,{name="pipeworks:valve_on_empty", param2 = node.param2})
+ end,
+ action_off = function (pos, node)
+ minetest.env:add_node(pos,{name="pipeworks:valve_off_empty", param2 = node.param2})
+ end
+ }}
})
-- grating
{ -2/16, -2/16, -8/16, 2/16, 2/16, 8/16 },
{ -8/16, -8/16, -1/16, 8/16, 8/16, 1/16 }
}
- }
+ },
+ drop = "pipeworks:entry_panel_empty"
})
-- tanks