diff options
author | Rogier <rogier777@gmail.com> | 2015-02-07 20:42:23 +0100 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2015-06-17 17:06:49 -0400 |
commit | ae7f49de385638c0c0ecc1be791bb044b369f5c7 (patch) | |
tree | 02e77a94ab7b1bd6738ac676ac60e9063f75b5f5 /technic_chests/mithril_chest.lua | |
parent | 84812d23078c02538c5b6b7bc837adebd5d5d389 (diff) |
Make chests usable without moreores (& add soft dependency)
Diffstat (limited to 'technic_chests/mithril_chest.lua')
-rw-r--r-- | technic_chests/mithril_chest.lua | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/technic_chests/mithril_chest.lua b/technic_chests/mithril_chest.lua index bd2b981..909ff9e 100644 --- a/technic_chests/mithril_chest.lua +++ b/technic_chests/mithril_chest.lua @@ -1,20 +1,22 @@ -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'}, - } -}) + 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', |