SHOW:
|
|
- or go back to the newest paste.
1 | -- Fill the whole turtle with 64 stacks of fences. Refuel. | |
2 | -- Place it anywhere (high above lands is prefered, but anything is possible besides bedrock) | |
3 | local stackProgress = 1 | |
4 | local site = 1 | |
5 | local currentStack = 1 | |
6 | local stackSize = 1 | |
7 | ||
8 | -- outer while loop. 4 times (1 for each side of the square) | |
9 | while (site < 5) do | |
10 | stackProgress = 1 | |
11 | -- side while loop. 4 times (1 for each stack of fences for this side) | |
12 | - | while (stackProgress < 5) do |
12 | + | while (stackProgress < 2) do |
13 | stackSize = 1 | |
14 | -- stack while loop. 64 times (1 for each fence of the stack) | |
15 | while (stackSize < 65) do | |
16 | -- gravel/sand detection | |
17 | while turtle.detect() do | |
18 | turtle.dig() | |
19 | sleep(0.25) | |
20 | end | |
21 | turtle.forward() | |
22 | turtle.select(currentStack) | |
23 | turtle.digDown() | |
24 | turtle.placeDown() | |
25 | stackSize= stackSize + 1 | |
26 | end | |
27 | stackProgress = stackProgress + 1 | |
28 | currentStack = currentStack + 1 | |
29 | end | |
30 | turtle.turnLeft() | |
31 | site = site + 1 | |
32 | end |