Code: Select all
minetest.register_node(":streets:digiline_distributor", {
description = "Digiline distributor",
tiles = {
"streets_lampcontroller_top.png",
"streets_lampcontroller_bottom.png",
"streets_lampcontroller_sides.png"
},
groups = { cracky = 1 },
drawtype = "nodebox",
paramtype = "light",
node_box = {
type = "fixed",
fixed = {
{ -0.5, -0.5, -0.5, 0.5, 0.5, 0.5 },
{ -0.05, 0.5, -0.05, 0.05, 1.6, 0.05 }
}
},
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 = 2, z = 0 }
}
}
}
})
Code: Select all
{ x = 0, y = -1, z = 0 }
Code: Select all
{x = -0.5, y = -1, z = 0 }
Is there any way to make this happen?
Edit: I've made it as far as figuring out that both nodes in the "connecting" pair need to have their "range" extended, at least, I think this is the case. I've modified the luacontroller to add a "port":
Code: Select all
local rules = {
a = {x = -1, y = 0, z = 0, name="A"},
b = {x = 0, y = 0, z = 1, name="B"},
c = {x = 1, y = 0, z = 0, name="C"},
d = {x = 0, y = 0, z = -1, name="D"},
e = {x = 0, y = 1, z = 0, name="E"}
}
However, when I attempt to connect it using my "digiline distributor" node (described above), it no longer works:
All I can figure is that the "wire rules" for my "digiline distributor" must be wrong, but like I said, I've tried every imaginable combination of rules and can't seem to get it to work.
Any help would be greatly appreciated.
Edit 2: I forgot to include my current wire rules for the digiline distributor definition, which are quite expansive, and borrowed from the related ltc4000e mod and expanded on to hopefully achieve a further "reach":
Code: Select all
-- Around the bottom
{ x = 1, y = 0, z = 0 },
{ x = -1, y = 0, z = 0 },
{ x = 0, y = 0, z = 1 },
{ x = 0, y = 0, z = -1 },
-- Further around the bottom
{ x = 1, y = -1, z = 0 },
{ x = -1, y = -1, z = 0 },
{ x = 0, y = -1, z = 1 },
{ x = 0, y = -1, z = -1 },
-- Even further around the bottom
{ x = 1, y = -2, z = 0 },
{ x = -1, y = -2, z = 0 },
{ x = 0, y = -2, z = 1 },
{ x = 0, y = -2, z = -1 },
-- Around the top
{ x = 1, y = 1, z = 0 },
{ x = -1, y = 1, z = 0 },
{ x = 0, y = 1, z = 1 },
{ x = 0, y = 1, z = -1 },
-- Further around the top
{ x = 1, y = 2, z = 0 },
{ x = -1, y = 2, z = 0 },
{ x = 0, y = 2, z = 1 },
{ x = 0, y = 2, z = -1 },
-- Straight out of the top/bottom
{ x = 0, y = 1, z = 0 },
{ x = 0, y = 2, z = 0 },
{ x = 0, y = -1, z = 0 },
{ x = 0, y = -2, z = 0 },