12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- minetest.register_craft({
- output = "morechests:woodchest_public",
- recipe = {
- {"group:wood_dark", "group:wood_dark", "group:wood_dark"},
- {"group:wood_dark", "", "techcrafts:hinge_wood"},
- {"group:wood_dark", "group:wood_dark", "group:wood_dark"},
- }
- })
- minetest.register_craft({
- output = "morechests:woodchest_locked",
- recipe = {
- {"group:wood_dark", "group:wood_dark", "group:wood_dark"},
- {"group:wood_dark", "default:padlock", "techcrafts:hinge_wood"},
- {"group:wood_dark", "group:wood_dark", "group:wood_dark"},
- }
- })
- minetest.register_craft( {
- type = "shapeless",
- output = "morechests:woodchest_locked",
- recipe = {"morechests:woodchest", "default:padlock"},
- })
- -- Helper function to reduce code duplication.
- local register_metal_chest = function(ingot, chestpublic, chestlocked)
- local hinge = "techcrafts:hinge"
- minetest.register_craft({
- output = chestpublic,
- recipe = {
- {ingot, ingot, ingot},
- {ingot, "morechests:woodchest_public", hinge},
- {ingot, ingot, ingot},
- }
- })
- minetest.register_craft({
- output = chestpublic,
- recipe = {
- {ingot, ingot, ingot},
- {ingot, "chests:chest_public", hinge},
- {ingot, ingot, ingot},
- }
- })
- minetest.register_craft({
- output = chestlocked,
- recipe = {
- {ingot, ingot, ingot},
- {ingot, "morechests:woodchest_locked", hinge},
- {ingot, ingot, ingot},
- }
- })
- minetest.register_craft({
- output = chestlocked,
- recipe = {
- {ingot, ingot, ingot},
- {ingot, "chests:chest_locked", hinge},
- {ingot, ingot, ingot},
- }
- })
- minetest.register_craft( {
- type = "shapeless",
- output = chestlocked,
- recipe = {chestpublic, "default:padlock"},
- })
- end
- -- Metalic chests crafts.
- register_metal_chest("default:copper_ingot", "morechests:copperchest_public", "morechests:copperchest_locked")
- register_metal_chest("cast_iron:ingot", "morechests:ironchest_public", "morechests:ironchest_locked")
- register_metal_chest("default:gold_ingot", "morechests:goldchest_public", "morechests:goldchest_locked")
- register_metal_chest("moreores:silver_ingot", "morechests:silverchest_public", "morechests:silverchest_locked")
- register_metal_chest("moreores:mithril_ingot", "morechests:mithrilchest_public", "morechests:mithrilchest_locked")
- register_metal_chest("default:diamond", "morechests:diamondchest_public", "morechests:diamondchest_locked")
|