|
|
|
@ -6,10 +6,11 @@ local materials = { |
|
|
|
|
copper_ingot = "default:copper_ingot", |
|
|
|
|
steel_ingot = "default:steel_ingot", |
|
|
|
|
gold_ingot = "default:gold_ingot", |
|
|
|
|
mese = "default:mese", |
|
|
|
|
mese_crystal = "default:mese_crystal", |
|
|
|
|
mese = "default:mese", |
|
|
|
|
mese_crystal = "default:mese_crystal", |
|
|
|
|
mese_crystal_fragment = "default:mese_crystal_fragment", |
|
|
|
|
glass = "default:glass", |
|
|
|
|
teleporter = "default:mese", |
|
|
|
|
glass = "default:glass", |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if minetest.get_modpath("mcl_core") then |
|
|
|
@ -20,12 +21,13 @@ if minetest.get_modpath("mcl_core") then |
|
|
|
|
chest = "mcl_chests:chest_small", |
|
|
|
|
steel_ingot = "mcl_core:iron_ingot", |
|
|
|
|
gold_ingot = "mcl_core:gold_ingot", |
|
|
|
|
mese = "default:mese", |
|
|
|
|
mese_crystal = "default:mese_crystal", |
|
|
|
|
mese = "default:mese", |
|
|
|
|
mese_crystal = "default:mese_crystal", |
|
|
|
|
mese_crystal_fragment = "mesecons:redstone", |
|
|
|
|
teleporter = "default:mese", |
|
|
|
|
-- Use iron where no equivalent |
|
|
|
|
copper_ingot = "mcl_core:iron_ingot", |
|
|
|
|
glass = "default:glass", |
|
|
|
|
glass = "default:glass", |
|
|
|
|
} |
|
|
|
|
elseif minetest.get_modpath("fl_ores") and minetest.get_modpath("fl_stone") then |
|
|
|
|
materials = { |
|
|
|
@ -35,115 +37,120 @@ elseif minetest.get_modpath("fl_ores") and minetest.get_modpath("fl_stone") then |
|
|
|
|
chest = "fl_storage:wood_chest", |
|
|
|
|
steel_ingot = "fl_ores:iron_ingot", |
|
|
|
|
gold_ingot = "fl_ores:gold_ingot", |
|
|
|
|
mese = "fl_ores:iron_ingot", |
|
|
|
|
mese_crystal = "fl_ores:iron_ingot", |
|
|
|
|
mese = "fl_ores:iron_ingot", |
|
|
|
|
mese_crystal = "fl_ores:iron_ingot", |
|
|
|
|
mese_crystal_fragment = "fl_ores:iron_ingot", |
|
|
|
|
teleporter = "fl_ores:iron_ingot", |
|
|
|
|
copper_ingot = "fl_ores:copper_ingot", |
|
|
|
|
glass = "fl_glass:framed_glass", |
|
|
|
|
glass = "fl_glass:framed_glass", |
|
|
|
|
} |
|
|
|
|
elseif minetest.get_modpath("hades_core") then |
|
|
|
|
materials = { |
|
|
|
|
stone = "hades_core:stone", |
|
|
|
|
desert_stone = "hades_core:desert_stone", |
|
|
|
|
desert_sand = "hades_core:desert_sand", |
|
|
|
|
chest = "hades_core:chest"; |
|
|
|
|
desert_stone = "hades_core:stone_baked", |
|
|
|
|
desert_sand = "hades_core:volcanic_sand", |
|
|
|
|
chest = "hades_chests:chest"; |
|
|
|
|
steel_ingot = "hades_core:steel_ingot", |
|
|
|
|
gold_ingot = "hades_core:gold_ingot", |
|
|
|
|
mese = "hades_core:mese", |
|
|
|
|
mese_crystal = "hades_core:mese_crystal", |
|
|
|
|
mese = "hades_core:mese", |
|
|
|
|
mese_crystal = "hades_core:mese_crystal", |
|
|
|
|
mese_crystal_fragment = "hades_core:mese_crystal_fragment", |
|
|
|
|
teleporter = "hades_materials:teleporter_device", |
|
|
|
|
copper_ingot = "hades_core:copper_ingot", |
|
|
|
|
tin_ingot = "hades_core:tin_ingot", |
|
|
|
|
glass = "default:glass", |
|
|
|
|
glass = "hades_core:glass", |
|
|
|
|
} |
|
|
|
|
if minetest.get_modpath("hades_default") then |
|
|
|
|
materials.desert_sand = "hades_default:desert_sand" |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
-- Crafting recipes for pipes |
|
|
|
|
|
|
|
|
|
minetest.register_craft( { |
|
|
|
|
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 } |
|
|
|
|
}, |
|
|
|
|
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 } |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
minetest.register_craft( { |
|
|
|
|
output = "pipeworks:straight_pipe_empty 3", |
|
|
|
|
recipe = { |
|
|
|
|
{ "pipeworks:pipe_1_empty", "pipeworks:pipe_1_empty", "pipeworks:pipe_1_empty" }, |
|
|
|
|
}, |
|
|
|
|
output = "pipeworks:straight_pipe_empty 3", |
|
|
|
|
recipe = { |
|
|
|
|
{ "pipeworks:pipe_1_empty", "pipeworks:pipe_1_empty", "pipeworks:pipe_1_empty" }, |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
minetest.register_craft( { |
|
|
|
|
output = "pipeworks:spigot 3", |
|
|
|
|
recipe = { |
|
|
|
|
{ "pipeworks:pipe_1_empty", "" }, |
|
|
|
|
{ "", "pipeworks:pipe_1_empty" }, |
|
|
|
|
}, |
|
|
|
|
output = "pipeworks:spigot 3", |
|
|
|
|
recipe = { |
|
|
|
|
{ "pipeworks:pipe_1_empty", "" }, |
|
|
|
|
{ "", "pipeworks:pipe_1_empty" }, |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
minetest.register_craft( { |
|
|
|
|
output = "pipeworks:entry_panel_empty 2", |
|
|
|
|
recipe = { |
|
|
|
|
{ "", materials.steel_ingot, "" }, |
|
|
|
|
{ "", "pipeworks:pipe_1_empty", "" }, |
|
|
|
|
{ "", materials.steel_ingot, "" }, |
|
|
|
|
{ "", materials.steel_ingot, "" }, |
|
|
|
|
{ "", "pipeworks:pipe_1_empty", "" }, |
|
|
|
|
{ "", materials.steel_ingot, "" }, |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
-- Various ancillary pipe devices |
|
|
|
|
|
|
|
|
|
minetest.register_craft( { |
|
|
|
|
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 } |
|
|
|
|
}, |
|
|
|
|
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 } |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
minetest.register_craft( { |
|
|
|
|
output = "pipeworks:valve_off_empty 2", |
|
|
|
|
recipe = { |
|
|
|
|
{ "", "group:stick", "" }, |
|
|
|
|
{ materials.steel_ingot, materials.steel_ingot, materials.steel_ingot }, |
|
|
|
|
{ "", materials.steel_ingot, "" } |
|
|
|
|
}, |
|
|
|
|
output = "pipeworks:valve_off_empty 2", |
|
|
|
|
recipe = { |
|
|
|
|
{ "", "group:stick", "" }, |
|
|
|
|
{ materials.steel_ingot, materials.steel_ingot, materials.steel_ingot }, |
|
|
|
|
{ "", materials.steel_ingot, "" } |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
minetest.register_craft( { |
|
|
|
|
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, "" } |
|
|
|
|
}, |
|
|
|
|
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, "" } |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
minetest.register_craft( { |
|
|
|
|
output = "pipeworks:grating 2", |
|
|
|
|
recipe = { |
|
|
|
|
{ materials.steel_ingot, "", materials.steel_ingot }, |
|
|
|
|
{ "", "pipeworks:pipe_1_empty", "" }, |
|
|
|
|
{ materials.steel_ingot, "", materials.steel_ingot } |
|
|
|
|
}, |
|
|
|
|
output = "pipeworks:grating 2", |
|
|
|
|
recipe = { |
|
|
|
|
{ materials.steel_ingot, "", materials.steel_ingot }, |
|
|
|
|
{ "", "pipeworks:pipe_1_empty", "" }, |
|
|
|
|
{ materials.steel_ingot, "", materials.steel_ingot } |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
minetest.register_craft( { |
|
|
|
|
output = "pipeworks:flow_sensor_empty 2", |
|
|
|
|
recipe = { |
|
|
|
|
{ "pipeworks:pipe_1_empty", "mesecons:mesecon", "pipeworks:pipe_1_empty" }, |
|
|
|
|
}, |
|
|
|
|
output = "pipeworks:flow_sensor_empty 2", |
|
|
|
|
recipe = { |
|
|
|
|
{ "pipeworks:pipe_1_empty", "mesecons:mesecon", "pipeworks:pipe_1_empty" }, |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
minetest.register_craft( { |
|
|
|
|
output = "pipeworks:fountainhead 2", |
|
|
|
|
recipe = { |
|
|
|
|
{ "pipeworks:pipe_1_empty" }, |
|
|
|
|
{ "pipeworks:pipe_1_empty" } |
|
|
|
|
}, |
|
|
|
|
output = "pipeworks:fountainhead 2", |
|
|
|
|
recipe = { |
|
|
|
|
{ "pipeworks:pipe_1_empty" }, |
|
|
|
|
{ "pipeworks:pipe_1_empty" } |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
-- injectors |
|
|
|
@ -151,18 +158,18 @@ minetest.register_craft( { |
|
|
|
|
minetest.register_craft( { |
|
|
|
|
output = "pipeworks:filter 2", |
|
|
|
|
recipe = { |
|
|
|
|
{ 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" } |
|
|
|
|
{ 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" } |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
minetest.register_craft( { |
|
|
|
|
output = "pipeworks:mese_filter 2", |
|
|
|
|
recipe = { |
|
|
|
|
{ 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" } |
|
|
|
|
{ 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" } |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
@ -182,9 +189,9 @@ end |
|
|
|
|
minetest.register_craft( { |
|
|
|
|
output = "pipeworks:autocrafter 2", |
|
|
|
|
recipe = { |
|
|
|
|
{ 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 } |
|
|
|
|
{ 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 } |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
@ -218,9 +225,9 @@ minetest.register_craft({ |
|
|
|
|
minetest.register_craft( { |
|
|
|
|
output = "pipeworks:teleport_tube_1 2", |
|
|
|
|
recipe = { |
|
|
|
|
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" }, |
|
|
|
|
{ materials.desert_stone, materials.mese, materials.desert_stone }, |
|
|
|
|
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" } |
|
|
|
|
{ "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" } |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
@ -296,7 +303,7 @@ if pipeworks.enable_mese_sand_tube then |
|
|
|
|
output = "pipeworks:mese_sand_tube_1 2", |
|
|
|
|
recipe = { |
|
|
|
|
{"basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" }, |
|
|
|
|
{"group:sand", materials.mese_crystal, "group:sand" }, |
|
|
|
|
{"group:sand", materials.mese_crystal, "group:sand" }, |
|
|
|
|
{"basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" } |
|
|
|
|
}, |
|
|
|
|
}) |
|
|
|
@ -318,7 +325,7 @@ if pipeworks.enable_deployer then |
|
|
|
|
minetest.register_craft({ |
|
|
|
|
output = "pipeworks:deployer_off", |
|
|
|
|
recipe = { |
|
|
|
|
{ "group:wood", "default:chest", "group:wood" }, |
|
|
|
|
{ "group:wood", materials.chest, "group:wood" }, |
|
|
|
|
{ materials.stone, "mesecons:piston", materials.stone }, |
|
|
|
|
{ materials.stone, "mesecons:mesecon", materials.stone }, |
|
|
|
|
} |
|
|
|
@ -329,9 +336,9 @@ if pipeworks.enable_dispenser then |
|
|
|
|
minetest.register_craft({ |
|
|
|
|
output = "pipeworks:dispenser_off", |
|
|
|
|
recipe = { |
|
|
|
|
{ materials.desert_sand, materials.chest, materials.desert_sand }, |
|
|
|
|
{ materials.stone, "mesecons:piston", materials.stone }, |
|
|
|
|
{ materials.stone, "mesecons:mesecon", materials.stone }, |
|
|
|
|
{ materials.desert_sand, materials.chest, materials.desert_sand }, |
|
|
|
|
{ materials.stone, "mesecons:piston", materials.stone }, |
|
|
|
|
{ materials.stone, "mesecons:mesecon", materials.stone }, |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
end |
|
|
|
@ -340,9 +347,9 @@ if pipeworks.enable_node_breaker then |
|
|
|
|
minetest.register_craft({ |
|
|
|
|
output = "pipeworks:nodebreaker_off", |
|
|
|
|
recipe = { |
|
|
|
|
{ "basic_materials:gear_steel", "basic_materials:gear_steel", "basic_materials:gear_steel" }, |
|
|
|
|
{ "basic_materials:gear_steel", "basic_materials:gear_steel", "basic_materials:gear_steel" }, |
|
|
|
|
{ materials.stone, "mesecons:piston", materials.stone }, |
|
|
|
|
{ "group:wood", "mesecons:mesecon", "group:wood" }, |
|
|
|
|
{ "group:wood", "mesecons:mesecon", "group:wood" }, |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|