2014-07-02 22:45:46 +02:00
|
|
|
|
|
|
|
local S = technic.getter
|
|
|
|
|
2014-07-15 19:29:36 +02:00
|
|
|
technic.register_recipe_type("compressing", { description = S("Compressing") })
|
2014-07-02 22:45:46 +02:00
|
|
|
|
|
|
|
function technic.register_compressor_recipe(data)
|
|
|
|
data.time = data.time or 4
|
|
|
|
technic.register_recipe("compressing", data)
|
|
|
|
end
|
|
|
|
|
2023-12-20 09:20:56 +01:00
|
|
|
if minetest.get_modpath("default") then
|
2023-12-27 03:43:48 +01:00
|
|
|
table.insert(compressor_recipes, {"default:silver_sand 2", "default:silver_sandstone"})
|
2023-12-20 09:20:56 +01:00
|
|
|
end
|
2015-01-19 02:28:05 +01:00
|
|
|
-- defuse the default sandstone recipe, since we have the compressor to take over in a more realistic manner
|
2017-04-14 02:27:19 +02:00
|
|
|
minetest.clear_craft({
|
2015-01-19 02:28:05 +01:00
|
|
|
recipe = {
|
2018-10-05 19:46:33 +02:00
|
|
|
{"default:sand", "default:sand"},
|
|
|
|
{"default:sand", "default:sand"},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
minetest.clear_craft({
|
|
|
|
recipe = {
|
|
|
|
{"default:desert_sand", "default:desert_sand"},
|
|
|
|
{"default:desert_sand", "default:desert_sand"},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
minetest.clear_craft({
|
|
|
|
recipe = {
|
|
|
|
{"default:silver_sand", "default:silver_sand"},
|
|
|
|
{"default:silver_sand", "default:silver_sand"},
|
2015-01-19 02:28:05 +01:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2023-12-27 03:43:48 +01:00
|
|
|
for _, data in pairs(compressor_recipes) do
|
2014-07-03 15:57:39 +02:00
|
|
|
technic.register_compressor_recipe({input = {data[1]}, output = data[2]})
|
2014-07-02 22:45:46 +02:00
|
|
|
end
|
|
|
|
|