diff options
author | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-10-30 20:29:28 -0400 |
---|---|---|
committer | Ekdohibs <nathanael.courant@laposte.net> | 2018-11-11 09:54:20 +0100 |
commit | 44cb8df048e09b64214f59db73a3fd23cfe12e77 (patch) | |
tree | aaf4b25fda0f17ff2bb16a1ca62a4010e0598e78 /technic_chests/init.lua | |
parent | f702a6597ba86569ebd894a1698608f60418f634 (diff) |
use basic_materials mod where possible.
Diffstat (limited to 'technic_chests/init.lua')
-rw-r--r-- | technic_chests/init.lua | 57 |
1 files changed, 57 insertions, 0 deletions
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"}, |