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