Add compressor recipes for nether brick and lump
This commit is contained in:
parent
1c195a7f2d
commit
54122f9071
|
@ -38,7 +38,18 @@ if minetest.get_modpath("everness") then
|
||||||
end
|
end
|
||||||
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 = {
|
local crafts_to_clear = {
|
||||||
"default:desert_sand",
|
"default:desert_sand",
|
||||||
"default:sand",
|
"default:sand",
|
||||||
|
@ -72,6 +83,26 @@ for _, sand_name in ipairs(crafts_to_clear) do
|
||||||
})
|
})
|
||||||
end
|
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
|
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
|
end
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
name = technic
|
name = technic
|
||||||
depends = default, pipeworks, technic_worldgen, basic_materials
|
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
|
||||||
|
|
Loading…
Reference in New Issue