2022-03-15 02:39:58 +01:00
|
|
|
local materials = {
|
|
|
|
stone = "default:stone",
|
|
|
|
desert_stone = "default:desert_stone",
|
|
|
|
desert_sand = "default:desert_sand",
|
|
|
|
chest = "default:chest",
|
|
|
|
copper_ingot = "default:copper_ingot",
|
|
|
|
steel_ingot = "default:steel_ingot",
|
|
|
|
gold_ingot = "default:gold_ingot",
|
2022-05-13 04:52:17 +02:00
|
|
|
mese = "default:mese",
|
|
|
|
mese_crystal = "default:mese_crystal",
|
2022-03-15 02:39:58 +01:00
|
|
|
mese_crystal_fragment = "default:mese_crystal_fragment",
|
2022-05-13 04:52:17 +02:00
|
|
|
teleporter = "default:mese",
|
|
|
|
glass = "default:glass",
|
2022-03-15 02:39:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
if minetest.get_modpath("mcl_core") then
|
|
|
|
materials = {
|
|
|
|
stone = "mcl_core:stone",
|
2023-09-06 12:01:35 +02:00
|
|
|
desert_stone = "mcl_core:redsandstone",
|
2022-03-15 02:39:58 +01:00
|
|
|
desert_sand = "mcl_core:sand",
|
2023-10-10 00:22:14 +02:00
|
|
|
chest = "mcl_chests:chest",
|
2022-03-15 02:39:58 +01:00
|
|
|
steel_ingot = "mcl_core:iron_ingot",
|
|
|
|
gold_ingot = "mcl_core:gold_ingot",
|
2023-09-06 12:01:35 +02:00
|
|
|
mese = "mesecons_torch:redstoneblock",
|
|
|
|
mese_crystal = "mesecons:redstone",
|
2022-03-15 02:39:58 +01:00
|
|
|
mese_crystal_fragment = "mesecons:redstone",
|
2023-09-06 12:01:35 +02:00
|
|
|
teleporter = "mesecons_torch:redstoneblock",
|
|
|
|
copper_ingot = "mcl_copper:copper_ingot",
|
|
|
|
glass = "mcl_core:glass",
|
2022-03-15 02:39:58 +01:00
|
|
|
}
|
|
|
|
elseif minetest.get_modpath("fl_ores") and minetest.get_modpath("fl_stone") then
|
|
|
|
materials = {
|
|
|
|
stone = "fl_stone:stone",
|
|
|
|
desert_stone = "fl_stone:desert_stone",
|
|
|
|
desert_sand = "fl_stone:desert_sand",
|
|
|
|
chest = "fl_storage:wood_chest",
|
|
|
|
steel_ingot = "fl_ores:iron_ingot",
|
|
|
|
gold_ingot = "fl_ores:gold_ingot",
|
2022-05-13 04:52:17 +02:00
|
|
|
mese = "fl_ores:iron_ingot",
|
|
|
|
mese_crystal = "fl_ores:iron_ingot",
|
2022-03-15 02:39:58 +01:00
|
|
|
mese_crystal_fragment = "fl_ores:iron_ingot",
|
2022-05-13 04:52:17 +02:00
|
|
|
teleporter = "fl_ores:iron_ingot",
|
2022-03-15 02:39:58 +01:00
|
|
|
copper_ingot = "fl_ores:copper_ingot",
|
2022-05-13 04:52:17 +02:00
|
|
|
glass = "fl_glass:framed_glass",
|
2022-03-15 02:39:58 +01:00
|
|
|
}
|
|
|
|
elseif minetest.get_modpath("hades_core") then
|
|
|
|
materials = {
|
|
|
|
stone = "hades_core:stone",
|
2022-05-13 04:52:17 +02:00
|
|
|
desert_stone = "hades_core:stone_baked",
|
|
|
|
desert_sand = "hades_core:volcanic_sand",
|
|
|
|
chest = "hades_chests:chest";
|
2022-03-15 02:39:58 +01:00
|
|
|
steel_ingot = "hades_core:steel_ingot",
|
|
|
|
gold_ingot = "hades_core:gold_ingot",
|
2022-05-13 04:52:17 +02:00
|
|
|
mese = "hades_core:mese",
|
|
|
|
mese_crystal = "hades_core:mese_crystal",
|
2022-03-15 02:39:58 +01:00
|
|
|
mese_crystal_fragment = "hades_core:mese_crystal_fragment",
|
2022-05-13 04:52:17 +02:00
|
|
|
teleporter = "hades_materials:teleporter_device",
|
2022-03-15 02:39:58 +01:00
|
|
|
copper_ingot = "hades_core:copper_ingot",
|
|
|
|
tin_ingot = "hades_core:tin_ingot",
|
2022-05-13 04:52:17 +02:00
|
|
|
glass = "hades_core:glass",
|
2022-03-15 02:39:58 +01:00
|
|
|
}
|
2022-05-13 04:52:17 +02:00
|
|
|
if minetest.get_modpath("hades_default") then
|
|
|
|
materials.desert_sand = "hades_default:desert_sand"
|
|
|
|
end
|
2022-03-15 02:39:58 +01:00
|
|
|
end
|
|
|
|
|
2013-01-27 19:59:18 +01:00
|
|
|
-- Crafting recipes for pipes
|
2012-09-02 18:55:14 +02:00
|
|
|
|
2013-01-27 19:59:18 +01:00
|
|
|
minetest.register_craft( {
|
2022-05-13 04:52:17 +02:00
|
|
|
output = "pipeworks:pipe_1_empty 12",
|
|
|
|
recipe = {
|
|
|
|
{ materials.steel_ingot, materials.steel_ingot, materials.steel_ingot },
|
|
|
|
{ "", "", "" },
|
|
|
|
{ materials.steel_ingot, materials.steel_ingot, materials.steel_ingot }
|
|
|
|
},
|
2013-01-27 19:59:18 +01:00
|
|
|
})
|
2012-09-02 18:55:14 +02:00
|
|
|
|
2017-11-11 04:37:26 +01:00
|
|
|
minetest.register_craft( {
|
2022-05-13 04:52:17 +02:00
|
|
|
output = "pipeworks:straight_pipe_empty 3",
|
|
|
|
recipe = {
|
|
|
|
{ "pipeworks:pipe_1_empty", "pipeworks:pipe_1_empty", "pipeworks:pipe_1_empty" },
|
|
|
|
},
|
2017-11-11 04:37:26 +01:00
|
|
|
})
|
|
|
|
|
2013-01-27 19:59:18 +01:00
|
|
|
minetest.register_craft( {
|
2022-05-13 04:52:17 +02:00
|
|
|
output = "pipeworks:spigot 3",
|
|
|
|
recipe = {
|
|
|
|
{ "pipeworks:pipe_1_empty", "" },
|
|
|
|
{ "", "pipeworks:pipe_1_empty" },
|
|
|
|
},
|
2013-01-27 19:59:18 +01:00
|
|
|
})
|
2012-09-02 18:55:14 +02:00
|
|
|
|
2013-01-27 19:59:18 +01:00
|
|
|
minetest.register_craft( {
|
2022-03-15 02:39:58 +01:00
|
|
|
output = "pipeworks:entry_panel_empty 2",
|
|
|
|
recipe = {
|
2022-05-13 04:52:17 +02:00
|
|
|
{ "", materials.steel_ingot, "" },
|
|
|
|
{ "", "pipeworks:pipe_1_empty", "" },
|
|
|
|
{ "", materials.steel_ingot, "" },
|
2022-03-15 02:39:58 +01:00
|
|
|
},
|
2013-01-27 19:59:18 +01:00
|
|
|
})
|
2012-09-02 18:55:14 +02:00
|
|
|
|
2013-01-27 19:59:18 +01:00
|
|
|
-- Various ancillary pipe devices
|
2012-09-02 18:55:14 +02:00
|
|
|
|
2013-01-27 19:59:18 +01:00
|
|
|
minetest.register_craft( {
|
2022-05-13 04:52:17 +02:00
|
|
|
output = "pipeworks:pump_off 2",
|
|
|
|
recipe = {
|
|
|
|
{ materials.stone, materials.steel_ingot, materials.stone },
|
|
|
|
{ materials.copper_ingot, materials.mese_crystal_fragment, materials.copper_ingot },
|
|
|
|
{ materials.steel_ingot, materials.steel_ingot, materials.steel_ingot }
|
|
|
|
},
|
2022-03-15 02:39:58 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
2022-05-13 04:52:17 +02:00
|
|
|
output = "pipeworks:valve_off_empty 2",
|
|
|
|
recipe = {
|
|
|
|
{ "", "group:stick", "" },
|
|
|
|
{ materials.steel_ingot, materials.steel_ingot, materials.steel_ingot },
|
|
|
|
{ "", materials.steel_ingot, "" }
|
|
|
|
},
|
2022-03-15 02:39:58 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
2022-05-13 04:52:17 +02:00
|
|
|
output = "pipeworks:storage_tank_0 2",
|
|
|
|
recipe = {
|
|
|
|
{ "", materials.steel_ingot, materials.steel_ingot },
|
|
|
|
{ materials.steel_ingot, materials.glass, materials.steel_ingot },
|
|
|
|
{ materials.steel_ingot, materials.steel_ingot, "" }
|
|
|
|
},
|
2022-03-15 02:39:58 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
2022-05-13 04:52:17 +02:00
|
|
|
output = "pipeworks:grating 2",
|
|
|
|
recipe = {
|
|
|
|
{ materials.steel_ingot, "", materials.steel_ingot },
|
|
|
|
{ "", "pipeworks:pipe_1_empty", "" },
|
|
|
|
{ materials.steel_ingot, "", materials.steel_ingot }
|
|
|
|
},
|
2013-01-27 19:59:18 +01:00
|
|
|
})
|
2012-09-02 18:55:14 +02:00
|
|
|
|
2013-01-27 19:59:18 +01:00
|
|
|
minetest.register_craft( {
|
2022-05-13 04:52:17 +02:00
|
|
|
output = "pipeworks:flow_sensor_empty 2",
|
|
|
|
recipe = {
|
|
|
|
{ "pipeworks:pipe_1_empty", "mesecons:mesecon", "pipeworks:pipe_1_empty" },
|
|
|
|
},
|
2022-03-15 02:39:58 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
2022-05-13 04:52:17 +02:00
|
|
|
output = "pipeworks:fountainhead 2",
|
|
|
|
recipe = {
|
|
|
|
{ "pipeworks:pipe_1_empty" },
|
|
|
|
{ "pipeworks:pipe_1_empty" }
|
|
|
|
},
|
2022-03-15 02:39:58 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
-- injectors
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
output = "pipeworks:filter 2",
|
|
|
|
recipe = {
|
2022-05-13 04:52:17 +02:00
|
|
|
{ materials.steel_ingot, materials.steel_ingot, "basic_materials:plastic_sheet" },
|
|
|
|
{ "group:stick", materials.mese_crystal, "basic_materials:plastic_sheet" },
|
|
|
|
{ materials.steel_ingot, materials.steel_ingot, "basic_materials:plastic_sheet" }
|
2022-03-15 02:39:58 +01:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
output = "pipeworks:mese_filter 2",
|
|
|
|
recipe = {
|
2022-05-13 04:52:17 +02:00
|
|
|
{ materials.steel_ingot, materials.steel_ingot, "basic_materials:plastic_sheet" },
|
|
|
|
{ "group:stick", materials.mese, "basic_materials:plastic_sheet" },
|
|
|
|
{ materials.steel_ingot, materials.steel_ingot, "basic_materials:plastic_sheet" }
|
2022-03-15 02:39:58 +01:00
|
|
|
},
|
2013-01-27 19:59:18 +01:00
|
|
|
})
|
2012-09-02 18:55:14 +02:00
|
|
|
|
2022-03-15 02:39:58 +01:00
|
|
|
if minetest.get_modpath("digilines") then
|
|
|
|
minetest.register_craft( {
|
|
|
|
output = "pipeworks:digiline_filter 2",
|
|
|
|
recipe = {
|
|
|
|
{ materials.steel_ingot, materials.steel_ingot, "basic_materials:plastic_sheet" },
|
|
|
|
{ "group:stick", "digilines:wire_std_00000000", "basic_materials:plastic_sheet" },
|
|
|
|
{ materials.steel_ingot, materials.steel_ingot, "basic_materials:plastic_sheet" }
|
|
|
|
},
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
-- other
|
|
|
|
|
2013-01-27 19:59:18 +01:00
|
|
|
minetest.register_craft( {
|
2022-03-15 02:39:58 +01:00
|
|
|
output = "pipeworks:autocrafter 2",
|
|
|
|
recipe = {
|
2022-05-13 04:52:17 +02:00
|
|
|
{ materials.steel_ingot, materials.mese_crystal, materials.steel_ingot },
|
|
|
|
{ "basic_materials:plastic_sheet", materials.steel_ingot, "basic_materials:plastic_sheet" },
|
|
|
|
{ materials.steel_ingot, materials.mese_crystal, materials.steel_ingot }
|
2022-03-15 02:39:58 +01:00
|
|
|
},
|
2013-01-27 19:59:18 +01:00
|
|
|
})
|
2012-09-02 18:55:14 +02:00
|
|
|
|
2013-01-27 19:59:18 +01:00
|
|
|
minetest.register_craft( {
|
2022-03-15 02:39:58 +01:00
|
|
|
output = "pipeworks:steel_block_embedded_tube 1",
|
|
|
|
recipe = {
|
|
|
|
{ materials.steel_ingot, materials.steel_ingot, materials.steel_ingot },
|
|
|
|
{ materials.steel_ingot, "pipeworks:tube_1", materials.steel_ingot },
|
|
|
|
{ materials.steel_ingot, materials.steel_ingot, materials.steel_ingot }
|
|
|
|
},
|
2013-01-27 19:59:18 +01:00
|
|
|
})
|
2012-09-02 18:55:14 +02:00
|
|
|
|
2013-05-11 00:28:57 +02:00
|
|
|
minetest.register_craft( {
|
2022-03-15 02:39:58 +01:00
|
|
|
output = "pipeworks:steel_pane_embedded_tube 1",
|
|
|
|
recipe = {
|
|
|
|
{ "", materials.steel_ingot, "" },
|
|
|
|
{ "", "pipeworks:tube_1", "" },
|
|
|
|
{ "", materials.steel_ingot, "" }
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "pipeworks:trashcan",
|
|
|
|
recipe = {
|
|
|
|
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
|
|
|
|
{ materials.steel_ingot, "", materials.steel_ingot },
|
|
|
|
{ materials.steel_ingot, materials.steel_ingot, materials.steel_ingot },
|
|
|
|
},
|
2013-05-11 00:28:57 +02:00
|
|
|
})
|
|
|
|
|
2013-11-28 00:13:35 +01:00
|
|
|
minetest.register_craft( {
|
2022-03-15 02:39:58 +01:00
|
|
|
output = "pipeworks:teleport_tube_1 2",
|
|
|
|
recipe = {
|
2022-05-13 04:52:17 +02:00
|
|
|
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
|
|
|
|
{ materials.desert_stone, materials.teleporter, materials.desert_stone },
|
|
|
|
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" }
|
2022-03-15 02:39:58 +01:00
|
|
|
},
|
2013-11-28 00:13:35 +01:00
|
|
|
})
|
2022-03-15 02:39:58 +01:00
|
|
|
|
|
|
|
if pipeworks.enable_priority_tube then
|
|
|
|
minetest.register_craft( {
|
|
|
|
output = "pipeworks:priority_tube_1 6",
|
|
|
|
recipe = {
|
|
|
|
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
|
|
|
|
{ materials.gold_ingot, "", materials.gold_ingot },
|
|
|
|
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" }
|
|
|
|
},
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if pipeworks.enable_accelerator_tube then
|
|
|
|
minetest.register_craft( {
|
|
|
|
output = "pipeworks:accelerator_tube_1 2",
|
|
|
|
recipe = {
|
|
|
|
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
|
|
|
|
{ materials.mese_crystal_fragment, materials.steel_ingot, materials.mese_crystal_fragment },
|
|
|
|
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" }
|
|
|
|
},
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if pipeworks.enable_crossing_tube then
|
|
|
|
minetest.register_craft( {
|
|
|
|
output = "pipeworks:crossing_tube_1 5",
|
|
|
|
recipe = {
|
|
|
|
{ "", "pipeworks:tube_1", "" },
|
|
|
|
{ "pipeworks:tube_1", "pipeworks:tube_1", "pipeworks:tube_1" },
|
|
|
|
{ "", "pipeworks:tube_1", "" }
|
|
|
|
},
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if pipeworks.enable_one_way_tube then
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "pipeworks:one_way_tube 2",
|
|
|
|
recipe = {
|
|
|
|
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
|
|
|
|
{ "group:stick", materials.mese_crystal, "basic_materials:plastic_sheet" },
|
|
|
|
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" }
|
|
|
|
},
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if pipeworks.enable_mese_tube then
|
|
|
|
minetest.register_craft( {
|
|
|
|
output = "pipeworks:mese_tube_000000 2",
|
|
|
|
recipe = {
|
|
|
|
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
|
|
|
|
{ "", materials.mese_crystal, "" },
|
|
|
|
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" }
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
type = "shapeless",
|
|
|
|
output = "pipeworks:mese_tube_000000",
|
|
|
|
recipe = {
|
|
|
|
"pipeworks:tube_1",
|
2022-03-20 17:47:45 +01:00
|
|
|
materials.mese_crystal_fragment,
|
|
|
|
materials.mese_crystal_fragment,
|
|
|
|
materials.mese_crystal_fragment,
|
|
|
|
materials.mese_crystal_fragment,
|
2022-03-15 02:39:58 +01:00
|
|
|
},
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2022-11-11 13:14:08 +01:00
|
|
|
if pipeworks.enable_sand_tube then
|
|
|
|
minetest.register_craft( {
|
|
|
|
output = "pipeworks:sand_tube_1 2",
|
|
|
|
recipe = {
|
|
|
|
{"basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet"},
|
|
|
|
{"group:sand", "group:sand", "group:sand"},
|
|
|
|
{"basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet"}
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
output = "pipeworks:sand_tube_1",
|
|
|
|
recipe = {
|
|
|
|
{"group:sand", "pipeworks:tube_1", "group:sand"},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2022-03-15 02:39:58 +01:00
|
|
|
if pipeworks.enable_mese_sand_tube then
|
|
|
|
minetest.register_craft( {
|
|
|
|
output = "pipeworks:mese_sand_tube_1 2",
|
|
|
|
recipe = {
|
|
|
|
{"basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
|
2022-05-13 04:52:17 +02:00
|
|
|
{"group:sand", materials.mese_crystal, "group:sand" },
|
2022-03-15 02:39:58 +01:00
|
|
|
{"basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" }
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
type = "shapeless",
|
|
|
|
output = "pipeworks:mese_sand_tube_1",
|
|
|
|
recipe = {
|
|
|
|
"pipeworks:sand_tube_1",
|
|
|
|
materials.mese_crystal_fragment,
|
|
|
|
materials.mese_crystal_fragment,
|
|
|
|
materials.mese_crystal_fragment,
|
|
|
|
materials.mese_crystal_fragment,
|
|
|
|
},
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if pipeworks.enable_deployer then
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "pipeworks:deployer_off",
|
|
|
|
recipe = {
|
2022-05-13 04:52:17 +02:00
|
|
|
{ "group:wood", materials.chest, "group:wood" },
|
2022-03-15 02:39:58 +01:00
|
|
|
{ materials.stone, "mesecons:piston", materials.stone },
|
|
|
|
{ materials.stone, "mesecons:mesecon", materials.stone },
|
|
|
|
}
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if pipeworks.enable_dispenser then
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "pipeworks:dispenser_off",
|
|
|
|
recipe = {
|
2022-05-13 04:52:17 +02:00
|
|
|
{ materials.desert_sand, materials.chest, materials.desert_sand },
|
|
|
|
{ materials.stone, "mesecons:piston", materials.stone },
|
|
|
|
{ materials.stone, "mesecons:mesecon", materials.stone },
|
2022-03-15 02:39:58 +01:00
|
|
|
}
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if pipeworks.enable_node_breaker then
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "pipeworks:nodebreaker_off",
|
|
|
|
recipe = {
|
2022-05-13 04:52:17 +02:00
|
|
|
{ "basic_materials:gear_steel", "basic_materials:gear_steel", "basic_materials:gear_steel" },
|
2022-03-15 02:39:58 +01:00
|
|
|
{ materials.stone, "mesecons:piston", materials.stone },
|
2022-05-13 04:52:17 +02:00
|
|
|
{ "group:wood", "mesecons:mesecon", "group:wood" },
|
2022-03-15 02:39:58 +01:00
|
|
|
}
|
|
|
|
})
|
2022-05-13 04:52:17 +02:00
|
|
|
end
|