summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNovatux <nathanael.courant@laposte.net>2013-10-26 09:13:17 +0200
committerNovatux <nathanael.courant@laposte.net>2013-10-26 09:13:55 +0200
commit76879424ae32ab37abe4a566ceb76448c5e2cbcd (patch)
tree0042f431ff858f291a14ab0668d4c614cb61b24b
parent2a54e00677427c7f628fcc575b8cc60c5d6cdac5 (diff)
Add crafts for frames and templates.
-rw-r--r--technic/machines/other/frames.lua56
-rw-r--r--technic/machines/register/grinder_recipes.lua2
-rw-r--r--technic_worldgen/crafts.lua6
3 files changed, 64 insertions, 0 deletions
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({