SHARE
TWEET

Skywrite

a guest Mar 26th, 2020 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. str = "f"
  2.  
  3. function moveRight()
  4.   turtle.turnRight()
  5.   turtle.forward()
  6.   turtle.turnLeft()
  7. end
  8.  
  9. function moveLeft()
  10.   turtle.turnLeft()
  11.   turtle.forward()
  12.   turtle.turnRight()
  13. end
  14.  
  15. function arm()
  16.   moveRight()
  17.   turtle.place()
  18.   moveRight()
  19.   turtle.place()
  20.   moveLeft()
  21.   moveLeft()
  22. end
  23.  
  24. function skyprint(letter)
  25.   print("Printing "..letter)
  26.   if letter == "f" then
  27.     arm()
  28.     turtle.place()
  29.     turtle.down()
  30.     turtle.place()
  31.     turtle.down()
  32.     arm()
  33.     turtle.place()
  34.     turtle.down()
  35.     turtle.place()
  36.     turtle.down()
  37.     turtle.place()
  38.     for i = 1,4 do
  39.       turtle.up()
  40.     end
  41.     moveRight()
  42.     moveRight()
  43.   end
  44.   if letter == "e" then
  45.     for i = 1,4 do
  46.       turtle.place()
  47.       turtle.down()
  48.     end
  49.     turtle.place()
  50.     arm()
  51.     turtle.up()
  52.     turtle.up()
  53.     arm()
  54.     turtle.up()
  55.     turtle.up()
  56.     moveRight()
  57.     turtle.place()
  58.     moveRight()
  59.     turtle.place()
  60.   end
  61.   if letter == "d" then
  62.     for i = 1, 4 do
  63.       turtle.place()
  64.       turtle.down()
  65.     end
  66.     turtle.place()
  67.     moveRight()
  68.     turtle.place()
  69.     moveRight()
  70.     for i = 1,3 do
  71.       turtle.up()
  72.       turtle.place()
  73.     end
  74.     moveLeft()
  75.     turtle.up()
  76.     turtle.place()
  77.     moveRight()
  78.   end
  79.   if letter == "c" then
  80.     for i = 1,3 do
  81.       turtle.down()
  82.       turtle.place()
  83.     end
  84.     turtle.down()
  85.     moveRight()
  86.     turtle.place()
  87.     moveRight()
  88.     turtle.place()
  89.     for i = 1,4 do
  90.       turtle.up()
  91.     end
  92.     turtle.place()
  93.     moveLeft()
  94.     turtle.place()
  95.     moveRight()
  96.   end
  97.   if letter == "b" then
  98.     for i = 1,4 do
  99.       turtle.place()
  100.       turtle.down()
  101.     end
  102.     turtle.place()
  103.     moveRight()
  104.     turtle.place()
  105.     turtle.up()
  106.     moveRight()
  107.     turtle.place()
  108.     moveLeft()
  109.     turtle.up()
  110.     turtle.place()
  111.     moveRight()
  112.     turtle.up()
  113.     turtle.place()
  114.     moveLeft()
  115.     turtle.up()
  116.     turtle.place()
  117.     moveRight()
  118.   end
  119.   if letter == "a" then
  120.     moveRight()
  121.     turtle.place()
  122.     turtle.down()
  123.     moveLeft()
  124.     turtle.place()
  125.     moveRight()
  126.     moveRight()
  127.     turtle.place()
  128.     turtle.down()
  129.     turtle.place()
  130.     moveLeft()
  131.     turtle.place()
  132.     moveLeft()
  133.     turtle.place()
  134.     for i = 1,2 do
  135.       turtle.down()
  136.       turtle.place()
  137.     end
  138.     moveRight()
  139.     moveRight()
  140.     turtle.place()
  141.     turtle.up()
  142.     turtle.place()
  143.     for i = 1,3 do
  144.       turtle.up()
  145.     end
  146.   end
  147.   if letter == "h" then
  148.     for i = 1,4 do
  149.       turtle.place()
  150.       turtle.down()
  151.     end
  152.     turtle.place()
  153.     for i = 1,2 do
  154.       turtle.up()
  155.     end
  156.     moveRight()
  157.     turtle.place()
  158.     moveRight()
  159.     for i = 1,2 do
  160.       turtle.up()
  161.       turtle.place()
  162.     end
  163.     for i = 1,4 do
  164.       turtle.down()
  165.       turtle.place()
  166.     end
  167.     for i = 1,4 do
  168.       turtle.up()
  169.     end
  170.   end
  171.   if letter == "i" then
  172.     for i = 1,2 do
  173.       turtle.place()
  174.       moveRight()
  175.     end
  176.     turtle.place()
  177.     moveLeft()
  178.     for i = 1,4 do
  179.       turtle.place()
  180.       turtle.down()
  181.     end
  182.     moveLeft()
  183.     turtle.place()
  184.     for i = 1,2 do
  185.       moveRight()
  186.       turtle.place()
  187.     end
  188.     for i = 1,4 do
  189.       turtle.up()
  190.     end
  191.   end
  192. end
  193.  
  194.  
  195. t = {}
  196.  
  197. for i = 1, #str do
  198.   t[i] = str:sub(i, i)
  199. end
  200.  
  201. --add flying up
  202. for i = 1, #t do
  203.   skyprint(t[i])
  204.   moveRight()
  205.   moveRight()
  206. end
  207.  
  208. --add flying down
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top