View difference between Paste ID: inTV2pqG and GEMNWWWs
SHOW: | | - or go back to the newest paste.
1
go = 0
2
etage=0
3
function down ()
4
turtle.digDown()
5
turtle.down()
6
end
7-
while go <= 27 do 
7+
8
function place ()
9
turtle.digDown()
10
turtle.select(1)
11
turtle.placeDown(1)
12
turtle.forward()
13
turtle.digDown()
14
turtle.select(2)
15
turtle.placeDown(2)
16
turtle.forward()
17
turtle.digDown()
18
turtle.select(3)
19
turtle.placeDown(3)
20
turtle.forward()
21
turtle.digDown()
22
turtle.select(4)
23
turtle.placeDown(4)
24
turtle.forward()
25
turtle.digDown()
26
turtle.select(5)
27
turtle.placeDown(5)
28
turtle.forward()
29
turtle.digDown()
30
turtle.select(6)
31
turtle.placeDown(6)
32
turtle.forward()
33
turtle.digDown()
34
turtle.select(7)
35
turtle.placeDown(7)
36
turtle.forward()
37
turtle.digDown()
38
turtle.select(8)
39
turtle.placeDown(8)
40
turtle.forward()
41
turtle.digDown()
42
turtle.select(9)
43
turtle.placeDown(9)
44
turtle.forward()
45
turtle.digDown()
46
turtle.select(10)
47
turtle.placeDown(10)
48
end
49
50
function turn ()
51
turtle.turnRight()
52
turtle.forward()
53
turtle.turnRight()
54
end 
55
56
function turn2 () 
57
turtle.turnLeft()
58
turtle.forward()
59
turtle.turnLeft()
60
end
61
while go <= 11 do 
62
down()
63
go=go+1
64
end
65
66
if (go>==11) then
67
	while etage<=9 do 
68
		place()
69
		turn()
70
		etage=etage+1
71
		place()
72
		turn2()
73
		etage=etage+1
74
75
	end 
76
77
78
end
79
80
if (etage==9) then
81
turtle.up()
82
turtle.turnLeft()
83
turtle.forward()
84
turtle.forward()
85
turtle.forward()
86
turtle.forward()
87
turtle.forward()
88
turtle.forward()
89
turtle.forward()
90
turtle.forward()
91
turtle.forward()
92
turtle.turnRight()
93
etage=0
94
go=24
95
if (go>=11) then
96
	while etage>=9 do 
97
		place()
98
		turn()
99
		etage=etage+1
100
		place()
101
		turn2()
102
		etage=etage+1
103
104
	end 
105
106
end