Advertisement
RTS_Dmitriy

Untitled

May 12th, 2024 (edited)
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- 0 - empty
  2. -- 1 - black
  3. -- 2 - red
  4. art = {
  5.     {
  6.       {2, 1, 1, 2},
  7.       {1, 0, 0, 1},
  8.       {1, 0, 0, 1},
  9.       {2, 1, 1, 2},
  10.     },
  11.     {
  12.       {1, 0, 0, 1},
  13.       {0, 0, 0, 0},
  14.       {0, 0, 0, 0},
  15.       {1, 0, 0, 1},
  16.     }
  17. }
  18.  
  19.  
  20. for z = 1, #art do
  21.     for y = 1, #art[z] do
  22.         for x = 1, #art[z][y] do
  23.           slot = art[z][y][x]
  24.           if slot ~= 0 then
  25.               turtle.select(slot)
  26.               turtle.placeDown()
  27.           end
  28.           turtle.forward()
  29.         end
  30.  
  31.         for i = 1, #art[z][y] do
  32.           turtle.back()
  33.         end
  34.         turtle.turnRight()
  35.         turtle.forward()
  36.         turtle.turnLeft()
  37.     end
  38.     turtle.turnLeft()
  39.     for y = 1, #art[z] do
  40.         turtle.forward()
  41.     end
  42.     turtle.turnRight()
  43.     turtle.up()
  44.  end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement