Advertisement
POPPYPLAYTIMEFAN

Untitled

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