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