View difference between Paste ID: GKvJiPnv and ZWzFgp80
SHOW: | | - or go back to the newest paste.
1
function iff (x,y,z)
2
if a[x][y][z]==1 then
3
turtle.select(1)
4
elseif a[x][y][z]==2 then
5
turtle.select(2)
6
elseif a[x][y][z]==3 then
7
turtle.select(3)
8
elseif a[x][y][z]==4 then
9
turtle.select(4)
10
elseif a[x][y][z]==5 then
11
turtle.select(5)
12
elseif a[x][y][z]==6 then
13
turtle.select(6)
14
elseif a[x][y][z]==0 then
15
turtle.select(16)
16
end
17
end
18
 
19
a = {
20
	{
21
		{1, 2, 2, 1},
22
  		{2, 0, 0, 2},
23
		{2, 0, 0, 2},
24
		{1, 2, 2, 1} 
25
	},
26
	{
27
		{2, 0, 0, 2},
28
  		{0, 0, 0, 0},
29
		{0, 0, 0, 0},
30
		{2, 0, 0, 2} 
31
	},
32
	{
33
		{2, 0, 0, 2},
34
  		{0, 0, 0, 0},
35
		{0, 0, 0, 0},
36
		{2, 0, 0, 2} 
37
	},
38
	{
39
		{1, 2, 2, 1},
40
  		{2, 0, 0, 2},
41
		{2, 0, 0, 2},
42
		{1, 2, 2, 1} 
43
	},
44
}
45
for i = 1,# do
46
		for i =1,#[x] do
47
			for i = 1,#[x][y] do
48
				iff (x,y,z)
49
				turtle.placeDown()
50
				turtle.forward()
51-
turtle.up()
51+
				
52-
for x=1,#a do
52+
53-
	for y=1,#a[x] do
53+
54-
		for z = 1,#a[x][y] do
54+
55-
			iff(x,y)
55+
56-
			turtle.placeDown()
56+
		for i = 1,#[x][y] do
57
			turtle.forward()
58
		end
59
		turtle.turnRight()
60
		turtle.forward()
61
		turtle.turnRight()
62-
		for y = 1,11 do
62+
        for i = 1,#[x][y] do
63
			turtle.forward()
64
		end
65
		turtle.turnRight()
66
        turtle.up()
67-
	end
67+
        end
68-
end
68+
69
       
70
71
					
72
			
73
74
75
 
76