From: Novatux Date: Sat, 26 Oct 2013 07:13:17 +0000 (+0200) Subject: Add crafts for frames and templates. X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=76879424ae32ab37abe4a566ceb76448c5e2cbcd;p=zefram%2Fminetest%2Ftechnic.git Add crafts for frames and templates. --- diff --git a/technic/machines/other/frames.lua b/technic/machines/other/frames.lua index 80bf9e5..0eabf3d 100644 --- a/technic/machines/other/frames.lua +++ b/technic/machines/other/frames.lua @@ -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', ''}, + } +}) diff --git a/technic/machines/register/grinder_recipes.lua b/technic/machines/register/grinder_recipes.lua index d95eaf7..09ab060 100644 --- a/technic/machines/register/grinder_recipes.lua +++ b/technic/machines/register/grinder_recipes.lua @@ -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 diff --git a/technic_worldgen/crafts.lua b/technic_worldgen/crafts.lua index f0254d6..26d7d51 100644 --- a/technic_worldgen/crafts.lua +++ b/technic_worldgen/crafts.lua @@ -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({