SHOW:
|
|
- or go back to the newest paste.
| 1 | red = component.proxy(component.list("redstone")())
| |
| 2 | local bottom = 0 | |
| 3 | - | local front = 3 |
| 3 | + | local back = 2 |
| 4 | function wait(seconds) | |
| 5 | - | local start = os.time() |
| 5 | + | local begin = os.time() |
| 6 | - | repeat until os.time() > start + seconds |
| 6 | + | repeat |
| 7 | computer.pullSignal(0.05) | |
| 8 | until os.time() - begin >= seconds | |
| 9 | end | |
| 10 | while true do | |
| 11 | - | red.setOutput(front, 15) |
| 11 | + | |
| 12 | wait(50) | |
| 13 | red.setOutput(back, 15) | |
| 14 | - | red.setOutput(front, 0) |
| 14 | + | |
| 15 | else | |
| 16 | red.setOutput(back, 0) | |
| 17 | end end |