Diigiline rules

master
webdesigner97 2014-05-30 22:38:10 +02:00
parent 888dfb7ec8
commit 2222b34500
2 changed files with 32 additions and 31 deletions

View File

@ -71,23 +71,6 @@ minetest.register_craft({
-- Big pole
local rules_pole = {
{x= 0, y= 0, z=-1},
{x= 1, y= 0, z= 0},
{x=-1, y= 0, z= 0},
{x= 0, y= 0, z= 1},
{x= 1, y= 1, z= 0},
{x= 1, y=-1, z= 0},
{x=-1, y= 1, z= 0},
{x=-1, y=-1, z= 0},
{x= 0, y= 1, z= 1},
{x= 0, y=-1, z= 1},
{x= 0, y= 1, z=-1},
{x= 0, y=-1, z=-1},
{x= 0, y=-1, z= 0},
{x= 0, y= 1, z= 0}
}
minetest.register_node(":streets:bigpole", {
description = "Pole",
paramtype = "light",
@ -105,7 +88,15 @@ minetest.register_node(":streets:bigpole", {
on_place = minetest.rotate_node,
digiline = {
wire = {
rules = rules_pole
rules = {
{x= 0, y= 0, z=-1},
{x= 0, y= 0, z= 1},
{x= 1, y= 0, z= 0},
{x=-1, y= 0, z= 0},
{x= 0, y=-1, z= 0},
{x= 0, y= 1, z= 0},
{x= 0, y=-2, z= 0}
}
}
}
})
@ -125,6 +116,18 @@ minetest.register_node(":streets:bigpole_edge", {
{-0.15,-0.15,-0.15,0.15,0.15,-0.5}
}
},
digiline = {
wire = {
rules = {
{x= 0, y= 0, z=-1},
{x= 0, y= 0, z= 1},
{x= 1, y= 0, z= 0},
{x=-1, y= 0, z= 0},
{x= 0, y=-1, z= 0},
{x= 0, y= 1, z= 0},
}
}
}
})
minetest.register_craft({
output = "streets:bigpole 3",

View File

@ -103,24 +103,13 @@ minetest.register_node(":streets:digiline_distributor",{
}
},
digiline = {
receptor = {},
effector = {},
wire = {
rules = {
{x= 0, y= 0, z=-1},
{x= 0, y= 0, z= 1},
{x= 1, y= 0, z= 0},
{x=-1, y= 0, z= 0},
{x= 0, y= 0, z= 1},
{x= 1, y= 1, z= 0},
{x= 1, y=-1, z= 0},
{x=-1, y= 1, z= 0},
{x=-1, y=-1, z= 0},
{x= 0, y= 1, z= 1},
{x= 0, y=-1, z= 1},
{x= 0, y= 1, z=-1},
{x= 0, y=-1, z=-1},
{x= 0, y=-1, z= 0},
{x= 0, y= 1, z= 0}
{x= 0, y= 2, z=0}
}
}
}
@ -285,4 +274,13 @@ minetest.register_craft({
{"default:steel_ingot", "dye:yellow", "default:steel_ingot"},
{"default:steel_ingot", "dye:green", "default:steel_ingot"}
}
})
minetest.register_craft({
output = "streets:digiline_distributor",
recipe = {
{"", "digilines:wire_std_00000000", ""},
{"digilines:wire_std_00000000", "mesecons_luacontroller:luacontroller0000", "digilines:wire_std_00000000"},
{"", "digilines:wire_std_00000000", ""}
}
})