View difference between Paste ID: KcVLJbxH and tW3cyFP6
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
10
while(e<2) do
11
12
while(i<cactusPerTower) do
13
turtle.select(1)
14
turtle.placeDown()
15
turtle.up()
16
turtle.select(2)
17
turtle.placeDown()
18
turtle.up()
19
turtle.select(3)
20
turtle.placeDown()
21
turtle.up()
22-
turtle.place(4)
22+
turtle.select(4)
23
turtle.place()
24
turtle.up()
25
i = i + 1
26
end
27
28
turtle.forward()
29
turtle.forward()
30
31
i = 0
32
while(i<towerHeight) do
33
turtle.down()
34
i = i + 1
35
end
36
37
e = e +1
38
end