ShadowNinja
2013-07-17 ee0765804c0a21deeb2f33c22ac1a36cb0db5f43
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
ee0765 29 minetest.register_craftitem(":technic:stainless_steel_ingot", {
279776 30     description = "Stainless Steel Ingot",
R 31     inventory_image = "technic_stainless_steel_ingot.png",
32 })
33
ee0765 34 local function register_block(block, ingot)
S 35     minetest.register_craft({
36         output = block,
37         recipe = {
38             {ingot, ingot, ingot},
39             {ingot, ingot, ingot},
40             {ingot, ingot, ingot},
41         }
42     })
279776 43
ee0765 44     minetest.register_craft({
S 45         output = ingot.." 9",
46         recipe = {
47             {block}
48         }
49     })
50 end
9de141 51
ee0765 52 register_block("technic:uranium_block", "technic:uranium")
S 53 register_block("technic:chromium_block", "technic:chromium_ingot")
54 register_block("technic:zinc_block", "technic:zinc_ingot")
55 register_block("technic:stainless_steel_block", "technic:stainless_steel_ingot")
9de141 56
KO 57 minetest.register_craft({
279776 58     type = 'cooking',
ee0765 59     recipe = "technic:zinc_lump",
279776 60     output = "technic:zinc_ingot",
R 61 })
9de141 62
KO 63 minetest.register_craft({
64     type = 'cooking',
ee0765 65     recipe = "technic:chromium_lump",
9de141 66     output = "technic:chromium_ingot",
465890 67 })
ee0765 68