summaryrefslogtreecommitdiff
path: root/technic_chests/silver_chest.lua
diff options
context:
space:
mode:
authorRogier <rogier777@gmail.com>2015-02-07 20:42:23 +0100
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2015-06-17 17:06:49 -0400
commitae7f49de385638c0c0ecc1be791bb044b369f5c7 (patch)
tree02e77a94ab7b1bd6738ac676ac60e9063f75b5f5 /technic_chests/silver_chest.lua
parent84812d23078c02538c5b6b7bc837adebd5d5d389 (diff)
Make chests usable without moreores (& add soft dependency)
Diffstat (limited to 'technic_chests/silver_chest.lua')
-rw-r--r--technic_chests/silver_chest.lua34
1 files changed, 18 insertions, 16 deletions
diff --git a/technic_chests/silver_chest.lua b/technic_chests/silver_chest.lua
index 505156a..c615304 100644
--- a/technic_chests/silver_chest.lua
+++ b/technic_chests/silver_chest.lua
@@ -1,20 +1,22 @@
-minetest.register_craft({
- output = 'technic:silver_chest',
- recipe = {
- {'moreores:silver_ingot','moreores:silver_ingot','moreores:silver_ingot'},
- {'moreores:silver_ingot','technic:copper_chest','moreores:silver_ingot'},
- {'moreores:silver_ingot','moreores:silver_ingot','moreores:silver_ingot'},
- }
-})
+if minetest.get_modpath("moreores") then
+ minetest.register_craft({
+ output = 'technic:silver_chest',
+ recipe = {
+ {'moreores:silver_ingot','moreores:silver_ingot','moreores:silver_ingot'},
+ {'moreores:silver_ingot','technic:copper_chest','moreores:silver_ingot'},
+ {'moreores:silver_ingot','moreores:silver_ingot','moreores:silver_ingot'},
+ }
+ })
-minetest.register_craft({
- output = 'technic:silver_locked_chest',
- recipe = {
- {'moreores:silver_ingot','moreores:silver_ingot','moreores:silver_ingot'},
- {'moreores:silver_ingot','technic:copper_locked_chest','moreores:silver_ingot'},
- {'moreores:silver_ingot','moreores:silver_ingot','moreores:silver_ingot'},
- }
-})
+ minetest.register_craft({
+ output = 'technic:silver_locked_chest',
+ recipe = {
+ {'moreores:silver_ingot','moreores:silver_ingot','moreores:silver_ingot'},
+ {'moreores:silver_ingot','technic:copper_locked_chest','moreores:silver_ingot'},
+ {'moreores:silver_ingot','moreores:silver_ingot','moreores:silver_ingot'},
+ }
+ })
+end
minetest.register_craft({
output = 'technic:silver_locked_chest',