Sires
2018-03-15 e12220be79e25c1c5cb866e1e98091d35079cd3e
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
bdd13b 47 minetest.register_craft( {
VD 48     type = "shapeless",
49     output = "basic_materials:brass_ingot 9",
50     recipe = { "basic_materials:brass_block" },
51 })
52
ee0765 53 -- tubes crafting recipes
S 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 = {
78128f 76         {'moreores:mithril_ingot', 'technic:battery', 'dye:blue'},
ee0765 77         {'technic:battery', 'technic:green_energy_crystal', 'technic:battery'},
78128f 78         {'dye:blue', 'technic:battery', 'moreores:mithril_ingot'},
ee0765 79     }
S 80 })
81
82 minetest.register_craft({
83     output = 'technic:red_energy_crystal',
84     recipe = {
78128f 85         {'moreores:silver_ingot', 'technic:battery', 'dye:red'},
44cb8d 86         {'technic:battery', 'basic_materials:energy_crystal_simple', 'technic:battery'},
78128f 87         {'dye:red', 'technic:battery', 'moreores:silver_ingot'},
3f717c 88     }
Z 89 })
90
91 minetest.register_craft({
ee0765 92     output = 'technic:copper_coil 1',
S 93     recipe = {
44cb8d 94         {'basic_materials:copper_wire', 'technic:wrought_iron_ingot', 'basic_materials:copper_wire'},
68b7bc 95         {'technic:wrought_iron_ingot', '', 'technic:wrought_iron_ingot'},
44cb8d 96         {'basic_materials:copper_wire', 'technic:wrought_iron_ingot', 'basic_materials:copper_wire'},
VD 97     },
98     replacements = {
99         {"basic_materials:copper_wire", "basic_materials:empty_spool"},
100         {"basic_materials:copper_wire", "basic_materials:empty_spool"},
101         {"basic_materials:copper_wire", "basic_materials:empty_spool"},
102         {"basic_materials:copper_wire", "basic_materials:empty_spool"}
103     },
ee0765 104 })
S 105
e4c34c 106 local isolation = mesecons_materials and "mesecons_materials:fiber" or "technic:rubber"
T 107
ee0765 108 minetest.register_craft({
S 109     output = 'technic:lv_transformer',
110     recipe = {
e4c34c 111         {isolation,                    'technic:wrought_iron_ingot', isolation},
68b7bc 112         {'technic:copper_coil',        'technic:wrought_iron_ingot', 'technic:copper_coil'},
Z 113         {'technic:wrought_iron_ingot', 'technic:wrought_iron_ingot', 'technic:wrought_iron_ingot'},
ee0765 114     }
S 115 })
116
117 minetest.register_craft({
118     output = 'technic:mv_transformer',
119     recipe = {
e4c34c 120         {isolation,                    'technic:carbon_steel_ingot', isolation},
68b7bc 121         {'technic:copper_coil',        'technic:carbon_steel_ingot', 'technic:copper_coil'},
Z 122         {'technic:carbon_steel_ingot', 'technic:carbon_steel_ingot', 'technic:carbon_steel_ingot'},
ee0765 123     }
S 124 })
125
126 minetest.register_craft({
127     output = 'technic:hv_transformer',
128     recipe = {
e4c34c 129         {isolation,                       'technic:stainless_steel_ingot', isolation},
ee0765 130         {'technic:copper_coil',           'technic:stainless_steel_ingot', 'technic:copper_coil'},
S 131         {'technic:stainless_steel_ingot', 'technic:stainless_steel_ingot', 'technic:stainless_steel_ingot'},
132     }
133 })
134
135 minetest.register_craft({
136     output = 'technic:control_logic_unit',
137     recipe = {
44cb8d 138         {'', 'basic_materials:gold_wire', ''},
ee0765 139         {'default:copper_ingot', 'technic:silicon_wafer', 'default:copper_ingot'},
5e4a87 140         {'', 'technic:chromium_ingot', ''},
44cb8d 141     },
VD 142     replacements = { {"basic_materials:gold_wire", "basic_materials:empty_spool"}, },
ee0765 143 })
S 144
145 minetest.register_craft({
146     output = 'technic:mixed_metal_ingot 9',
147     recipe = {
148         {'technic:stainless_steel_ingot', 'technic:stainless_steel_ingot', 'technic:stainless_steel_ingot'},
149         {'default:bronze_ingot',          'default:bronze_ingot',          'default:bronze_ingot'},
d1b54a 150         {'default:tin_ingot',             'default:tin_ingot',             'default:tin_ingot'},
ee0765 151     }
S 152 })
153
154 minetest.register_craft({
155     output = 'technic:carbon_cloth',
156     recipe = {
157         {'technic:graphite', 'technic:graphite', 'technic:graphite'}
158     }
159 })
160
430b31 161 minetest.register_craft({
Z 162     output = "technic:machine_casing",
163     recipe = {
164         { "technic:cast_iron_ingot", "technic:cast_iron_ingot", "technic:cast_iron_ingot" },
44cb8d 165         { "technic:cast_iron_ingot", "basic_materials:brass_ingot", "technic:cast_iron_ingot" },
430b31 166         { "technic:cast_iron_ingot", "technic:cast_iron_ingot", "technic:cast_iron_ingot" },
Z 167     },
168 })
169
8f1c20 170
0139ea 171 minetest.register_craft({
CK 172     output = "default:dirt 2",
173     type = "shapeless",
174     replacements = {{"bucket:bucket_water","bucket:bucket_empty"}},
175     recipe = {
176         "technic:stone_dust",
177         "group:leaves",
178         "bucket:bucket_water",
179         "group:sand",
180     },
181 })