RealBadAngel
2012-12-13 b8d77627a4d28c624e63423eef317dd09c68e533
commit | author | age
b8d776 1 -- Crafting recipes for pipeworks
R 2
3 -- If the technic mod is present, then don't bother registering these recipes
4 -- as that mod supplies its own.
5
6 if io.open(minetest.get_modpath("pipeworks").."/../technic/init.lua", "r") == nil then
7
8     -- If homedecor is not installed, we need to register a few of its crafts
9     -- manually so we can use them.
10
11     if minetest.get_modpath("homedecor") == nil then
12
13         minetest.register_craftitem(":homedecor:plastic_sheeting", {
14             description = "Plastic sheet",
15             inventory_image = "pipeworks_plastic_sheeting.png",
16         })
17
18         minetest.register_craft({
19                 type = "cooking",
20                 output = "homedecor:plastic_sheeting",
21                 recipe = "default:junglegrass",
22         })
23
24         minetest.register_craft({
25                 type = 'fuel',
26                 recipe = 'homedecor:plastic_sheeting',
27                 burntime = 30,
28         })
29     end
30
31     minetest.register_craft( {
32             output = "pipeworks:pipe_110000_empty 12",
33             recipe = {
34                     { "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" },
35                     { "", "", "" },
36                     { "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" }
37             },
38     })
39
40     minetest.register_craft( {
41             output = "pipeworks:pump 2",
42             recipe = {
43                     { "default:stone", "default:stone", "default:stone" },
44                     { "default:steel_ingot", "default:stick", "default:steel_ingot" },
45                     { "default:stone", "default:stone", "default:stone" }
46             },
47     })
48
49     minetest.register_craft( {
50             output = "pipeworks:valve 2",
51             recipe = {
52                     { "", "default:stick", "" },
53                     { "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" },
54                     { "", "default:steel_ingot", "" }
55             },
56     })
57
58     minetest.register_craft( {
59             output = "pipeworks:storage_tank 2",
60             recipe = {
61                     { "", "default:steel_ingot", "default:steel_ingot" },
62                     { "default:steel_ingot", "default:glass", "default:steel_ingot" },
63                     { "default:steel_ingot", "default:steel_ingot", "" }
64             },
65     })
66
67     minetest.register_craft( {
68             output = "pipeworks:intake 2",
69             recipe = {
70                     { "", "default:steel_ingot", "" },
71                     { "default:steel_ingot", "", "default:steel_ingot" },
72                     { "", "default:steel_ingot", "" }
73             },
74     })
75
76     minetest.register_craft( {
77             output = "pipeworks:outlet 2",
78             recipe = {
79                     { "default:steel_ingot", "", "default:steel_ingot" },
80                     { "", "default:steel_ingot", "" },
81                     { "default:steel_ingot", "", "default:steel_ingot" }
82             },
83     })
84
85     minetest.register_craft( {
86         output = "pipeworks:tube 12",
87         recipe = {
88                 { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
89                 { "", "", "" },
90                 { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }
91         },
92     })
93
94 end