From 11e43ffe134f6483905b18662a544dec384b231c Mon Sep 17 00:00:00 2001 From: Cedric Haase <cedrichaase@mailbox.org> Date: Wed, 06 Jan 2021 18:12:51 +0100 Subject: [PATCH] nuclear_reactor: Add error messages on start failure (#574) --- technic_chests/mithril_chest.lua | 47 ++++++++++++++++++++++++++--------------------- 1 files changed, 26 insertions(+), 21 deletions(-) diff --git a/technic_chests/mithril_chest.lua b/technic_chests/mithril_chest.lua index f5aa986..40ea95c 100644 --- a/technic_chests/mithril_chest.lua +++ b/technic_chests/mithril_chest.lua @@ -1,31 +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'}, - {'technic:mithril_chest'}, + 'basic_materials:padlock', + 'technic:mithril_chest', } }) technic.chests:register("Mithril", { - width = 13, + width = 15, + height = 6, sort = true, autosort = true, infotext = false, @@ -34,7 +38,8 @@ }) technic.chests:register("Mithril", { - width = 13, + width = 15, + height = 6, sort = true, autosort = true, infotext = false, -- Gitblit v1.8.0