Add crafts for frames and templates.
authorNovatux <nathanael.courant@laposte.net>
Sat, 26 Oct 2013 07:13:17 +0000 (09:13 +0200)
committerNovatux <nathanael.courant@laposte.net>
Sat, 26 Oct 2013 07:13:55 +0000 (09:13 +0200)
technic/machines/other/frames.lua
technic/machines/register/grinder_recipes.lua
technic_worldgen/crafts.lua

index 80bf9e5d10575ddcbfebc8278258787daa847b1d..0eabf3dc9d680ddc97ddd7007d3234ec331ddf50 100644 (file)
@@ -598,3 +598,59 @@ minetest.register_node("technic:template_motor",{
                meta:set_string("owner", placer:get_player_name())
        end,
 })
+
+-- Crafts
+minetest.register_craft({
+       output = 'technic:frame_111111',
+       recipe = {
+               {'',                    'default:stick',        ''},
+               {'default:stick',       'technic:brass_ingot',  'default:stick'},
+               {'',                    'default:stick',        ''},
+       }
+})
+
+minetest.register_craft({
+       output = 'technic:frame_motor',
+       recipe = {
+               {'',                                    'technic:frame_111111', ''},
+               {'group:mesecons_conductor_craftable',  'technic:motor',        'group:mesecons_conductor_craftable'},
+               {'',                                    'technic:frame_111111', ''},
+       }
+})
+
+minetest.register_craft({
+       output = 'technic:template 10',
+       recipe = {
+               {'',                    'technic:brass_ingot',  ''},
+               {'technic:brass_ingot', 'default:mese_crystal', 'technic:brass_ingot'},
+               {'',                    'technic:brass_ingot',  ''},
+       }
+})
+
+minetest.register_craft({
+       output = 'technic:template_replacer',
+       recipe = {{'technic:template'}}
+})
+
+minetest.register_craft({
+       output = 'technic:template',
+       recipe = {{'technic:template_replacer'}}
+})
+
+minetest.register_craft({
+       output = 'technic:template_motor',
+       recipe = {
+               {'',                                    'technic:template',     ''},
+               {'group:mesecons_conductor_craftable',  'technic:motor',        'group:mesecons_conductor_craftable'},
+               {'',                                    'technic:template',     ''},
+       }
+})
+
+minetest.register_craft({
+       output = 'technic:template_tool',
+       recipe = {
+               {'',                            'technic:template',     ''},
+               {'default:mese_crystal',        'default:stick',        'default:mese_crystal'},
+               {'',                            'default:stick',        ''},
+       }
+})
index d95eaf769f05564cdf9e36943b8f5ff400ab97ee..09ab060a70b5a530654783d02ca14825fa99a7d3 100644 (file)
@@ -46,7 +46,9 @@ local recipes = {
        {"moreores:tin_lump",       "technic:tin_dust 2"},
        {"technic:chromium_ingot",  "technic:chromium_dust 1"},
        {"technic:chromium_lump",   "technic:chromium_dust 2"},
+       {"technic:zinc_ingot",      "technic:zinc_dust 1"},
        {"technic:zinc_lump",       "technic:zinc_dust 2"},
+       {"technic:brass_ingot",     "technic:brass_dust 1"},
 }
 
 if minetest.get_modpath("homedecor") then
index f0254d6721471325cc3c1c0ffc0b683ee61f54c1..26d7d514177a0531bad7692450031c049e848656 100644 (file)
@@ -26,6 +26,11 @@ minetest.register_craftitem(":technic:zinc_ingot", {
        inventory_image = "technic_zinc_ingot.png",
 })
 
+minetest.register_craftitem(":technic:brass_ingot", {
+       description = "Brass Ingot",
+       inventory_image = "technic_brass_ingot.png",
+})
+
 minetest.register_craftitem(":technic:stainless_steel_ingot", {
        description = "Stainless Steel Ingot",
        inventory_image = "technic_stainless_steel_ingot.png",
@@ -52,6 +57,7 @@ end
 register_block("technic:uranium_block", "technic:uranium")
 register_block("technic:chromium_block", "technic:chromium_ingot")
 register_block("technic:zinc_block", "technic:zinc_ingot")
+register_block("technic:brass_block", "technic:brass_ingot")
 register_block("technic:stainless_steel_block", "technic:stainless_steel_ingot")
 
 minetest.register_craft({