SHOW:
|
|
- or go back to the newest paste.
| 1 | i = 1 | |
| 2 | ||
| 3 | for i = 1, 16 do | |
| 4 | turtle.select(i) | |
| 5 | if turtle.refuel(0) then | |
| 6 | turtle.refuel() | |
| 7 | end | |
| 8 | end | |
| 9 | end | |
| 10 | ||
| 11 | turtle.select(2) | |
| 12 | ||
| 13 | while not turtle.detectUp() do | |
| 14 | if turtle.getItemCount(i) <= 0 then | |
| 15 | turtle.select(i + 1) | |
| 16 | i = i + 1 | |
| 17 | end | |
| 18 | turtle.up() | |
| 19 | turtle.placeDown() | |
| 20 | end |