SHOW:
|
|
- or go back to the newest paste.
| 1 | - | print('Prorgam started.')
|
| 1 | + | |
| 2 | turtle.select(2) | |
| 3 | turtle.dig() | |
| 4 | - | turtle.select(4) |
| 4 | + | |
| 5 | turtle.select(1) | |
| 6 | end | |
| 7 | ||
| 8 | function checkFail() | |
| 9 | if turtle.suckDown() then | |
| 10 | turtle.dropUp() | |
| 11 | return false | |
| 12 | else | |
| 13 | print('Fixing...')
| |
| 14 | return true | |
| 15 | - | print('Fuck! Fixing...')
|
| 15 | + | |
| 16 | end | |
| 17 | ||
| 18 | turtle.select(1) | |
| 19 | while true do | |
| 20 | sleep(20) | |
| 21 | if checkFail() then | |
| 22 | fix() | |
| 23 | end | |
| 24 | end |