View difference between Paste ID: jRRNRecK and ZRYASCa9
SHOW: | | - or go back to the newest paste.
1
-- 1 - glass
2
-- 2 - black
3
-- 3 - red
4
Slots = {
5
   {
6
	{2, 3, 3, 2},
7
    {3, 0, 0, 3},
8
    {3, 0, 0, 3},
9
    {2, 3, 3, 2}
10
   },
11
    {
12
     {3, 0, 0, 3},
13
     {0, 0, 0, 0},
14
     {0, 0, 0, 0},
15
     {3, 0, 0, 3}
16
   }
17
}
18
for layer = 1, #Slots do
19
    for line = 1, #Slots[layer] do
20
        for elem = 1, #Slots[layer][line] do
21-
          slot = Slots[line][elem]
21+
          slot = Slots[layer][line][elem]
22
          if slot ~= 0 then  
23
            turtle.select(slot)
24
            turtle.placeDown()
25
          end
26-
         turtle.forward()
26+
          turtle.forward()
27
        end
28-
        for turt = 1, #Slots[line] do
28+
        for turt = 1, #Slots[layer][line] do
29
          turtle.back()
30
        end
31-
        turtle.up()
31+
        turtle.turnRight()
32
        turtle.forward()
33
        turtle.turnLeft()
34-
    turtle.forward()
34+
35
    turtle.turnLeft()
36-
    for turt = 1, #Slots do
36+
	for line = 1, #Slots[layer] do
37-
      turtle.down()
37+
        turtle.forward()
38
    end
39
    turtle.turnRight()
40
    turtle.up()
41
end