mirror of
https://github.com/minetest-mods/MoreMesecons.git
synced 2025-07-13 22:00:40 +02:00
Rotate dual delayer, signal changer and conductor signal changer
This commit is contained in:
@ -4,8 +4,8 @@ local nodebox = {
|
||||
}
|
||||
|
||||
local function signalchanger_get_output_rules(node)
|
||||
local rules = {{x=1, y=0, z=0},
|
||||
{x=-1, y=0, z=0}}
|
||||
local rules = {{x=-1, y=0, z=0},
|
||||
{x=1, y=0, z=0}}
|
||||
for i = 0, node.param2 do
|
||||
rules = mesecon.rotate_rules_left(rules)
|
||||
end
|
||||
@ -13,7 +13,7 @@ local function signalchanger_get_output_rules(node)
|
||||
end
|
||||
|
||||
local function signalchanger_get_input_rules(node)
|
||||
local rules = {{x=0, y=0, z=1, name="input_on"}, {x=0, y=0, z=-1, name="input_off"}}
|
||||
local rules = {{x=0, y=0, z=-1, name="input_on"}, {x=0, y=0, z=1, name="input_off"}}
|
||||
for i = 0, node.param2 do
|
||||
rules = mesecon.rotate_rules_left(rules)
|
||||
end
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 109 B After Width: | Height: | Size: 158 B |
Binary file not shown.
Before Width: | Height: | Size: 109 B After Width: | Height: | Size: 159 B |
Reference in New Issue
Block a user