Novatux
2014-07-02 aa8af0c8715a4492f43da3834e4f324c72b90b71
commit | author | age
2a2358 1
N 2 local S = technic.getter
3
aa8af0 4 technic.register_recipe_type("extracting", S("Extracting"))
2a2358 5
N 6 function technic.register_extractor_recipe(data)
7     data.time = data.time or 4
aa8af0 8     technic.register_recipe("extracting", data)
2a2358 9 end
N 10
11 local recipes = {
12     -- Dyes
13     {"technic:coal_dust",                 "dye:black 2"},
14     {"default:cactus",                    "dye:green 2"},
15     {"default:dry_shrub",                 "dye:brown 2"},
16     {"flowers:geranium",                  "dye:blue 2"},
17     {"flowers:dandelion_white",           "dye:white 2"},
18     {"flowers:dandelion_yellow",          "dye:yellow 2"},
19     {"flowers:tulip",                     "dye:orange 2"},
20     {"flowers:rose",                      "dye:red 2"},
21     {"flowers:viola",                     "dye:violet 2"},
22     
23     -- Rubber
24     {"technic:raw_latex",                 "technic:rubber 3"},
25     {"moretrees:rubber_tree_trunk_empty", "technic:rubber"},
26     {"moretrees:rubber_tree_trunk",       "technic:rubber"},
27     
28     -- Other
29     {"technic:uranium 5",                 "technic:enriched_uranium"},
30 }
31
32 for _, data in pairs(recipes) do
33     technic.register_extractor_recipe({input = data[1], output = data[2]})
34 end
35