SHOW:
|
|
- or go back to the newest paste.
| 1 | --initialisierung | |
| 2 | - | turtle.select(1) |
| 2 | + | |
| 3 | - | turtle.refuel() |
| 3 | + | |
| 4 | - | turtle.select(16) |
| 4 | + | |
| 5 | function fGRABEN() | |
| 6 | while turtle.detectUp() == true do | |
| 7 | turtle.digUp() | |
| 8 | end | |
| 9 | if turtle.detect() == true then | |
| 10 | turtle.dig() | |
| 11 | end | |
| 12 | - | if turtle.detectDown()==true then |
| 12 | + | |
| 13 | - | turtle.digDown() |
| 13 | + | |
| 14 | - | turtle.placeDown() |
| 14 | + | |
| 15 | while true do | |
| 16 | for i=1,8 do | |
| 17 | fGRABEN() | |
| 18 | end | |
| 19 | if richtung==true then | |
| 20 | - | if turtle.detectDown() == true then |
| 20 | + | |
| 21 | - | turtle.placeDown() |
| 21 | + | |
| 22 | turtle.turnLeft() | |
| 23 | richtung=false | |
| 24 | end | |
| 25 | end |