2012-09-02 18:55:14 +02: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-02 22:11:07 +02:00
|
|
|
recipe = "default:junglegrass",
|
2012-09-02 18:55:14 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = 'fuel',
|
|
|
|
recipe = 'homedecor:plastic_sheeting',
|
|
|
|
burntime = 30,
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
2012-09-05 12:57:36 +02:00
|
|
|
output = "pipeworks:pipe_110000_empty 12",
|
2012-09-02 18:55:14 +02:00
|
|
|
recipe = {
|
|
|
|
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" },
|
|
|
|
{ "", "", "" },
|
|
|
|
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" }
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
2012-09-05 12:57:36 +02:00
|
|
|
output = "pipeworks:pump 2",
|
2012-09-02 18:55:14 +02:00
|
|
|
recipe = {
|
|
|
|
{ "default:stone", "default:stone", "default:stone" },
|
|
|
|
{ "default:steel_ingot", "default:stick", "default:steel_ingot" },
|
|
|
|
{ "default:stone", "default:stone", "default:stone" }
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
2012-09-05 12:57:36 +02:00
|
|
|
output = "pipeworks:valve 2",
|
2012-09-02 18:55:14 +02:00
|
|
|
recipe = {
|
|
|
|
{ "", "default:stick", "" },
|
|
|
|
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" },
|
|
|
|
{ "", "default:steel_ingot", "" }
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
2012-09-05 12:57:36 +02:00
|
|
|
output = "pipeworks:storage_tank 2",
|
2012-09-02 18:55:14 +02: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( {
|
2012-09-05 12:57:36 +02:00
|
|
|
output = "pipeworks:intake 2",
|
2012-09-02 18:55:14 +02:00
|
|
|
recipe = {
|
|
|
|
{ "", "default:steel_ingot", "" },
|
|
|
|
{ "default:steel_ingot", "", "default:steel_ingot" },
|
|
|
|
{ "", "default:steel_ingot", "" }
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
2012-09-05 12:57:36 +02:00
|
|
|
output = "pipeworks:outlet 2",
|
2012-09-02 18:55:14 +02:00
|
|
|
recipe = {
|
|
|
|
{ "default:steel_ingot", "", "default:steel_ingot" },
|
|
|
|
{ "", "default:steel_ingot", "" },
|
|
|
|
{ "default:steel_ingot", "", "default:steel_ingot" }
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft( {
|
2012-09-05 12:57:36 +02:00
|
|
|
output = "pipeworks:tube 12",
|
2012-09-02 18:55:14 +02:00
|
|
|
recipe = {
|
|
|
|
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
|
|
|
|
{ "", "", "" },
|
|
|
|
{ "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
end
|