Advertisement
sasha311216

pixelart1

Jun 22nd, 2025
23
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. if a[x][y]==1 then
  5. turtle.select(2)
  6. if a[x][y]==1 then
  7. turtle.select(3)
  8. if a[x][y]==1 then
  9. turtle.select(4)
  10. if a[x][y]==1 then
  11. turtle.select(5)
  12. if a[x][y]==1 then
  13. turtle.select(6)
  14. a={ {1,1,1,2,2,2,2,2,1,1,1}
  15.     {2,2,2,2,2,2,2,2,2,2,2}
  16.     {1,1,2,1,2,2,2,2,1,1,1}
  17.     {1,1,1,2,2,2,2,2,1,1,1}
  18.     {1,2,4,4,5,5,5,4,4,2,2}
  19.     {1,2,4,4,5,5,5,4,4,2,1}
  20.     {1,1,1,4,4,5,4,4,1,6,1}
  21.     {1,1,1,4,4,4,4,4,1,6,1}
  22.     {1,1,1,2,2,1,2,2,1,6,1}
  23.  
  24.  
  25. turtle.up()
  26. for x=1,2 do
  27. for y = 1,11 do
  28.  
  29. iff(x,y)
  30. turtle.placeDown()
  31. turtle.forward()
  32. end
  33. turtle.turnRight()
  34. turtle.forward()
  35. turtle.turnRight()
  36. turtle.forward()
  37. for y = 1,11 do
  38.  
  39. iff(x,y)
  40. turtle.placeDown()
  41. turtle.forward()
  42. end
  43. turtle.turnLeft()
  44. turtle.forward()
  45. turtle.turnLeft()
  46. turtle.forward()
  47. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement