SHOW:
|
|
- or go back to the newest paste.
1 | - | j=0 |
1 | + | |
2 | while(turtle.forward()==false) do | |
3 | turtle.dig() | |
4 | end | |
5 | end | |
6 | ||
7 | function fdigUp() | |
8 | while(turtle.detectUp()) do | |
9 | turtle.digUp() | |
10 | sleep(0.4) | |
11 | end | |
12 | end | |
13 | ||
14 | function step() | |
15 | fforward() | |
16 | - | function placeTorch() |
16 | + | |
17 | turtle.select(1) | |
18 | turtle.placeDown() | |
19 | - | turtle.select(2) |
19 | + | |
20 | - | turtle.place() |
20 | + | |
21 | write("Maximale Laenge eingeben:") | |
22 | max=tonumber(read()) | |
23 | - | j=0 |
23 | + | |
24 | ||
25 | while(i<max) do | |
26 | for k=1,i do | |
27 | step() | |
28 | end | |
29 | turtle.turnRight() | |
30 | i=i+2 | |
31 | - | if(j>12) then |
31 | + |