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