Skip to content

Instantly share code, notes, and snippets.

@Kanol
Created April 1, 2016 16:27
Show Gist options
  • Save Kanol/27a2f34b5690f0b9f41522f595f66fd1 to your computer and use it in GitHub Desktop.
Save Kanol/27a2f34b5690f0b9f41522f595f66fd1 to your computer and use it in GitHub Desktop.
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