Advertisement
ADRIAN333222

Untitled

Aug 24th, 2024 (edited)
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. --1 gray
  2. --2 black
  3. --3 pink
  4. --4 Purple
  5.  
  6.  
  7.  
  8. art1 = {
  9. {1, 2, 1, 3, 2, 1, 2, 2},
  10. {2, 1, 2, 4, 2, 2, 1, 1},
  11. {2, 1, 2, 3, 1, 1, 1, 2},
  12. {2, 2, 1, 1, 1, 1, 2, 2},
  13. {2, 2, 1, 1, 1, 1, 2, 2},
  14. {2, 1, 2, 3, 1, 1, 1, 2},
  15. {2, 1, 2, 4, 2, 2, 1, 1},
  16. {1, 2, 1, 3, 2, 1, 2, 2}
  17.  
  18. }
  19.  
  20. function buildline(line)
  21. for element = 1,#line do
  22. slot = line[element]
  23. if slot ~= 0 then
  24. turtle.select(slot)
  25. turtle.placeDown()
  26. end
  27. turtle.forward()
  28. end
  29. for w = 1,#line do
  30. turtle.back()
  31. end
  32. end
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39. function buildImage(image)
  40. for stroka = 1,#image do
  41. buildline(image[stroka])
  42. turtle.turnRight()
  43. turtle.forward()
  44. turtle.turnLeft()
  45. end
  46. turtle.turnLeft()
  47. for stroka = 1,#image do
  48. turtle.forward()
  49. end
  50. turtle.turnRight()
  51. turtle.up()
  52.  
  53. end
  54.  
  55.  
  56.  
  57.  
  58.  
  59. buildImage(art1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement