SHOW:
|
|
- or go back to the newest paste.
| 1 | t=turtle | |
| 2 | ||
| 3 | function refuel() | |
| 4 | t.select(1) | |
| 5 | - | if t.getFuelLevel() > 100 then |
| 5 | + | while t.getFuelLevel()<100 do |
| 6 | - | print("Normal Level")
|
| 6 | + | if not turtle.refuel(1) then |
| 7 | - | else |
| 7 | + | print("Getting fuel...Put fuel in first slot")
|
| 8 | - | t.refuel(1) |
| 8 | + | |
| 9 | - | print("Fuel Loading")
|
| 9 | + | |
| 10 | end | |
| 11 | ||
| 12 | function tonnel() | |
| 13 | for i=1,256 do | |
| 14 | - | if turtle.getItemCount(16) > 32 then |
| 14 | + | t.dig() |
| 15 | - | t.select(2) |
| 15 | + | t.digDown() |
| 16 | - | t.placeDown() |
| 16 | + | t.digUp() |
| 17 | - | for i = 3,16 do |
| 17 | + | t.forward() |
| 18 | - | turtle.select(i) |
| 18 | + | |
| 19 | - | turtle.dropDown() |
| 19 | + | t.select(16) |
| 20 | - | end |
| 20 | + | if turtle.getItemCount()>32 then |
| 21 | for i = 2,16 do | |
| 22 | - | if t.getFuelLevel() > 5 then |
| 22 | + | t.select(i) |
| 23 | - | for i = 1,1000 do |
| 23 | + | t.dropDown() |
| 24 | - | turtle.dig() |
| 24 | + | end |
| 25 | - | turtle.digDown() |
| 25 | + | end |