Vanessa Dannenberg
2018-10-31 44cb8df048e09b64214f59db73a3fd23cfe12e77
commit | author | age
d60e3f 1 local cast_iron_ingot
Z 2 if minetest.get_modpath("technic_worldgen") then
3     cast_iron_ingot = "technic:cast_iron_ingot"
4 else
5     cast_iron_ingot = "default:steel_ingot"
6 end
78cacd 7
82cba9 8 minetest.register_craft({
R 9     output = 'technic:iron_chest 1',
10     recipe = {
d60e3f 11         {cast_iron_ingot,cast_iron_ingot,cast_iron_ingot},
Z 12         {cast_iron_ingot,'default:chest',cast_iron_ingot},
13         {cast_iron_ingot,cast_iron_ingot,cast_iron_ingot},
82cba9 14     }
R 15 })
16
17 minetest.register_craft({
18     output = 'technic:iron_locked_chest 1',
19     recipe = {
d60e3f 20         {cast_iron_ingot,cast_iron_ingot,cast_iron_ingot},
Z 21         {cast_iron_ingot,'default:chest_locked',cast_iron_ingot},
22         {cast_iron_ingot,cast_iron_ingot,cast_iron_ingot},
82cba9 23     }
R 24 })
25
26 minetest.register_craft({
27     output = 'technic:iron_locked_chest 1',
28     recipe = {
44cb8d 29         {'basic_materials:padlock'},
82cba9 30         {'technic:iron_chest'},
R 31     }
32 })
33
78cacd 34 technic.chests:register("Iron", {
S 35     width = 9,
96ad67 36     height = 5,
5c689a 37     sort = true,
R 38     autosort = false,
78cacd 39     infotext = false,
S 40     color = false,
41     locked = false,
82cba9 42 })
R 43
78cacd 44 technic.chests:register("Iron", {
S 45     width = 9,
96ad67 46     height = 5,
5c689a 47     sort = true,
R 48     autosort = false,
78cacd 49     infotext = false,
S 50     color = false,
51     locked = true,
82cba9 52 })
R 53