From 04138ab248a3fe9a3d13150f6345e7be7ba7f323 Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Fri, 3 Jan 2025 18:03:39 +0100 Subject: [PATCH] Fix issue #186 (removes non-cooking recipes for silver/mithril ingots) --- furnace/recipes.lua | 12 ++++++++++-- iron_age/recipes.lua | 21 ++++++++++++--------- 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/furnace/recipes.lua b/furnace/recipes.lua index 47a98b2..d362992 100644 --- a/furnace/recipes.lua +++ b/furnace/recipes.lua @@ -151,8 +151,16 @@ techage.furnace.register_recipe({ if minetest.global_exists("moreores") then if techage.modified_recipes_enabled then - minetest.clear_craft({output = "moreores:mithril_ingot"}) - minetest.clear_craft({output = "moreores:silver_ingot"}) + -- delete cooking iron lumps into steel ingots + minetest.clear_craft({ + type = "cooking", + recipe = "default:iron_lump", + }) + -- delete cooking silver lumps into silver ingots + minetest.clear_craft({ + type = "cooking", + recipe = "moreores:silver_lump", + }) end techage.furnace.register_recipe({ diff --git a/iron_age/recipes.lua b/iron_age/recipes.lua index deac7ee..0630b8c 100644 --- a/iron_age/recipes.lua +++ b/iron_age/recipes.lua @@ -141,21 +141,24 @@ end -- Changed default recipes -- if techage.modified_recipes_enabled then - minetest.clear_craft({output = "default:bronze_ingot"}) - minetest.clear_craft({output = "default:steel_ingot"}) + minetest.clear_craft({ + output = "default:bronze_ingot", + type = "crafting", + }) + minetest.clear_craft({ + output = "default:steel_ingot", + type = "cooking", + }) minetest.clear_craft({output = "fire:flint_and_steel"}) minetest.clear_craft({output = "bucket:bucket_empty"}) if minetest.global_exists("moreores") then - minetest.clear_craft({output = "moreores:silver_ingot"}) + minetest.clear_craft({ + recipe = "moreores:silver_lump", + type = "cooking", + }) end -- add again - minetest.register_craft({ - output = 'default:steel_ingot 9', - recipe = { - {'default:steelblock'}, - } - }) minetest.register_craft({ output = 'default:bronze_ingot 9', recipe = {