SHOW:
|
|
- or go back to the newest paste.
| 1 | local minFuelAmount = 200 | |
| 2 | local tArgs = { ... }
| |
| 3 | while true do | |
| 4 | turtle.placeDown() | |
| 5 | - | turtle.select(9) |
| 5 | + | for i=1,6 do |
| 6 | if turtle.getFuelLevel() < minFuelAmount then | |
| 7 | turtle.select(2) | |
| 8 | turtle.refuel() | |
| 9 | - | turtle.dig() |
| 9 | + | |
| 10 | - | if tArgs[1] == "up" then |
| 10 | + | |
| 11 | - | turtle.placeUp() |
| 11 | + | |
| 12 | - | elseif tArgs[1] == "right" then |
| 12 | + | |
| 13 | - | turtle.turnRight() |
| 13 | + |