2012-09-02 20:55:14 +04:00
|
|
|
-- Crafting recipes for pipeworks
|
|
|
|
|
|
|
|
-- If the technic mod is present, then don't bother registering these recipes
|
|
|
|
-- as that mod supplies its own.
|
|
|
|
|
|
|
|
if io.open(minetest.get_modpath("pipeworks").."/../technic/init.lua", "r") == nil then
|
|
|
|
|
|
|
|
-- If homedecor is not installed, we need to register a few of its crafts
|
|
|
|
-- manually so we can use them.
|
|
|
|
|
|
|
|
if minetest.get_modpath("homedecor") == nil then
|
|
|
|
|
|
|
|
minetest.register_craftitem(":homedecor:plastic_sheeting", {
|
|
|
|
description = "Plastic sheet",
|
|
|
|
inventory_image = "pipeworks_plastic_sheeting.png",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "homedecor:plastic_sheeting",
|
2012-09-03 00:11:07 +04:00
|
|
|
recipe = "default:junglegrass",
|
2012-09-02 20:55:14 +04:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = 'fuel',
|
|
|
|
recipe = 'homedecor:plastic_sheeting',
|
|
|
|
burntime = 30,
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
2012-09-05 14:57:36 +04:00
|
|
|
output = "pipeworks:pipe_110000_empty 12",
|
2012-09-02 20:55:14 +04:00
|
|
|
recipe = {
|
|
|
|
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" },
|
|
|
|
{ "", "", "" },
|
|
|
|
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" }
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
2013-01-02 02:04:39 +04:00
|
|
|
output = "pipeworks:pump_off 2",
|
2012-09-02 20:55:14 +04:00
|
|
|
recipe = {
|
2013-01-02 02:04:39 +04:00
|
|
|
{ "default:stone", "default:steel_ingot", "default:stone" },
|
|
|
|
{ "moreores:copper_ingot", "default:mese_crystal_fragment", "moreores:copper_ingot" },
|
|
|
|
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" }
|
2012-09-02 20:55:14 +04:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
2013-01-02 02:04:39 +04:00
|
|
|
output = "pipeworks:valve_off 2",
|
2012-09-02 20:55:14 +04:00
|
|
|
recipe = {
|
|
|
|
{ "", "default:stick", "" },
|
|
|
|
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" },
|
|
|
|
{ "", "default:steel_ingot", "" }
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
2013-01-02 02:04:39 +04:00
|
|
|
output = "pipeworks:storage_tank_0 2",
|
2012-09-02 20:55:14 +04:00
|
|
|
recipe = {
|
|
|
|
{ "", "default:steel_ingot", "default:steel_ingot" },
|
|
|
|
{ "default:steel_ingot", "default:glass", "default:steel_ingot" },
|
|
|
|
{ "default:steel_ingot", "default:steel_ingot", "" }
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
2013-01-02 02:04:39 +04:00
|
|
|
output = "pipeworks:grating 2",
|
2012-09-02 20:55:14 +04:00
|
|
|
recipe = {
|
|
|
|
{ "default:steel_ingot", "", "default:steel_ingot" },
|
2013-01-02 02:04:39 +04:00
|
|
|
{ "", "default:steel_ingot", "" },
|
|
|
|
{ "default:steel_ingot", "", "default:steel_ingot" }
|
2012-09-02 20:55:14 +04:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
2013-01-02 02:04:39 +04:00
|
|
|
output = "pipeworks:spigot 3",
|
2012-09-02 20:55:14 +04:00
|
|
|
recipe = {
|
2013-01-02 02:04:39 +04:00
|
|
|
{ "pipeworks:pipe_110000_empty", "" },
|
|
|
|
{ "", "pipeworks:pipe_110000_empty" },
|
2012-09-02 20:55:14 +04:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
2012-09-05 14:57:36 +04:00
|
|
|
output = "pipeworks:tube 12",
|
2012-09-02 20:55:14 +04:00
|
|
|
recipe = {
|
|
|
|
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
|
|
|
|
{ "", "", "" },
|
|
|
|
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2013-01-17 00:26:27 +04:00
|
|
|
minetest.register_craft( {
|
|
|
|
output = "pipeworks:mese_tube_000000 2",
|
|
|
|
recipe = {
|
|
|
|
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
|
|
|
|
{ "", "default:mese_crystal", "" },
|
|
|
|
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
type = "shapeless",
|
|
|
|
output = "pipeworks:mese_tube_000000",
|
|
|
|
recipe = {
|
|
|
|
"pipeworks:tube_000000",
|
|
|
|
"default:mese_crystal_fragment",
|
|
|
|
"default:mese_crystal_fragment",
|
|
|
|
"default:mese_crystal_fragment",
|
|
|
|
"default:mese_crystal_fragment"
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2013-01-18 00:04:42 +04:00
|
|
|
minetest.register_craft( {
|
|
|
|
output = "pipeworks:detector_tube_off_000000 2",
|
|
|
|
recipe = {
|
|
|
|
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
|
|
|
|
{ "default:mese_crystal_fragment", "default:mese_crystal_fragment", "default:mese_crystal_fragment" },
|
|
|
|
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
|
|
|
output = "pipeworks:filter 2",
|
|
|
|
recipe = {
|
|
|
|
{ "default:steel_ingot", "default:steel_ingot", "homedecor:plastic_sheeting" },
|
|
|
|
{ "default:stick", "default:mese_crystal", "homedecor:plastic_sheeting" },
|
|
|
|
{ "default:steel_ingot", "default:steel_ingot", "homedecor:plastic_sheeting" }
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2013-01-17 00:26:27 +04:00
|
|
|
minetest.register_craft( {
|
|
|
|
output = "pipeworks:entry_panel 2",
|
|
|
|
recipe = {
|
|
|
|
{ "", "default:steel_ingot", "" },
|
|
|
|
{ "", "pipeworks:pipe_110000_empty", "" },
|
|
|
|
{ "", "default:steel_ingot", "" },
|
|
|
|
},
|
2013-01-02 02:04:39 +04:00
|
|
|
})
|
|
|
|
|
2012-09-02 20:55:14 +04:00
|
|
|
end
|