mirror of
https://github.com/minetest-mods/technic.git
synced 2025-07-03 08:40:36 +02:00
Add MV version of compressor too, remove infinite sand-producing compressor recipe.
This commit is contained in:
24
technic/machines/register/compressor_recipes.lua
Normal file
24
technic/machines/register/compressor_recipes.lua
Normal file
@ -0,0 +1,24 @@
|
||||
|
||||
local S = technic.getter
|
||||
|
||||
technic.register_recipe_type("compressing", S("Compressing"))
|
||||
|
||||
function technic.register_compressor_recipe(data)
|
||||
data.time = data.time or 4
|
||||
technic.register_recipe("compressing", data)
|
||||
end
|
||||
|
||||
local recipes = {
|
||||
{"default:snowblock", "default:ice"},
|
||||
{"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"},
|
||||
}
|
||||
|
||||
for _, data in pairs(recipes) do
|
||||
technic.register_compressor_recipe({input = data[1], output = data[2]})
|
||||
end
|
||||
|
Reference in New Issue
Block a user