Code opaque block redstone power rule (part 1)
This commit is contained in:
parent
2d5b519830
commit
1522c875ae
3 changed files with 64 additions and 29 deletions
|
@ -147,14 +147,7 @@ end
|
|||
-- (nodes which touch the sides of pos).
|
||||
-- NOT PART OF ORIGINAL MESECONS!
|
||||
function mesecon.mcl_get_neighbors(pos)
|
||||
local r = {
|
||||
{ x= 0, y= 0, z=-1 },
|
||||
{ x= 0, y= 0, z= 1 },
|
||||
{ x= 0, y=-1, z= 0 },
|
||||
{ x= 0, y= 1, z= 0 },
|
||||
{ x=-1, y= 0, z= 0 },
|
||||
{ x= 1, y= 0, z= 0 },
|
||||
}
|
||||
local r = mesecon.rules.alldirs
|
||||
local e = {}
|
||||
for i=1, #r do
|
||||
table.insert(e, { pos = vector.add(pos, r[i]), link = r[i] })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue