Zefram
2014-04-28 99fd5dfee5a70b0656e40787168d2c67ba417738
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 = {
103         {'technic:fine_copper_wire', 'default:steel_ingot', 'technic:fine_copper_wire'},
104         {'default:steel_ingot', '', 'default:steel_ingot'},
105         {'technic:fine_copper_wire', 'default:steel_ingot', 'technic:fine_copper_wire'},
106     }
107 })
108
109 minetest.register_craft({
110     output = 'technic:motor',
111     recipe = {
112         {'default:steel_ingot', 'technic:copper_coil', 'default:steel_ingot'},
113         {'default:steel_ingot', 'technic:copper_coil', 'default:steel_ingot'},
114         {'default:steel_ingot', 'default:copper_ingot', 'default:steel_ingot'},
115     }
116 })
117
118 minetest.register_craft({
119     output = 'technic:lv_transformer',
120     recipe = {
121         {'default:iron_lump',   'default:iron_lump', 'default:iron_lump'},
122         {'technic:copper_coil', 'default:iron_lump', 'technic:copper_coil'},
123         {'default:iron_lump',   'default:iron_lump', 'default:iron_lump'},
124     }
125 })
126
127 minetest.register_craft({
128     output = 'technic:mv_transformer',
129     recipe = {
130         {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
131         {'technic:copper_coil', 'default:steel_ingot', 'technic:copper_coil'},
132         {'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
133     }
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