Michael_Roy

Untitled

Apr 16th, 2026
20
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  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={{1,1,1,2,2,2,2,2,1,1,1} ,
  18. {2,2,2,2,2,2,2,2,2,2,2} ,
  19. {1,1,2,1,3,2,3,1,2,1,1} ,
  20. {1,1,1,2,2,2,2,2,1,1,1} ,
  21. {1,1,1,2,2,2,2,2,1,1,1} ,
  22. {1,2,4,4,5,5,5,4,4,2,1} ,
  23. {1,2,4,4,5,5,5,4,4,2,1} ,
  24. {1,1,1,4,4,5,4,4,1,6,1} ,
  25. {1,1,1,4,4,4,4,4,1,6,1} ,
  26. {1,1,1,2,2,1,2,2,1,6,1}
  27. }
  28.  
  29.  
  30. turtle.up()
  31. for x=1,10 do
  32. for y = 1,11 do
  33. iff(x,y)
  34. turtle.placeDown()
  35. turtle.forward()
  36. end
  37. turtle.turnRight()
  38. turtle.forward()
  39. turtle.turnRight()
  40. for y = 1,11 do
  41. turtle.forward()
  42. end
  43. turtle.turnRight()
  44. turtle.turnRight()
  45. end
Comments
Add Comment
Please, Sign In to add comment