Vanessa Dannenberg
2018-10-31 44cb8df048e09b64214f59db73a3fd23cfe12e77
commit | author | age
e4c34c 1 -- check if we have the necessary dependencies to allow actually using these materials in the crafts
T 2 local mesecons_materials = minetest.get_modpath("mesecons_materials")
3
970f60 4 -- Remove some recipes
D 5 -- Bronze
6 minetest.clear_craft({
7     type = "shapeless",
8     output = "default:bronze_ingot"
9 })
10
11 -- Accelerator tube
db4800 12 if pipeworks.enable_accelerator_tube then
VE 13     minetest.clear_craft({
14         output = "pipeworks:accelerator_tube_1",
15     })
16
17     minetest.register_craft({
18         output = 'pipeworks:accelerator_tube_1',
19         recipe = {
20             {'technic:copper_coil', 'pipeworks:tube_1', 'technic:copper_coil'},
21             }
22     })
23 end
970f60 24
D 25 -- Teleport tube
db4800 26 if pipeworks.enable_teleport_tube then
VE 27     minetest.clear_craft({
28         output = "pipeworks:teleport_tube_1",
29     })
30
31     minetest.register_craft({
32         output = 'pipeworks:teleport_tube_1',
33         recipe = {
34             {'default:mese_crystal', 'technic:copper_coil', 'default:mese_crystal'},
35             {'pipeworks:tube_1', 'technic:control_logic_unit', 'pipeworks:tube_1'},
36             {'default:mese_crystal', 'technic:copper_coil', 'default:mese_crystal'},
37             }
38     })
39 end
970f60 40
44cb8d 41 -- basic materials' brass ingot
VD 42
43 minetest.clear_craft({
44     output = "basic_materials:brass_ingot",
45 })
46
ee0765 47 -- tubes crafting recipes
S 48
49 minetest.register_craft({
50     output = 'technic:diamond_drill_head',
51     recipe = {
52         {'technic:stainless_steel_ingot', 'default:diamond', 'technic:stainless_steel_ingot'},
53         {'default:diamond',               '',                'default:diamond'},
54         {'technic:stainless_steel_ingot', 'default:diamond', 'technic:stainless_steel_ingot'},
55     }
56 })
57
58 minetest.register_craft({
59     output = 'technic:green_energy_crystal',
60     recipe = {
61         {'default:gold_ingot', 'technic:battery', 'dye:green'},
62         {'technic:battery', 'technic:red_energy_crystal', 'technic:battery'},
63         {'dye:green', 'technic:battery', 'default:gold_ingot'},
64     }
65 })
66
67 minetest.register_craft({
68     output = 'technic:blue_energy_crystal',
69     recipe = {
78128f 70         {'moreores:mithril_ingot', 'technic:battery', 'dye:blue'},
ee0765 71         {'technic:battery', 'technic:green_energy_crystal', 'technic:battery'},
78128f 72         {'dye:blue', 'technic:battery', 'moreores:mithril_ingot'},
ee0765 73     }
S 74 })
75
76 minetest.register_craft({
77     output = 'technic:red_energy_crystal',
78     recipe = {
78128f 79         {'moreores:silver_ingot', 'technic:battery', 'dye:red'},
44cb8d 80         {'technic:battery', 'basic_materials:energy_crystal_simple', 'technic:battery'},
78128f 81         {'dye:red', 'technic:battery', 'moreores:silver_ingot'},
3f717c 82     }
Z 83 })
84
85 minetest.register_craft({
ee0765 86     output = 'technic:copper_coil 1',
S 87     recipe = {
44cb8d 88         {'basic_materials:copper_wire', 'technic:wrought_iron_ingot', 'basic_materials:copper_wire'},
68b7bc 89         {'technic:wrought_iron_ingot', '', 'technic:wrought_iron_ingot'},
44cb8d 90         {'basic_materials:copper_wire', 'technic:wrought_iron_ingot', 'basic_materials:copper_wire'},
VD 91     },
92     replacements = {
93         {"basic_materials:copper_wire", "basic_materials:empty_spool"},
94         {"basic_materials:copper_wire", "basic_materials:empty_spool"},
95         {"basic_materials:copper_wire", "basic_materials:empty_spool"},
96         {"basic_materials:copper_wire", "basic_materials:empty_spool"}
97     },
ee0765 98 })
S 99
e4c34c 100 local isolation = mesecons_materials and "mesecons_materials:fiber" or "technic:rubber"
T 101
ee0765 102 minetest.register_craft({
S 103     output = 'technic:lv_transformer',
104     recipe = {
e4c34c 105         {isolation,                    'technic:wrought_iron_ingot', isolation},
68b7bc 106         {'technic:copper_coil',        'technic:wrought_iron_ingot', 'technic:copper_coil'},
Z 107         {'technic:wrought_iron_ingot', 'technic:wrought_iron_ingot', 'technic:wrought_iron_ingot'},
ee0765 108     }
S 109 })
110
111 minetest.register_craft({
112     output = 'technic:mv_transformer',
113     recipe = {
e4c34c 114         {isolation,                    'technic:carbon_steel_ingot', isolation},
68b7bc 115         {'technic:copper_coil',        'technic:carbon_steel_ingot', 'technic:copper_coil'},
Z 116         {'technic:carbon_steel_ingot', 'technic:carbon_steel_ingot', 'technic:carbon_steel_ingot'},
ee0765 117     }
S 118 })
119
120 minetest.register_craft({
121     output = 'technic:hv_transformer',
122     recipe = {
e4c34c 123         {isolation,                       'technic:stainless_steel_ingot', isolation},
ee0765 124         {'technic:copper_coil',           'technic:stainless_steel_ingot', 'technic:copper_coil'},
S 125         {'technic:stainless_steel_ingot', 'technic:stainless_steel_ingot', 'technic:stainless_steel_ingot'},
126     }
127 })
128
129 minetest.register_craft({
130     output = 'technic:control_logic_unit',
131     recipe = {
44cb8d 132         {'', 'basic_materials:gold_wire', ''},
ee0765 133         {'default:copper_ingot', 'technic:silicon_wafer', 'default:copper_ingot'},
5e4a87 134         {'', 'technic:chromium_ingot', ''},
44cb8d 135     },
VD 136     replacements = { {"basic_materials:gold_wire", "basic_materials:empty_spool"}, },
ee0765 137 })
S 138
139 minetest.register_craft({
140     output = 'technic:mixed_metal_ingot 9',
141     recipe = {
142         {'technic:stainless_steel_ingot', 'technic:stainless_steel_ingot', 'technic:stainless_steel_ingot'},
143         {'default:bronze_ingot',          'default:bronze_ingot',          'default:bronze_ingot'},
d1b54a 144         {'default:tin_ingot',             'default:tin_ingot',             'default:tin_ingot'},
ee0765 145     }
S 146 })
147
148 minetest.register_craft({
149     output = 'technic:carbon_cloth',
150     recipe = {
151         {'technic:graphite', 'technic:graphite', 'technic:graphite'}
152     }
153 })
154
430b31 155 minetest.register_craft({
Z 156     output = "technic:machine_casing",
157     recipe = {
158         { "technic:cast_iron_ingot", "technic:cast_iron_ingot", "technic:cast_iron_ingot" },
44cb8d 159         { "technic:cast_iron_ingot", "basic_materials:brass_ingot", "technic:cast_iron_ingot" },
430b31 160         { "technic:cast_iron_ingot", "technic:cast_iron_ingot", "technic:cast_iron_ingot" },
Z 161     },
162 })
163
8f1c20 164
0139ea 165 minetest.register_craft({
CK 166     output = "default:dirt 2",
167     type = "shapeless",
168     replacements = {{"bucket:bucket_water","bucket:bucket_empty"}},
169     recipe = {
170         "technic:stone_dust",
171         "group:leaves",
172         "bucket:bucket_water",
173         "group:sand",
174     },
175 })