Make redstone do "y corrners" (diagonal facedir binary)

master
oilboi 2020-06-26 10:13:28 -04:00
parent 677c38308f
commit 79a294b049
1 changed files with 11 additions and 2 deletions

View File

@ -27,10 +27,19 @@ local add_vec = vector.add
local sub_vec = vector.subtract
local vector_distance = vector.distance
--this is written out manually so that
--math.abs is not needed
local order = {
{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=0, z=1}, {x= 0, y=0, z=-1},
{x=0, y=1, z=0}, {x= 0, 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=1, y=-1, z=0}, {x=-1, y=-1, z= 0},
{x=0, y=-1, z=1}, {x= 0, y=-1, z=-1},
}
-- redstone class
@ -222,7 +231,7 @@ function redstone.collect_info(pos)
end
localredstone.injector(pos,pos)
localredstone.collector(pos,pos)
redstone_algorithm()
end