diff options
author | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-11-08 19:27:31 -0500 |
---|---|---|
committer | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-11-08 19:27:31 -0500 |
commit | d41791b735df980912250d4dca7b3e140eecbf28 (patch) | |
tree | 0d67460542587457fc76e0bae76830d8c6409025 /technic_chests | |
parent | 680f259468f9a47c0bc8ea5890ea37c5758a8c30 (diff) | |
download | dreambuilder_modpack-d41791b735df980912250d4dca7b3e140eecbf28.tar dreambuilder_modpack-d41791b735df980912250d4dca7b3e140eecbf28.tar.gz dreambuilder_modpack-d41791b735df980912250d4dca7b3e140eecbf28.tar.bz2 dreambuilder_modpack-d41791b735df980912250d4dca7b3e140eecbf28.tar.xz dreambuilder_modpack-d41791b735df980912250d4dca7b3e140eecbf28.zip |
update basic_materials, biome_lib, plantlife modpack,
coloredwood, homedecor, technic, currency, framedglass,
gloopblocks, led_marquee, mesecons, moretrees, nixie_tubes,
pipeworks, plasticbox, prefab_redo, castles, signs_lib,
roads, worldedit
Added license declaration for the modpack itself
Diffstat (limited to 'technic_chests')
-rw-r--r-- | technic_chests/depends.txt | 1 | ||||
-rw-r--r-- | technic_chests/init.lua | 57 |
2 files changed, 58 insertions, 0 deletions
diff --git a/technic_chests/depends.txt b/technic_chests/depends.txt index 42876b0..5d9ea6c 100644 --- a/technic_chests/depends.txt +++ b/technic_chests/depends.txt @@ -1,5 +1,6 @@ default basic_materials +moreblocks? moreores? pipeworks? intllib? 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"}, |