Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- red = component.proxy(component.list("redstone")())
- local bottom = 0
- local front = 3
- function wait(seconds)
- local start = os.time()
- repeat until os.time() > start + seconds
- end
- while true do
- if red.getInput(bottom) > 0 then
- wait(50)
- red.setOutput(front, 15)
- wait(5)
- else
- red.setOutput(front, 0)
- end end
Add Comment
Please, Sign In to add comment