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 | - | -- New: Turtle Places Fenceposts now. |
6 | + | |
7 | local i = 0 | |
8 | while(i<cactusPerTower) do | |
9 | - | while(i<32) |
9 | + | |
10 | - | { |
10 | + | |
11 | turtle.up() | |
12 | turtle.select(2) | |
13 | turtle.placeDown() | |
14 | turtle.up() | |
15 | turtle.select(3) | |
16 | turtle.placeDown() | |
17 | turtle.up() | |
18 | - | } |
18 | + | |
19 | i = i + 1 | |
20 | end | |
21 | turtle.forward() | |
22 | - | while(i<32) do |
22 | + | |
23 | i = 0 | |
24 | while(i<cactusPerTower) do | |
25 | turtle.down() | |
26 | turtle.select(4) | |
27 | turtle.placeDown() | |
28 | turtle.down() | |
29 | turtle.down() | |
30 | turtle.down() | |
31 | i = i + 1 | |
32 | end |