Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local redstone = component.proxy(component.list("redstone")())
- local white = 0
- local orange = 1
- local magenta = 2
- local lightBlue = 3
- local yellow = 4
- local lime = 5
- local pink = 6
- local gray = 7
- local silver = 8
- local cyan = 9
- local purple = 10
- local blue = 11
- local brown = 12
- local green = 13
- local red = 14
- local black = 15
- local function sides(direction)
- if direction == "bottom" then return 0
- elseif direction == "top" then return 1
- elseif direction == "back" then return 2
- elseif direction == "front" then return 3
- elseif direction == "right" then return 4
- elseif direction == "left" then return 5
- else return false
- end
- end
- while true do
- computer.pullSignal(1)
- if redstone.getInput(sides("front")) > 0 then
- redstone.setOutput(sides("back"), 15)
- redstone.setBundledOutput(sides("right"), white, 255)
- redstone.setBundledOutput(sides("right"), orange, 255)
- redstone.setBundledOutput(sides("right"), blue, 255)
- else
- redstone.setOutput(sides("back"), 0)
- redstone.setBundledOutput(sides("right"), white, 0)
- redstone.setBundledOutput(sides("right"), orange, 0)
- redstone.setBundledOutput(sides("right"), blue, 0)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement