reorder rules_alldir in homedecor_lightning/init.lua so it can read by y-axis and then line by line of 2d coordinates

if you express the connections in ascii where N is the Node 1 is connected and 0 is not connected:
```
y+0: 010
     1N1
     010

y+1: 010
     111
     010

y-1: 010
     111
     010
```
This code structure is more easy to read / a very close representation of the sketched layers.
This commit is contained in:
Sebastian Lobinger 2020-11-19 16:41:12 +00:00
parent ec06010320
commit 93bf5d76ae

View File

@ -27,20 +27,20 @@ local word_to_bright = {
} }
local rules_alldir = { local rules_alldir = {
{x = 0, y = 0, z = -1}, -- borrowed from lightstones
{x = 1, y = 0, z = 0},
{x = -1, y = 0, z = 0},
{x = 0, y = 0, z = 1}, {x = 0, y = 0, z = 1},
{x = 1, y = 1, z = 0}, {x = -1, y = 0, z = 0},
{x = 1, y = -1, z = 0}, {x = 1, y = 0, z = 0},
{x = -1, y = 1, z = 0}, {x = 0, y = 0, z = -1}, -- borrowed from lightstones
{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 = -1, y = 1, z = 0},
{x = 0, 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 = -1, y = -1, z = 0},
{x = 0, y = -1, z = 0}, {x = 0, y = -1, z = 0},
{x = 0, y = 1, z = 0} {x = 1, y = -1, z = 0},
{x = 0, y = -1, z = -1},
} }
-- mesecons compatibility -- mesecons compatibility