Advertisement
RTS_Dmitriy

pixelart2

Jun 27th, 2025 (edited)
498
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function iff (x,y)
  2. if a[x][y]==1 then
  3. turtle.select(1)
  4. elseif a[x][y]==2 then
  5. turtle.select(2)
  6. elseif a[x][y]==3 then
  7. turtle.select(3)
  8. elseif a[x][y]==4 then
  9. turtle.select(4)
  10. elseif a[x][y]==5 then
  11. turtle.select(5)
  12. elseif a[x][y]==6 then
  13. turtle.select(6)
  14. end
  15. end
  16.  
  17. a = {
  18.     {
  19.         {1, 2, 2, 1},
  20.         {2, 0, 0, 2},
  21.         {2, 0, 0, 2},
  22.         {1, 2, 2, 1}
  23.     },
  24.     {
  25.         {2, 0, 0, 2},
  26.         {0, 0, 0, 0},
  27.         {0, 0, 0, 0},
  28.         {2, 0, 0, 2}
  29.     },
  30.     {
  31.         {2, 0, 0, 2},
  32.         {0, 0, 0, 0},
  33.         {0, 0, 0, 0},
  34.         {2, 0, 0, 2}
  35.     },
  36.     {
  37.         {1, 2, 2, 1},
  38.         {2, 0, 0, 2},
  39.         {2, 0, 0, 2},
  40.         {1, 2, 2, 1}
  41.     },
  42. }
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49. turtle.up()
  50. for x=1,#a do
  51.     for y=1,#a[x] do
  52.         for z = 1,#a[x][y] do
  53.             iff(x,y)
  54.             turtle.placeDown()
  55.             turtle.forward()
  56.         end
  57.         turtle.turnRight()
  58.         turtle.forward()
  59.         turtle.turnRight()
  60.         for y = 1,11 do
  61.             turtle.forward()
  62.         end
  63.         turtle.turnRight()
  64.         turtle.turnRight()
  65.     end
  66. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement