SHOW:
|
|
- or go back to the newest paste.
| 1 | - | while true do rs.setOutput(dir[n],false) n=1+(n)%4 rs.setOutput(dir[n],true) repeat sleep(0.5) until rs.getInput('top')==false end |
| 1 | + | local dir = {"back","right","front","left"}
|
| 2 | ||
| 3 | local n = 4 | |
| 4 | ||
| 5 | while true do | |
| 6 | rs.setOutput(dir[n],false) | |
| 7 | n=1+(n)%4 | |
| 8 | rs.setOutput(dir[n],true) | |
| 9 | repeat | |
| 10 | sleep(0.5) | |
| 11 | until rs.getInput("top")==false
| |
| 12 | end |