Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.76 KB | None | 0 0
  1. function up()
  2.   turtle.up()
  3. end
  4.  
  5. function down()
  6.   turtle.down()
  7. end
  8.  
  9. function forward()
  10.   turtle.forward()
  11. end
  12.  
  13. function back()
  14.   turtle.back()
  15. end
  16.  
  17. function left()
  18.   turtle.turnLeft()
  19. end
  20.  
  21. function right()
  22.   turtle.turnRight()
  23. end
  24.  
  25. function refuel()
  26.   if turtle.getFuelLevel() < 241 then
  27.     turtle.select(16)
  28.     turtle.refuel()
  29.     turtle.select(1)
  30.   end
  31. end
  32.  
  33. refuel()
  34.  
  35. function lights()
  36.     forward()
  37.     forward()
  38.     right()
  39.     forward()
  40.     forward()
  41.     forward()
  42.     forward()
  43.     up()
  44.     up()
  45.     turtle.digUp()
  46.     turtle.placeUp()
  47.     down()
  48.     down()
  49.     left()
  50.     forward()
  51.     forward()
  52.     forward()
  53.     forward()
  54.     forward()
  55.     up()
  56.     up()
  57.     turtle.digUp()
  58.     turtle.placeUp()
  59.     down()
  60.     down()
  61.     forward()
  62.     forward()
  63.     forward()
  64.     up()
  65.     up()
  66.     turtle.digUp()
  67.     turtle.placeUp()
  68.     down()
  69.     down()
  70.     right()
  71.     right()
  72.     forward()
  73.     left()
  74.     forward()
  75.     forward()
  76.     forward()
  77.     forward()
  78.     left()
  79.     forward()
  80.     forward()
  81.     forward()
  82.     forward()
  83.     forward()
  84.     forward()
  85.     left()
  86.     forward()
  87.     up()
  88.     up()
  89.     turtle.digUp()
  90.     turtle.placeUp()
  91.     down()
  92.     down()
  93.     forward()
  94.     forward()
  95.     forward()
  96.     forward()
  97.     forward()
  98.     forward()
  99.     forward()
  100.     forward()
  101.     forward()
  102.     forward()
  103.     up()
  104.     up()
  105.     turtle.digUp()
  106.     turtle.placeUp()
  107.     down()
  108.     down()
  109.     forward()
  110.     left()
  111.     forward()
  112.     forward()
  113.     forward()
  114.     forward()
  115.     forward()
  116.     forward()
  117.     left()
  118.     forward()
  119.     forward()
  120.     forward()
  121.     forward()
  122.     left()
  123.     forward()
  124.     up()
  125.     up()
  126.     turtle.digUp()
  127.     turtle.placeUp()
  128.     down()
  129.     down()
  130.     right()
  131.     right()
  132.     forward()
  133.     forward()
  134.     forward()
  135.     up()
  136.     up()
  137.     turtle.digUp()
  138.     turtle.placeUp()
  139.     down()
  140.     down()
  141.     forward()
  142.     forward()
  143.     forward()
  144.     forward()
  145.     forward()
  146.     up()
  147.     up()
  148.     turtle.digUp()
  149.     turtle.placeUp()
  150.     down()
  151.     down()
  152.     forward()
  153.     forward()
  154.     right()
  155.     right()
  156. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement