summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeija <norrepli@gmail.com>2012-08-17 21:32:21 +0200
committerJeija <norrepli@gmail.com>2012-08-17 21:32:21 +0200
commitfe1606eb319d80b1195f9819c7a1716897efdcd1 (patch)
tree0429f2158adf4f74c48f3b3904a35951ac52c3ff
parentf65d09226770ef54a78d44ab9c6aa351f5998001 (diff)
downloadmesecons-fe1606eb319d80b1195f9819c7a1716897efdcd1.tar
mesecons-fe1606eb319d80b1195f9819c7a1716897efdcd1.tar.gz
mesecons-fe1606eb319d80b1195f9819c7a1716897efdcd1.tar.bz2
mesecons-fe1606eb319d80b1195f9819c7a1716897efdcd1.tar.xz
mesecons-fe1606eb319d80b1195f9819c7a1716897efdcd1.zip
Add fiber and craft recipe for insulated mesecon
-rw-r--r--mesecons_insulated/init.lua9
-rw-r--r--mesecons_materials/init.lua13
2 files changed, 22 insertions, 0 deletions
diff --git a/mesecons_insulated/init.lua b/mesecons_insulated/init.lua
index bfe16f4..bcdbd6c 100644
--- a/mesecons_insulated/init.lua
+++ b/mesecons_insulated/init.lua
@@ -52,6 +52,15 @@ minetest.register_node("mesecons_insulated:insulated_off", {
groups = {dig_immediate = 3, mesecon = 3, mesecon_conductor_craftable=1},
})
+minetest.register_craft({
+ output = '"mesecons_insulated:insulated_off" 3',
+ recipe = {
+ {"mesecons_materials:fiber", "mesecons_materials:fiber", "mesecons_materials:fiber"},
+ {"mesecons:wire_00000000_off", "mesecons:wire_00000000_off", "mesecons:wire_00000000_off"},
+ {"mesecons_materials:fiber", "mesecons_materials:fiber", "mesecons_materials:fiber"},
+ }
+})
+
mesecon:add_rules("insulated_all", { --all possible rules
{x = 1, y = 0, z = 0},
{x =-1, y = 0, z = 0},
diff --git a/mesecons_materials/init.lua b/mesecons_materials/init.lua
index a74b58d..cb33f89 100644
--- a/mesecons_materials/init.lua
+++ b/mesecons_materials/init.lua
@@ -5,6 +5,12 @@ minetest.register_craftitem("mesecons_materials:glue", {
description="Glue",
})
+minetest.register_craftitem("mesecons_materials:fiber", {
+ image = "jeija_glue.png",
+ on_place_on_ground = minetest.craftitem_place_item,
+ description="Fiber",
+})
+
minetest.register_craft({
output = '"mesecons_materials:glue" 2',
type = "cooking",
@@ -12,6 +18,13 @@ minetest.register_craft({
cooktime = 2
})
+minetest.register_craft({
+ output = '"mesecons_materials:fiber" 6',
+ type = "cooking",
+ recipe = "mesecons_materials:glue",
+ cooktime = 4
+})
+
-- Silicon
minetest.register_craftitem("mesecons_materials:silicon", {
image = "jeija_silicon.png",