SHOW:
|
|
- or go back to the newest paste.
1 | - | n = 50 |
1 | + | n = 80 |
2 | - | z = 3 |
2 | + | |
3 | function just_dig(n) | |
4 | - | function dig(n) |
4 | + | |
5 | - | sl = 2 |
5 | + | |
6 | turtle.digUp() | |
7 | - | while turtle.detect() do |
7 | + | |
8 | - | turtle.dig() |
8 | + | |
9 | - | sleep(sl) |
9 | + | |
10 | - | end |
10 | + | |
11 | -------------------------------- | |
12 | - | turtle.back() |
12 | + | just_dig(n) |
13 | - | while turtle.detect() do |
13 | + | for i=1,n do |
14 | - | turtle.dig() |
14 | + | turtle.back() |
15 | - | sleep(sl) |
15 | + | end |