SHOW:
|
|
- or go back to the newest paste.
1 | - | while true do |
1 | + | --Place stack of torches in Slot 1 |
2 | ||
3 | - | if turtle.detectUp() == true then |
3 | + | --Will place a torch every 13 blocks for 64 iterations |
4 | - | turtle.digUp() |
4 | + | tunnel=64 |
5 | - | else |
5 | + | |
6 | - | if turtle.detectDown() == false then |
6 | + | --Number of spaces moved before placing another torch |
7 | - | turtle.placeDown() |
7 | + | number=13 |
8 | ||
9 | - | else |
9 | + | --Initial start |
10 | - | |
10 | + | turtle.digUp() |
11 | - | if turtle.detect() == true then |
11 | + | turtle.up() |
12 | - | turtle.dig() |
12 | + | |
13 | - | else |
13 | + | --Main Program |
14 | - | turtle.forward() |
14 | + | for t=1,tunnel do |
15 | - | end |
15 | + | turtle.placeDown() |
16 | - | end |
16 | + | for n=1,number do |
17 | - | end |
17 | + | turtle.dig() |
18 | turtle.forward() | |
19 | if turtle.detectDown() then | |
20 | turtle.digDown() | |
21 | end | |
22 | end | |
23 | end |