SHOW:
|
|
- or go back to the newest paste.
1 | -- Slot 1: Cobble | |
2 | -- Slot 2: Sand | |
3 | -- Slot 3: Cactus | |
4 | -- Slot 4: Fence | |
5 | local cactusPerTower = 3 | |
6 | local towerHeight = cactusPerTower*4 | |
7 | local i = 0 | |
8 | local e = 0 | |
9 | local first = 0 | |
10 | ||
11 | while(e<2) do | |
12 | i = 0 | |
13 | while(i<cactusPerTower) do | |
14 | turtle.select(1) | |
15 | turtle.placeDown() | |
16 | turtle.up() | |
17 | turtle.select(2) | |
18 | turtle.placeDown() | |
19 | turtle.up() | |
20 | turtle.select(3) | |
21 | turtle.placeDown() | |
22 | if (first = 0) do | |
23 | turtle.select(4) | |
24 | turtle.place() | |
25 | end | |
26 | turtle.up() | |
27 | turtle.up() | |
28 | i = i + 1 | |
29 | end | |
30 | first = 1 | |
31 | ||
32 | turtle.forward() | |
33 | turtle.forward() | |
34 | ||
35 | i = 0 | |
36 | while(i<towerHeight) do | |
37 | turtle.down() | |
38 | i = i + 1 | |
39 | end | |
40 | ||
41 | e = e +1 | |
42 | end |