est31
2015-06-18 a793747d92d9b1d93153c7fb4e0c82fe90624c78
technic/machines/register/compressor_recipes.lua
@@ -1,7 +1,7 @@
local S = technic.getter
technic.register_recipe_type("compressing", S("Compressing"))
technic.register_recipe_type("compressing", { description = S("Compressing") })
function technic.register_compressor_recipe(data)
   data.time = data.time or 4
@@ -10,15 +10,25 @@
local recipes = {
   {"default:snowblock",          "default:ice"},
   {"default:sand 2",             "default:sandstone"},
   {"default:desert_sand",        "default:desert_stone"},
   {"technic:mixed_metal_ingot",  "technic:composite_plate"},
   {"default:copper_ingot 5",     "technic:copper_plate"},
   {"technic:coal_dust 4",        "technic:graphite"},
   {"technic:carbon_cloth",       "technic:carbon_plate"},
   {"technic:enriched_uranium 4", "technic:uranium_fuel"},
   {"technic:uranium35_ingot 5",  "technic:uranium_fuel"},
}
-- defuse the default sandstone recipe, since we have the compressor to take over in a more realistic manner
minetest.register_craft({
   output = "default:sand 0",
   recipe = {
      {'group:sand', 'group:sand'},
                {'group:sand', 'group:sand'}
   },
})
for _, data in pairs(recipes) do
   technic.register_compressor_recipe({input = data[1], output = data[2]})
   technic.register_compressor_recipe({input = {data[1]}, output = data[2]})
end