From c69cb294a0cb17ac493ec259220e97bdd765d31d Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Sat, 31 Dec 2022 10:49:25 +0100 Subject: [PATCH] Add wafer recipe with 'mesecons_materials:silicon' --- items/silicon.lua | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/items/silicon.lua b/items/silicon.lua index 2eaac4b..95aeea6 100644 --- a/items/silicon.lua +++ b/items/silicon.lua @@ -19,13 +19,27 @@ minetest.register_craftitem("techage:ta4_silicon_wafer", { inventory_image = "techage_silicon_wafer.png", }) -techage.furnace.register_recipe({ - output = "techage:ta4_silicon_wafer 16", - recipe = { - "basic_materials:silicon", - "basic_materials:silicon", - "basic_materials:silicon", - "techage:baborium_ingot" - }, - time = 6, -}) +if minetest.global_exists("mesecon") then + techage.furnace.register_recipe({ + output = "techage:ta4_silicon_wafer 16", + recipe = { + "mesecons_materials:silicon", + "mesecons_materials:silicon", + "mesecons_materials:silicon", + "techage:baborium_ingot" + }, + time = 6, + }) +else + techage.furnace.register_recipe({ + output = "techage:ta4_silicon_wafer 16", + recipe = { + "basic_materials:silicon", + "basic_materials:silicon", + "basic_materials:silicon", + "techage:baborium_ingot" + }, + time = 6, + }) +end +