Cristiano Magro
2020-10-19 c189a33eec2e9a22c0101c07e4177619c6b6240c
commit | author | age
82cba9 1
ae7f49 2 local material_list
R 3 if minetest.get_modpath("moreores") then
4     material_list = { 'silver' }
5 else
6     -- Make the gold chest obtainable for mere mortals (the silver chest is not obtainable)
7     material_list = { 'copper', 'silver' }
8 end
82cba9 9
ae7f49 10 for _, material in ipairs(material_list) do
R 11     minetest.register_craft({
12         output = 'technic:gold_chest',
13         recipe = {
14             {'default:gold_ingot','default:gold_ingot','default:gold_ingot'},
15             {'default:gold_ingot',"technic:"..material.."_chest",'default:gold_ingot'},
16             {'default:gold_ingot','default:gold_ingot','default:gold_ingot'},
17         }
18     })
19
20     minetest.register_craft({
21         output = 'technic:gold_locked_chest',
22         recipe = {
23             {'default:gold_ingot','default:gold_ingot','default:gold_ingot'},
24             {'default:gold_ingot',"technic:"..material.."_locked_chest",'default:gold_ingot'},
25             {'default:gold_ingot','default:gold_ingot','default:gold_ingot'},
26         }
27     })
28 end
82cba9 29
R 30 minetest.register_craft({
3a3700 31     output = 'technic:gold_locked_chest',
fb4fef 32     type = "shapeless",
82cba9 33     recipe = {
88f425 34         'basic_materials:padlock',
D 35         'technic:gold_chest',
82cba9 36     }
R 37 })
38
78cacd 39 technic.chests:register("Gold", {
96ad67 40     width = 15,
Z 41     height = 6,
5c689a 42     sort = true,
R 43     autosort = true,
78cacd 44     infotext = true,
S 45     color = true,
46     locked = false,
82cba9 47 })
R 48
78cacd 49 technic.chests:register("Gold", {
96ad67 50     width = 15,
Z 51     height = 6,
5c689a 52     sort = true,
R 53     autosort = true,
78cacd 54     infotext = true,
S 55     color = true,
56     locked = true,
82cba9 57 })
R 58