SHOW:
|
|
- or go back to the newest paste.
| 1 | - | function fuel() |
| 1 | + | |
| 2 | - | if turtle.getFuelLevel() < 10 then |
| 2 | + | |
| 3 | - | turtle.select(16) |
| 3 | + | |
| 4 | - | turtle.refuel(1) |
| 4 | + | |
| 5 | - | turtle.select(1) |
| 5 | + | |
| 6 | end | |
| 7 | end | |
| 8 | function cut() | |
| 9 | turtle.dig() | |
| 10 | turtle.turnRight() | |
| 11 | - | fuel() |
| 11 | + | |
| 12 | turtle.turnLeft() | |
| 13 | end | |
| 14 | turtle.dig() | |
| 15 | turtle.forward() | |
| 16 | turtle.select(15) | |
| 17 | - | fuel() |
| 17 | + | |
| 18 | cut() | |
| 19 | turtle.digUp() | |
| 20 | turtle.up() | |
| 21 | end | |
| 22 | cut() | |
| 23 | - | fuel() |
| 23 | + | |
| 24 | turtle.turnRight() | |
| 25 | turtle.dig() | |
| 26 | turtle.forward() | |
| 27 | detectdown() |