groups = dgroups,
sounds = default.node_sound_wood_defaults(),
walkable = true,
- pipelike = 1,
- on_construct = function(pos)
- local meta = minetest.get_meta(pos)
- meta:set_int("pipelike",1)
- end,
after_place_node = function(pos)
pipe_scanforobjects(pos)
end,
groups = dgroups,
sounds = default.node_sound_wood_defaults(),
walkable = true,
- pipelike = 1,
- on_construct = function(pos)
- local meta = minetest.get_meta(pos)
- meta:set_int("pipelike",1)
- end,
after_place_node = function(pos)
pipe_scanforobjects(pos)
end,
pipe_scanforobjects(pos)
end,
drop = "pipeworks:valve_off",
- pipelike=1,
mesecons = {effector = {
action_on = function (pos, node)
minetest.add_node(pos,{name="pipeworks:valve_on_empty", param2 = node.param2})
groups = {snappy=3, pipe=1, not_in_creative_inventory=1},
sounds = default.node_sound_wood_defaults(),
walkable = true,
- pipelike = 1,
- on_construct = function(pos)
- local meta = minetest.get_meta(pos)
- meta:set_int("pipelike",1)
- end,
after_place_node = function(pos)
pipe_scanforobjects(pos)
end,
pipe_scanforobjects(pos)
end,
drop = "pipeworks:valve_off_empty",
- pipelike=1,
mesecons = {effector = {
action_on = function (pos, node)
minetest.add_node(pos,{name="pipeworks:valve_on_empty", param2 = node.param2})
after_dig_node = function(pos)
pipe_scanforobjects(pos)
end,
- pipelike=1,
- on_construct = function(pos)
- local meta = minetest.get_meta(pos)
- meta:set_int("pipelike",1)
- end,
})
-- outlet spigot
groups = {snappy=3, pipe=1},
sounds = default.node_sound_wood_defaults(),
walkable = true,
- pipelike=1,
- on_construct = function(pos)
- local meta = minetest.get_meta(pos)
- meta:set_int("pipelike",1)
- end,
after_place_node = function(pos)
pipe_scanforobjects(pos)
end,
groups = {snappy=3, pipe=1, not_in_creative_inventory=1},
sounds = default.node_sound_wood_defaults(),
walkable = true,
- pipelike=1,
- on_construct = function(pos)
- local meta = minetest.get_meta(pos)
- meta:set_int("pipelike",1)
- end,
after_place_node = function(pos)
pipe_scanforobjects(pos)
end,
after_dig_node = function(pos)
pipe_scanforobjects(pos)
end,
- pipelike=1,
- on_construct = function(pos)
- local meta = minetest.get_meta(pos)
- meta:set_int("pipelike",1)
- end,
node_box = {
type = "fixed",
fixed = airtightboxes,
after_dig_node = function(pos)
pipe_scanforobjects(pos)
end,
- pipelike=1,
- on_construct = function(pos)
- local meta = minetest.get_meta(pos)
- meta:set_int("pipelike",1)
- end,
node_box = {
type = "fixed",
fixed = airtightboxes,
after_dig_node = function(pos)
pipe_scanforobjects(pos)
end,
- pipelike=1,
on_construct = function(pos)
- local meta = minetest.get_meta(pos)
- meta:set_int("pipelike",1)
if mesecon then
mesecon:receptor_off(pos, rules)
end
after_dig_node = function(pos)
pipe_scanforobjects(pos)
end,
- pipelike=1,
on_construct = function(pos)
- local meta = minetest.get_meta(pos)
- meta:set_int("pipelike",1)
if mesecon then
mesecon:receptor_on(pos, rules)
end
after_dig_node = function(pos)
pipe_scanforobjects(pos)
end,
- pipelike=0,
- on_construct = function(pos)
- local meta = minetest.get_meta(pos)
- meta:set_int("pipelike",0)
- end,
})
minetest.register_node("pipeworks:storage_tank_"..fill, {
after_dig_node = function(pos)
pipe_scanforobjects(pos)
end,
- pipelike=1,
- on_construct = function(pos)
- local meta = minetest.get_meta(pos)
- meta:set_int("pipelike",1)
- end,
})
end
if node.name=="pipeworks:valve_on_empty" then
fdir = minetest.get_node(pos).param2
minetest.add_node(pos, { name = "pipeworks:valve_off_empty", param2 = fdir })
- local meta = minetest.get_meta(pos)
- meta:set_int("pipelike",0)
end
end)
if node.name=="pipeworks:valve_on_loaded" then
fdir = minetest.get_node(pos).param2
minetest.add_node(pos, { name = "pipeworks:valve_off_empty", param2 = fdir })
- local meta = minetest.get_meta(pos)
- meta:set_int("pipelike",0)
end
end)
if node.name=="pipeworks:valve_off_empty" then
fdir = minetest.get_node(pos).param2
minetest.add_node(pos, { name = "pipeworks:valve_on_empty", param2 = fdir })
- local meta = minetest.get_meta(pos)
- meta:set_int("pipelike",1)
end
end)