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