From b2a124dd8308e067869e0992a73b4b88df97ab64 Mon Sep 17 00:00:00 2001 From: BobFred7 <57379622+BobFred7@users.noreply.github.com> Date: Fri, 01 May 2020 21:24:12 +0200 Subject: [PATCH] Deal with lava cans wasting lava (#532) --- technic_chests/mithril_chest.lua | 43 +++++++++++++++++++++++-------------------- 1 files changed, 23 insertions(+), 20 deletions(-) diff --git a/technic_chests/mithril_chest.lua b/technic_chests/mithril_chest.lua index 8fb7baa..38ed293 100644 --- a/technic_chests/mithril_chest.lua +++ b/technic_chests/mithril_chest.lua @@ -1,32 +1,35 @@ -minetest.register_craft({ - output = 'technic:mithril_chest 1', - recipe = { - {'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'}, - {'moreores:mithril_ingot','technic:gold_chest','moreores:mithril_ingot'}, - {'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'}, - } -}) +if minetest.get_modpath("moreores") then + minetest.register_craft({ + output = 'technic:mithril_chest 1', + recipe = { + {'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'}, + {'moreores:mithril_ingot','technic:gold_chest','moreores:mithril_ingot'}, + {'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'}, + } + }) + + minetest.register_craft({ + output = 'technic:mithril_locked_chest 1', + recipe = { + {'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'}, + {'moreores:mithril_ingot','technic:gold_locked_chest','moreores:mithril_ingot'}, + {'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'}, + } + }) +end minetest.register_craft({ output = 'technic:mithril_locked_chest 1', + type = "shapeless", recipe = { - {'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'}, - {'moreores:mithril_ingot','technic:gold_locked_chest','moreores:mithril_ingot'}, - {'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'}, - } -}) - -minetest.register_craft({ - output = 'technic:mithril_locked_chest 1', - recipe = { - {'technic:wrought_iron_ingot'}, + {'basic_materials:padlock'}, {'technic:mithril_chest'}, } }) technic.chests:register("Mithril", { width = 15, - height = 7, + height = 6, sort = true, autosort = true, infotext = false, @@ -36,7 +39,7 @@ technic.chests:register("Mithril", { width = 15, - height = 7, + height = 6, sort = true, autosort = true, infotext = false, -- Gitblit v1.8.0