From e57dc5b16cc36ec5bc6d7777e6a3aff8ba95c10e Mon Sep 17 00:00:00 2001 From: gabriel1379 Date: Sat, 9 Mar 2024 15:00:06 +0100 Subject: [PATCH] Add everness sandstone compressor recipes, clear their default recipes --- .../machines/register/compressor_recipes.lua | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/technic/machines/register/compressor_recipes.lua b/technic/machines/register/compressor_recipes.lua index acb9eca..bce6612 100644 --- a/technic/machines/register/compressor_recipes.lua +++ b/technic/machines/register/compressor_recipes.lua @@ -21,6 +21,17 @@ local recipes = { {"technic:uranium35_ingot 5", "technic:uranium_fuel"}, } +if minetest.get_modpath("everness") then + table.insert(recipes, {"everness:coral_deep_ocean_sand 2", "everness:coral_deep_ocean_sandstone_block"}) + table.insert(recipes, {"everness:coral_sand 2", "everness:coral_sandstone"}) + table.insert(recipes, {"everness:coral_white_sand 2", "everness:coral_white_sandstone"}) + table.insert(recipes, {"everness:crystal_forest_deep_ocean_sand 2", "everness:crystal_forest_deep_ocean_sandstone_block"}) + table.insert(recipes, {"everness:crystal_sand 2", "everness:crystal_sandstone"}) + table.insert(recipes, {"everness:cursed_lands_deep_ocean_sand 2", "everness:cursed_lands_deep_ocean_sandstone_block"}) + table.insert(recipes, {"everness:cursed_sand 2", "everness:cursed_sandstone_block"}) + table.insert(recipes, {"everness:mineral_sand 2", "everness:mineral_sandstone"}) +end + -- defuse the default sandstone recipe, since we have the compressor to take over in a more realistic manner minetest.clear_craft({ recipe = { @@ -41,6 +52,57 @@ minetest.clear_craft({ }, }) +if minetest.get_modpath("everness") then + minetest.clear_craft({ + recipe = { + { 'everness:coral_sand', 'everness:coral_sand' }, + { 'everness:coral_sand', 'everness:coral_sand' }, + }, + }) + minetest.clear_craft({ + recipe = { + { 'everness:coral_forest_deep_ocean_sand', 'everness:coral_forest_deep_ocean_sand' }, + { 'everness:coral_forest_deep_ocean_sand', 'everness:coral_forest_deep_ocean_sand' }, + }, + }) + minetest.clear_craft({ + recipe = { + { 'everness:coral_white_sand', 'everness:coral_white_sand' }, + { 'everness:coral_white_sand', 'everness:coral_white_sand' }, + }, + }) + minetest.clear_craft({ + recipe = { + { 'everness:crystal_sand', 'everness:crystal_sand' }, + { 'everness:crystal_sand', 'everness:crystal_sand' }, + }, + }) + minetest.clear_craft({ + recipe = { + { 'everness:cursed_sand', 'everness:cursed_sand' }, + { 'everness:cursed_sand', 'everness:cursed_sand' }, + }, + }) + minetest.clear_craft({ + recipe = { + { 'everness:cursed_lands_deep_ocean_sand', 'everness:cursed_lands_deep_ocean_sand' }, + { 'everness:cursed_lands_deep_ocean_sand', 'everness:cursed_lands_deep_ocean_sand' }, + }, + }) + minetest.clear_craft({ + recipe = { + { 'everness:crystal_forest_deep_ocean_sand', 'everness:crystal_forest_deep_ocean_sand' }, + { 'everness:crystal_forest_deep_ocean_sand', 'everness:crystal_forest_deep_ocean_sand' }, + }, + }) + minetest.clear_craft({ + recipe = { + { 'everness:mineral_sand', 'everness:mineral_sand' }, + { 'everness:mineral_sand', 'everness:mineral_sand' }, + }, + }) +end + for _, data in pairs(recipes) do technic.register_compressor_recipe({input = {data[1]}, output = data[2]}) end