Created
April 1, 2016 16:27
-
-
Save Kanol/27a2f34b5690f0b9f41522f595f66fd1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local component = require("component") | |
local colors = require("colors") | |
local sides = require("sides") | |
local rs = component.redstone | |
while true do | |
for i = 0, 5 do | |
if (getBundledInput(sides[i], colors.red == 15)) then | |
for i = 0, 5 do | |
setBundledOutput(sides[i], colors.blue, 15) | |
end | |
end | |
end | |
for i = 0, 5 do | |
if (getBundledInput(sides[i], colors.red == 0)) then | |
for i = 0, 5 do | |
setBundledOutput(sides[i], colors.blue, 0) | |
end | |
end | |
end | |
for i = 0, 5 do | |
if (getBundledInput(sides[i], colors.yellow == 15)) and (getBundledInput(sides[i], colors.red <= 7)) then | |
for i = 0, 5 do | |
setBundledOutput(sides[i], colors.blue, 15) | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment