SHOW:
|
|
- or go back to the newest paste.
1 | local function goDown() | |
2 | while turtle.detectDown() == false do | |
3 | turtle.down() | |
4 | end | |
5 | end | |
6 | ||
7 | local function digStuff() | |
8 | while turtle.detect() do | |
9 | turtle.dig() | |
10 | turtle.digUp() | |
11 | turtle.up() | |
12 | end | |
13 | goDown() | |
14 | turtle.forward() | |
15 | end | |
16 | ||
17 | local times = 0 | |
18 | print("Hello! How many times to run?: ") | |
19 | times = read() | |
20 | for i = 1, times do | |
21 | digStuff() | |
22 | goDown() | |
23 | end |