Zefram
2014-08-18 7d610b7c80487cd7a6e66f55c9c3b1190e5dfc7f
commit | author | age
c0a173 1
N 2 local S = technic.getter
3
dd65a6 4 technic.register_recipe_type("compressing", { description = S("Compressing") })
c0a173 5
N 6 function technic.register_compressor_recipe(data)
7     data.time = data.time or 4
8     technic.register_recipe("compressing", data)
9 end
10
11 local recipes = {
12     {"default:snowblock",          "default:ice"},
13     {"default:desert_sand",        "default:desert_stone"},
14     {"technic:mixed_metal_ingot",  "technic:composite_plate"},
15     {"default:copper_ingot 5",     "technic:copper_plate"},
16     {"technic:coal_dust 4",        "technic:graphite"},
17     {"technic:carbon_cloth",       "technic:carbon_plate"},
b0faa7 18     {"technic:uranium35_ingot 5",  "technic:uranium_fuel"},
c0a173 19 }
N 20
21 for _, data in pairs(recipes) do
d55ecc 22     technic.register_compressor_recipe({input = {data[1]}, output = data[2]})
c0a173 23 end
N 24