From 44cb8df048e09b64214f59db73a3fd23cfe12e77 Mon Sep 17 00:00:00 2001 From: Vanessa Dannenberg Date: Tue, 30 Oct 2018 20:29:28 -0400 Subject: use basic_materials mod where possible. --- technic_chests/copper_chest.lua | 2 +- technic_chests/depends.txt | 2 ++ technic_chests/gold_chest.lua | 2 +- technic_chests/init.lua | 57 ++++++++++++++++++++++++++++++++++++++++ technic_chests/iron_chest.lua | 2 +- technic_chests/mithril_chest.lua | 2 +- technic_chests/silver_chest.lua | 2 +- 7 files changed, 64 insertions(+), 5 deletions(-) (limited to 'technic_chests') diff --git a/technic_chests/copper_chest.lua b/technic_chests/copper_chest.lua index d40284b..fda1db0 100644 --- a/technic_chests/copper_chest.lua +++ b/technic_chests/copper_chest.lua @@ -19,7 +19,7 @@ minetest.register_craft({ minetest.register_craft({ output = 'technic:copper_locked_chest 1', recipe = { - {'default:steel_ingot'}, + {'basic_materials:padlock'}, {'technic:copper_chest'}, } }) diff --git a/technic_chests/depends.txt b/technic_chests/depends.txt index b9ca665..5d9ea6c 100644 --- a/technic_chests/depends.txt +++ b/technic_chests/depends.txt @@ -1,4 +1,6 @@ default +basic_materials +moreblocks? moreores? pipeworks? intllib? diff --git a/technic_chests/gold_chest.lua b/technic_chests/gold_chest.lua index c66b2f6..7a50b70 100644 --- a/technic_chests/gold_chest.lua +++ b/technic_chests/gold_chest.lua @@ -30,7 +30,7 @@ end minetest.register_craft({ output = 'technic:gold_locked_chest', recipe = { - {'default:steel_ingot'}, + {'basic_materials:padlock'}, {'technic:gold_chest'}, } }) diff --git a/technic_chests/init.lua b/technic_chests/init.lua index 6b1a1b2..188e516 100644 --- a/technic_chests/init.lua +++ b/technic_chests/init.lua @@ -15,6 +15,63 @@ dofile(modpath.."/silver_chest.lua") dofile(modpath.."/gold_chest.lua") dofile(modpath.."/mithril_chest.lua") +-- undo all of the locked wooden chest recipes created by default and +-- moreblocks, and just make them use a padlock. + +if minetest.get_modpath("moreblocks") then + minetest.clear_craft({ + type = "shapeless", + recipe = { + "default:chest", + "default:gold_ingot", + } + }) + + minetest.clear_craft({ + type = "shapeless", + recipe = { + "default:chest", + "default:bronze_ingot", + } + }) + + minetest.clear_craft({ + type = "shapeless", + recipe = { + "default:chest", + "default:copper_ingot", + } + }) +end + +minetest.clear_craft({ + type = "shapeless", + recipe = { + "default:chest", + "default:steel_ingot", + } +}) + +minetest.clear_craft({output = "default:chest_locked"}) + +minetest.register_craft({ + output = "default:chest_locked", + recipe = { + { "group:wood", "group:wood", "group:wood" }, + { "group:wood", "basic_materials:padlock", "group:wood" }, + { "group:wood", "group:wood", "group:wood" } + } +}) + +minetest.register_craft({ + output = "default:chest_locked", + type = "shapeless", + recipe = { + "default:chest", + "basic_materials:padlock" + } +}) + minetest.register_lbm({ name = "technic_chests:fix_wooden_chests", nodenames = {"default:chest"}, diff --git a/technic_chests/iron_chest.lua b/technic_chests/iron_chest.lua index 90434bb..237067b 100644 --- a/technic_chests/iron_chest.lua +++ b/technic_chests/iron_chest.lua @@ -26,7 +26,7 @@ minetest.register_craft({ minetest.register_craft({ output = 'technic:iron_locked_chest 1', recipe = { - {'default:steel_ingot'}, + {'basic_materials:padlock'}, {'technic:iron_chest'}, } }) diff --git a/technic_chests/mithril_chest.lua b/technic_chests/mithril_chest.lua index 909ff9e..05cbc40 100644 --- a/technic_chests/mithril_chest.lua +++ b/technic_chests/mithril_chest.lua @@ -21,7 +21,7 @@ end minetest.register_craft({ output = 'technic:mithril_locked_chest 1', recipe = { - {'default:steel_ingot'}, + {'basic_materials:padlock'}, {'technic:mithril_chest'}, } }) diff --git a/technic_chests/silver_chest.lua b/technic_chests/silver_chest.lua index c615304..4de196d 100644 --- a/technic_chests/silver_chest.lua +++ b/technic_chests/silver_chest.lua @@ -21,7 +21,7 @@ end minetest.register_craft({ output = 'technic:silver_locked_chest', recipe = { - {'default:steel_ingot'}, + {'basic_materials:padlock'}, {'technic:silver_chest'}, } }) -- cgit v1.2.3