Advertisement
sasha311216

pixelart2

Jun 29th, 2025
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.                
  52.         end
  53.         turtle.turnRight()
  54.         turtle.forward()
  55.         turtle.turnRight()
  56.         for i = 1,#[x][y] do
  57.             turtle.forward()
  58.         end
  59.         turtle.turnRight()
  60.         turtle.forward()
  61.         turtle.turnRight()
  62.         for i = 1,#[x][y] do
  63.             turtle.forward()
  64.         end
  65.         turtle.turnRight()
  66.         turtle.up()
  67.         end
  68.  
  69.        
  70.  
  71.                    
  72.            
  73.  
  74.  
  75.  
  76.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement