Add compressor recipes for nether brick and lump

This commit is contained in:
gabriel1379 2024-04-08 09:44:20 +02:00
parent 1c195a7f2d
commit 54122f9071
2 changed files with 33 additions and 2 deletions

View File

@ -38,7 +38,18 @@ if minetest.get_modpath("everness") then
end
end
-- defuse the default sandstone recipe, since we have the compressor to take over in a more realistic manner
if minetest.get_modpath("nether") then
local nether_brick_and_lump_recipes = {
{"nether:brick 9", "nether:brick_compressed"},
{"nether:brick_compressed 9", "nether:nether_lump"},
}
for _, data in ipairs(nether_brick_and_lump_recipes) do
table.insert(recipes, {data[1], data[2]})
end
end
-- Defuse the default sandstone recipes, since we have the compressor to take over in a more realistic manner.
local crafts_to_clear = {
"default:desert_sand",
"default:sand",
@ -72,6 +83,26 @@ for _, sand_name in ipairs(crafts_to_clear) do
})
end
if minetest.get_modpath("nether") then
-- Defuse the default compressed nether brick and nether lump recipes,
-- since we have the compressor to take over in a more realistic manner.
local nether_crafts_to_clear = {
"nether:brick",
"nether:brick_compressed",
}
for _, nether_brick_name in ipairs(nether_crafts_to_clear) do
minetest.clear_craft({
type = "shaped",
recipe = {
{nether_brick_name, nether_brick_name, nether_brick_name},
{nether_brick_name, nether_brick_name, nether_brick_name},
{nether_brick_name, nether_brick_name, nether_brick_name},
},
})
end
end
for _, data in pairs(recipes) do
technic.register_compressor_recipe({input = {data[1]}, output = data[2]})
end

View File

@ -1,3 +1,3 @@
name = technic
depends = default, pipeworks, technic_worldgen, basic_materials
optional_depends = bucket, screwdriver, mesecons, mesecons_mvps, digilines, digiline_remote, intllib, unified_inventory, vector_extras, dye, craftguide, i3, everness
optional_depends = bucket, screwdriver, mesecons, mesecons_mvps, digilines, digiline_remote, intllib, unified_inventory, vector_extras, dye, craftguide, i3, everness, nether