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