SHOW:
|
|
- or go back to the newest paste.
| 1 | function refuel() | |
| 2 | - | |
| 2 | + | if turtle.getFuelLevel() < 1000 then |
| 3 | - | local f = 0 |
| 3 | + | |
| 4 | turtle.suckDown() | |
| 5 | - | f = turtle.getFuelLevel() |
| 5 | + | turtle.refuel() |
| 6 | end | |
| 7 | - | if f<20 do |
| 7 | + | end |
| 8 | ||
| 9 | while true do | |
| 10 | - | turtle.refuel(3) |
| 10 | + | |
| 11 | turtle.select(1) | |
| 12 | turtle.digUp() | |
| 13 | turtle.up(2) | |
| 14 | turtle.placeDown() | |
| 15 | turtle.up(24) | |
| 16 | - | turtle.digUP() |
| 16 | + | |
| 17 | turtle.placeDown() | |
| 18 | end |