2019-09-09 18:23:50 +02:00
|
|
|
|
2024-09-26 19:48:32 +02:00
|
|
|
function scifi_nodes.get_switch_rules(param2)
|
2019-09-09 18:23:50 +02:00
|
|
|
-- param2 = 2
|
|
|
|
local rules = {
|
|
|
|
{x=1, y=-1, z=-1},
|
|
|
|
{x=1, y=-1, z=1},
|
|
|
|
{x=0, y=-1, z=-1},
|
|
|
|
{x=0, y=-1, z=1},
|
|
|
|
}
|
|
|
|
|
2024-09-26 19:48:32 +02:00
|
|
|
-- Left and right when looking to +y ?
|
2019-09-09 18:23:50 +02:00
|
|
|
if param2 == 3 then
|
|
|
|
rules = mesecon.rotate_rules_right(mesecon.rotate_rules_right (rules))
|
|
|
|
elseif param2 == 4 then
|
|
|
|
rules = mesecon.rotate_rules_right(rules)
|
|
|
|
elseif param2 == 5 then
|
|
|
|
rules = mesecon.rotate_rules_left(rules)
|
|
|
|
end
|
|
|
|
return rules
|
|
|
|
end
|
2024-09-27 12:11:32 +02:00
|
|
|
|
2025-01-04 19:50:33 +01:00
|
|
|
scifi_nodes.slope_box = {
|
2024-09-27 12:11:32 +02:00
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
|
|
|
|
{-0.5, -0.25, -0.25, 0.5, 0, 0.5},
|
|
|
|
{-0.5, 0, 0, 0.5, 0.25, 0.5},
|
|
|
|
{-0.5, 0.25, 0.25, 0.5, 0.5, 0.5}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-01-04 19:50:33 +01:00
|
|
|
scifi_nodes.slope_box_simple = {
|
2024-09-27 12:11:32 +02:00
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
2025-01-04 19:50:33 +01:00
|
|
|
{-0.5, -0.5, -0.5, 0.5, -0.25, -0.25},
|
|
|
|
{-0.5, -0.25, -0.25, 0.5, 0, 0},
|
|
|
|
{-0.5, 0, 0, 0.5, 0.25, 0.25},
|
2024-09-27 12:11:32 +02:00
|
|
|
{-0.5, 0.25, 0.25, 0.5, 0.5, 0.5}
|
|
|
|
}
|
|
|
|
}
|