mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-29 17:07:29 +01:00
Add Everness sandstone compressor recipes (#634)
This commit is contained in:
parent
f47da0c045
commit
d5ff69d1d9
@ -21,27 +21,57 @@ local recipes = {
|
|||||||
{"technic:uranium35_ingot 5", "technic:uranium_fuel"},
|
{"technic:uranium35_ingot 5", "technic:uranium_fuel"},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if minetest.get_modpath("everness") then
|
||||||
|
local everness_sand_to_sandstone_recipes = {
|
||||||
|
{"everness:coral_deep_ocean_sand 2", "everness:coral_deep_ocean_sandstone_block"},
|
||||||
|
{"everness:coral_sand 2", "everness:coral_sandstone"},
|
||||||
|
{"everness:coral_white_sand 2", "everness:coral_white_sandstone"},
|
||||||
|
{"everness:crystal_forest_deep_ocean_sand 2", "everness:crystal_forest_deep_ocean_sandstone_block"},
|
||||||
|
{"everness:crystal_sand 2", "everness:crystal_sandstone"},
|
||||||
|
{"everness:cursed_lands_deep_ocean_sand 2", "everness:cursed_lands_deep_ocean_sandstone_block"},
|
||||||
|
{"everness:cursed_sand 2", "everness:cursed_sandstone_block"},
|
||||||
|
{"everness:mineral_sand 2", "everness:mineral_sandstone"},
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, data in ipairs(everness_sand_to_sandstone_recipes) do
|
||||||
|
table.insert(recipes, {data[1], data[2]})
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
-- defuse the default sandstone recipe, since we have the compressor to take over in a more realistic manner
|
-- defuse the default sandstone recipe, since we have the compressor to take over in a more realistic manner
|
||||||
minetest.clear_craft({
|
local crafts_to_clear = {
|
||||||
recipe = {
|
"default:desert_sand",
|
||||||
{"default:sand", "default:sand"},
|
"default:sand",
|
||||||
{"default:sand", "default:sand"},
|
"default:silver_sand"
|
||||||
},
|
}
|
||||||
})
|
|
||||||
minetest.clear_craft({
|
if minetest.get_modpath("everness") then
|
||||||
recipe = {
|
local everness_crafts_to_clear = {
|
||||||
{"default:desert_sand", "default:desert_sand"},
|
"everness:coral_sand",
|
||||||
{"default:desert_sand", "default:desert_sand"},
|
"everness:coral_forest_deep_ocean_sand",
|
||||||
},
|
"everness:coral_white_sand",
|
||||||
})
|
"everness:crystal_sand",
|
||||||
minetest.clear_craft({
|
"everness:cursed_sand",
|
||||||
recipe = {
|
"everness:cursed_lands_deep_ocean_sand",
|
||||||
{"default:silver_sand", "default:silver_sand"},
|
"everness:crystal_forest_deep_ocean_sand",
|
||||||
{"default:silver_sand", "default:silver_sand"},
|
"everness:mineral_sand",
|
||||||
},
|
}
|
||||||
})
|
|
||||||
|
for _, sand_name in ipairs(everness_crafts_to_clear) do
|
||||||
|
table.insert(crafts_to_clear, sand_name)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
for _, sand_name in ipairs(crafts_to_clear) do
|
||||||
|
minetest.clear_craft({
|
||||||
|
type = "shaped",
|
||||||
|
recipe = {
|
||||||
|
{sand_name, sand_name},
|
||||||
|
{sand_name, sand_name},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
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
|
||||||
|
|
||||||
|
@ -36,6 +36,17 @@ local recipes = {
|
|||||||
{"default:ice", "default:snowblock"},
|
{"default:ice", "default:snowblock"},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if minetest.get_modpath("everness") then
|
||||||
|
table.insert(recipes, {"everness:coral_deep_ocean_sandstone_block", "everness:coral_deep_ocean_sand 2"})
|
||||||
|
table.insert(recipes, {"everness:coral_sandstone", "everness:coral_sand 2"})
|
||||||
|
table.insert(recipes, {"everness:coral_white_sandstone", "everness:coral_white_sand 2"})
|
||||||
|
table.insert(recipes, {"everness:crystal_forest_deep_ocean_sandstone_block", "everness:crystal_forest_deep_ocean_sand 2"})
|
||||||
|
table.insert(recipes, {"everness:crystal_sandstone", "everness:crystal_sand 2"})
|
||||||
|
table.insert(recipes, {"everness:cursed_lands_deep_ocean_sandstone_block", "everness:cursed_lands_deep_ocean_sand 2"})
|
||||||
|
table.insert(recipes, {"everness:cursed_sandstone_block", "everness:cursed_sand 2"})
|
||||||
|
table.insert(recipes, {"everness:mineral_sandstone", "everness:mineral_sand 2"})
|
||||||
|
end
|
||||||
|
|
||||||
-- defuse the sandstone -> 4 sand recipe to avoid infinite sand bugs (also consult the inverse compressor recipe)
|
-- defuse the sandstone -> 4 sand recipe to avoid infinite sand bugs (also consult the inverse compressor recipe)
|
||||||
minetest.clear_craft({
|
minetest.clear_craft({
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -53,6 +64,15 @@ minetest.clear_craft({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if minetest.get_modpath("everness") then
|
||||||
|
minetest.clear_craft({
|
||||||
|
recipe = {
|
||||||
|
{"everness:mineral_sandstone"}
|
||||||
|
},
|
||||||
|
})
|
||||||
|
-- Currently (2024-03-09), there seem to be no reverse recipes for any of the other everness sandstones.
|
||||||
|
end
|
||||||
|
|
||||||
if minetest.get_modpath("farming") then
|
if minetest.get_modpath("farming") then
|
||||||
table.insert(recipes, {"farming:seed_wheat", "farming:flour 1"})
|
table.insert(recipes, {"farming:seed_wheat", "farming:flour 1"})
|
||||||
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
|
optional_depends = bucket, screwdriver, mesecons, mesecons_mvps, digilines, digiline_remote, intllib, unified_inventory, vector_extras, dye, craftguide, i3, everness
|
||||||
|
Loading…
Reference in New Issue
Block a user