Zefram
2014-07-14 69487e530bbc56a1990fe519749b8e44e1dd5092
commit | author | age
ee0765 1 -- tubes crafting recipes
S 2
3 minetest.register_craft({
dc3248 4     output = 'pipeworks:accelerator_tube_1',
ee0765 5     recipe = {
749df3 6         {'technic:copper_coil', 'pipeworks:tube_1', 'technic:copper_coil'},
ee0765 7         }
S 8 })
9
10 minetest.register_craft({
dc3248 11     output = 'pipeworks:teleport_tube_1',
ee0765 12     recipe = {
S 13         {'default:mese_crystal', 'technic:copper_coil', 'default:mese_crystal'},
749df3 14         {'pipeworks:tube_1', 'technic:control_logic_unit', 'pipeworks:tube_1'},
ee0765 15         {'default:mese_crystal', 'technic:copper_coil', 'default:mese_crystal'},
S 16         }
17 })
18
19 minetest.register_craft({
20     output = 'technic:diamond_drill_head',
21     recipe = {
22         {'technic:stainless_steel_ingot', 'default:diamond', 'technic:stainless_steel_ingot'},
23         {'default:diamond',               '',                'default:diamond'},
24         {'technic:stainless_steel_ingot', 'default:diamond', 'technic:stainless_steel_ingot'},
25     }
26 })
27
28 minetest.register_craft({
29     output = 'technic:green_energy_crystal',
30     recipe = {
31         {'default:gold_ingot', 'technic:battery', 'dye:green'},
32         {'technic:battery', 'technic:red_energy_crystal', 'technic:battery'},
33         {'dye:green', 'technic:battery', 'default:gold_ingot'},
34     }
35 })
36
37 minetest.register_craft({
38     output = 'technic:blue_energy_crystal',
39     recipe = {
78128f 40         {'moreores:mithril_ingot', 'technic:battery', 'dye:blue'},
ee0765 41         {'technic:battery', 'technic:green_energy_crystal', 'technic:battery'},
78128f 42         {'dye:blue', 'technic:battery', 'moreores:mithril_ingot'},
ee0765 43     }
S 44 })
45
46 minetest.register_craft({
47     output = 'technic:red_energy_crystal',
48     recipe = {
78128f 49         {'moreores:silver_ingot', 'technic:battery', 'dye:red'},
ee0765 50         {'technic:battery', 'default:diamondblock', 'technic:battery'},
78128f 51         {'dye:red', 'technic:battery', 'moreores:silver_ingot'},
ee0765 52     }
S 53 })
54
55 minetest.register_craft({
56     output = 'technic:fine_copper_wire 2',
57     recipe = {
58         {'', 'default:copper_ingot', ''},
59         {'', 'default:copper_ingot', ''},
60         {'', 'default:copper_ingot', ''},
61     }
62 })
63
64 minetest.register_craft({
3f717c 65     output = 'technic:fine_gold_wire 2',
Z 66     recipe = {
67         {'', 'default:gold_ingot', ''},
68         {'', 'default:gold_ingot', ''},
69         {'', 'default:gold_ingot', ''},
70     }
71 })
72
73 minetest.register_craft({
74     output = 'technic:fine_silver_wire 2',
75     recipe = {
76         {'', 'moreores:silver_ingot', ''},
77         {'', 'moreores:silver_ingot', ''},
78         {'', 'moreores:silver_ingot', ''},
79     }
80 })
81
82 minetest.register_craft({
ee0765 83     output = 'technic:copper_coil 1',
S 84     recipe = {
68b7bc 85         {'technic:fine_copper_wire', 'technic:wrought_iron_ingot', 'technic:fine_copper_wire'},
Z 86         {'technic:wrought_iron_ingot', '', 'technic:wrought_iron_ingot'},
87         {'technic:fine_copper_wire', 'technic:wrought_iron_ingot', 'technic:fine_copper_wire'},
ee0765 88     }
S 89 })
90
91 minetest.register_craft({
92     output = 'technic:motor',
93     recipe = {
68b7bc 94         {'technic:carbon_steel_ingot', 'technic:copper_coil', 'technic:carbon_steel_ingot'},
Z 95         {'technic:carbon_steel_ingot', 'technic:copper_coil', 'technic:carbon_steel_ingot'},
96         {'technic:carbon_steel_ingot', 'default:copper_ingot', 'technic:carbon_steel_ingot'},
ee0765 97     }
S 98 })
99
100 minetest.register_craft({
101     output = 'technic:lv_transformer',
102     recipe = {
5e4a87 103         {'mesecons_materials:fiber',   'technic:wrought_iron_ingot', 'mesecons_materials:fiber'},
68b7bc 104         {'technic:copper_coil',        'technic:wrought_iron_ingot', 'technic:copper_coil'},
Z 105         {'technic:wrought_iron_ingot', 'technic:wrought_iron_ingot', 'technic:wrought_iron_ingot'},
ee0765 106     }
S 107 })
108
109 minetest.register_craft({
110     output = 'technic:mv_transformer',
111     recipe = {
5e4a87 112         {'mesecons_materials:fiber',   'technic:carbon_steel_ingot', 'mesecons_materials:fiber'},
68b7bc 113         {'technic:copper_coil',        'technic:carbon_steel_ingot', 'technic:copper_coil'},
Z 114         {'technic:carbon_steel_ingot', 'technic:carbon_steel_ingot', 'technic:carbon_steel_ingot'},
ee0765 115     }
S 116 })
117
118 minetest.register_craft({
119     output = 'technic:hv_transformer',
120     recipe = {
5e4a87 121         {'mesecons_materials:fiber',      'technic:stainless_steel_ingot', 'mesecons_materials:fiber'},
ee0765 122         {'technic:copper_coil',           'technic:stainless_steel_ingot', 'technic:copper_coil'},
S 123         {'technic:stainless_steel_ingot', 'technic:stainless_steel_ingot', 'technic:stainless_steel_ingot'},
124     }
125 })
126
127 minetest.register_craft({
128     output = 'technic:control_logic_unit',
129     recipe = {
5e4a87 130         {'', 'technic:fine_gold_wire', ''},
ee0765 131         {'default:copper_ingot', 'technic:silicon_wafer', 'default:copper_ingot'},
5e4a87 132         {'', 'technic:chromium_ingot', ''},
ee0765 133     }
S 134 })
135
136 minetest.register_craft({
137     output = 'technic:mixed_metal_ingot 9',
138     recipe = {
139         {'technic:stainless_steel_ingot', 'technic:stainless_steel_ingot', 'technic:stainless_steel_ingot'},
140         {'default:bronze_ingot',          'default:bronze_ingot',          'default:bronze_ingot'},
141         {'moreores:tin_ingot',            'moreores:tin_ingot',            'moreores:tin_ingot'},
142     }
143 })
144
145 minetest.register_craft({
146     output = 'technic:carbon_cloth',
147     recipe = {
148         {'technic:graphite', 'technic:graphite', 'technic:graphite'}
149     }
150 })
151
430b31 152 minetest.register_craft({
Z 153     output = "technic:machine_casing",
154     recipe = {
155         { "technic:cast_iron_ingot", "technic:cast_iron_ingot", "technic:cast_iron_ingot" },
156         { "technic:cast_iron_ingot", "technic:brass_ingot", "technic:cast_iron_ingot" },
157         { "technic:cast_iron_ingot", "technic:cast_iron_ingot", "technic:cast_iron_ingot" },
158     },
159 })
160
8f1c20 161 -- Remove some recipes
5ed47a 162 minetest.register_craftitem("technic:nothing", {
N 163     description = "",
164     inventory_image = "blank.png",
5e7c47 165     groups = { not_in_creative_inventory = 1 },
5ed47a 166 })
N 167
168 if minetest.register_craft_predict then
169     minetest.register_craft_predict(function(itemstack, player, old_craft_grid, craft_inv)
170         if itemstack:get_name() == "technic:nothing" then
171             return ItemStack("")
172         end
173     end)
174 end
175
8f1c20 176 -- Bronze
N 177 minetest.register_craft({
178     type = "shapeless",
179     output = "technic:nothing",
180     recipe = {"default:copper_ingot", "default:steel_ingot"}
181 })
182
183 -- Accelerator tube
184 minetest.register_craft({
185     output = "technic:nothing",
186     recipe = {
187             { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
188             { "default:mese_crystal_fragment", "default:steel_ingot", "default:mese_crystal_fragment" },
189             { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }
190     },
191 })
192
193 -- Teleport tube
194 minetest.register_craft({
195     output = "technic:nothing",
196     recipe = {
197             { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" },
198             { "default:desert_stone", "default:mese_block", "default:desert_stone" },
199             { "homedecor:plastic_sheeting", "homedecor:plastic_sheeting", "homedecor:plastic_sheeting" }
200     },
201 })
202