Vanessa Ezekowitz
2013-10-26 4a35d5dd98c8c08dd79cd0d0789b902fd4470edf
commit | author | age
ee0765 1 minetest.register_craftitem(":technic:uranium", {
279776 2     description = "Uranium",
R 3     inventory_image = "technic_uranium.png",
4     on_place_on_ground = minetest.craftitem_place_item,
5 })
6
ee0765 7 minetest.register_craftitem(":technic:chromium_lump", {
279776 8     description = "Chromium Lump",
R 9     inventory_image = "technic_chromium_lump.png",
10     on_place_on_ground = minetest.craftitem_place_item,
11 })
12
ee0765 13 minetest.register_craftitem(":technic:chromium_ingot", {
279776 14     description = "Chromium Ingot",
R 15     inventory_image = "technic_chromium_ingot.png",
16     on_place_on_ground = minetest.craftitem_place_item,
17 })
18
ee0765 19 minetest.register_craftitem(":technic:zinc_lump", {
279776 20     description = "Zinc Lump",
R 21     inventory_image = "technic_zinc_lump.png",
22 })
23
ee0765 24 minetest.register_craftitem(":technic:zinc_ingot", {
279776 25     description = "Zinc Ingot",
R 26     inventory_image = "technic_zinc_ingot.png",
27 })
28
768794 29 minetest.register_craftitem(":technic:brass_ingot", {
N 30     description = "Brass Ingot",
31     inventory_image = "technic_brass_ingot.png",
32 })
33
ee0765 34 minetest.register_craftitem(":technic:stainless_steel_ingot", {
279776 35     description = "Stainless Steel Ingot",
R 36     inventory_image = "technic_stainless_steel_ingot.png",
37 })
38
ee0765 39 local function register_block(block, ingot)
S 40     minetest.register_craft({
41         output = block,
42         recipe = {
43             {ingot, ingot, ingot},
44             {ingot, ingot, ingot},
45             {ingot, ingot, ingot},
46         }
47     })
279776 48
ee0765 49     minetest.register_craft({
S 50         output = ingot.." 9",
51         recipe = {
52             {block}
53         }
54     })
55 end
9de141 56
ee0765 57 register_block("technic:uranium_block", "technic:uranium")
S 58 register_block("technic:chromium_block", "technic:chromium_ingot")
59 register_block("technic:zinc_block", "technic:zinc_ingot")
768794 60 register_block("technic:brass_block", "technic:brass_ingot")
ee0765 61 register_block("technic:stainless_steel_block", "technic:stainless_steel_ingot")
9de141 62
KO 63 minetest.register_craft({
279776 64     type = 'cooking',
ee0765 65     recipe = "technic:zinc_lump",
279776 66     output = "technic:zinc_ingot",
R 67 })
9de141 68
KO 69 minetest.register_craft({
70     type = 'cooking',
ee0765 71     recipe = "technic:chromium_lump",
9de141 72     output = "technic:chromium_ingot",
465890 73 })
ee0765 74