DS-Minetest
2017-06-23 16146231b8f8c8562c1d1fd4a2c84bcf4134c3c5
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',
82cba9 32     recipe = {
d60e3f 33         {'default:steel_ingot'},
82cba9 34         {'technic:gold_chest'},
R 35     }
36 })
37
78cacd 38 technic.chests:register("Gold", {
96ad67 39     width = 15,
Z 40     height = 6,
5c689a 41     sort = true,
R 42     autosort = true,
78cacd 43     infotext = true,
S 44     color = true,
45     locked = false,
82cba9 46 })
R 47
78cacd 48 technic.chests:register("Gold", {
96ad67 49     width = 15,
Z 50     height = 6,
5c689a 51     sort = true,
R 52     autosort = true,
78cacd 53     infotext = true,
S 54     color = true,
55     locked = true,
82cba9 56 })
R 57