Vanessa Ezekowitz
2017-04-14 69feeef0afc0d66dd8809481c434ba0afa33600e
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"},
a8c097 13     {"default:sand 2",             "default:sandstone"},
c0a173 14     {"default:desert_sand",        "default:desert_stone"},
N 15     {"technic:mixed_metal_ingot",  "technic:composite_plate"},
16     {"default:copper_ingot 5",     "technic:copper_plate"},
17     {"technic:coal_dust 4",        "technic:graphite"},
18     {"technic:carbon_cloth",       "technic:carbon_plate"},
b0faa7 19     {"technic:uranium35_ingot 5",  "technic:uranium_fuel"},
c0a173 20 }
N 21
9d3f73 22 -- defuse the default sandstone recipe, since we have the compressor to take over in a more realistic manner
69feee 23 minetest.clear_craft({
VE 24     output = "default:sandstone",
9d3f73 25     recipe = {
T 26         {'group:sand', 'group:sand'},
69feee 27         {'group:sand', 'group:sand'}
9d3f73 28     },
T 29 })
30
c0a173 31 for _, data in pairs(recipes) do
d55ecc 32     technic.register_compressor_recipe({input = {data[1]}, output = data[2]})
c0a173 33 end
N 34