SHOW:
|
|
- or go back to the newest paste.
| 1 | local h = 1 | |
| 2 | ||
| 3 | function filler() | |
| 4 | if turtle.getFuelLevel()<10 then | |
| 5 | turtle.select(1) | |
| 6 | turtle.refuel(1) | |
| 7 | turtle.select(2) | |
| 8 | end | |
| 9 | end | |
| 10 | - | sleep(1) |
| 10 | + | |
| 11 | function digMove() | |
| 12 | turtle.down() | |
| 13 | turtle.digDown() | |
| 14 | end | |
| 15 | ||
| 16 | turtle.digDown() | |
| 17 | while not turtle.detectDown() do | |
| 18 | filler() | |
| 19 | digMove() | |
| 20 | end | |
| 21 | ||
| 22 | turtle.select(1) | |
| 23 | ||
| 24 | while h < 100 do | |
| 25 | filler() | |
| 26 | turtle.up() | |
| 27 | turtle.placeDown() | |
| 28 | if turtle.getItemCount(1)<3 then | |
| 29 | turtle.select(2) | |
| 30 | turtle.transferTo(1) | |
| 31 | turtle.select(1) | |
| 32 | end | |
| 33 | h = h + 1 | |
| 34 | end | |
| 35 | ||
| 36 | run() |