Tim
2015-01-30 56e96b2593817eb77fcb51e4a81c80f4df6bb0c7
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
T 23 minetest.register_craft({
24     output = "default:sand 4",
25     recipe = {
26         {'group:sand', 'group:sand'},
27                 {'group:sand', 'group:sand'}
28     },
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