dokutan
2020-05-03 88f42539bb378ec25410967634c1e3ae274473a3
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',
fb4fef 28     type = "shapeless",
82cba9 29     recipe = {
88f425 30         'basic_materials:padlock',
D 31         'technic:iron_chest',
82cba9 32     }
R 33 })
34
78cacd 35 technic.chests:register("Iron", {
S 36     width = 9,
96ad67 37     height = 5,
5c689a 38     sort = true,
R 39     autosort = false,
78cacd 40     infotext = false,
S 41     color = false,
42     locked = false,
82cba9 43 })
R 44
78cacd 45 technic.chests:register("Iron", {
S 46     width = 9,
96ad67 47     height = 5,
5c689a 48     sort = true,
R 49     autosort = false,
78cacd 50     infotext = false,
S 51     color = false,
52     locked = true,
82cba9 53 })
R 54