SHOW:
|
|
- or go back to the newest paste.
| 1 | local dis1, dis2, dis3, dis4 = ... | |
| 2 | while true do | |
| 3 | for i = 1, dis1, 1 do | |
| 4 | - | --fuel = turtle.getFuelLevel() |
| 4 | + | while turtle.attack() do end |
| 5 | - | turtle.attack() |
| 5 | + | |
| 6 | end | |
| 7 | - | --term.clear() |
| 7 | + | |
| 8 | - | --term.setCursorPos(1,1) |
| 8 | + | |
| 9 | - | --term.write(fuel .. " blocks of distance left") |
| 9 | + | while turtle.attack() do end |
| 10 | turtle.forward() | |
| 11 | end | |
| 12 | turtle.turnRight() | |
| 13 | - | --fuel = turtle.getFuelLevel() |
| 13 | + | |
| 14 | - | turtle.attack() |
| 14 | + | while turtle.attack() do end |
| 15 | turtle.forward() | |
| 16 | - | --term.clear() |
| 16 | + | |
| 17 | - | --term.setCursorPos(1,1) |
| 17 | + | |
| 18 | - | --term.write(fuel .. " blocks of distance left") |
| 18 | + | |
| 19 | while turtle.attack() do end | |
| 20 | turtle.forward() | |
| 21 | end | |
| 22 | - | --fuel = turtle.getFuelLevel() |
| 22 | + | |
| 23 | - | turtle.attack() |
| 23 | + | |
| 24 | end |