Advertisement
Guest User

startup

a guest
Dec 16th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.33 KB | None | 0 0
  1. while true do  
  2.   turtle.select(16)
  3.   turtle.refuel()
  4.   turtle.select(13)
  5.   while true do
  6.     if turtle.compare() then break end
  7.     turtle.turnLeft()
  8.   end
  9.   print("ok")
  10.   turtle.select(1)
  11.   turtle.drop()
  12.   turtle.suck(1)
  13.   turtle.turnLeft()
  14.   turtle.select(16)
  15.   turtle.suck()
  16.   turtle.turnLeft()
  17.   turtle.select(3)
  18.   turtle.drop()
  19.   turtle.suck(1)
  20.   turtle.turnLeft()
  21.   turtle.forward()
  22.   turtle.turnLeft()
  23.   turtle.select(2)
  24.   turtle.drop()
  25.   turtle.turnLeft()
  26.   turtle.turnLeft()
  27.   turtle.select(4)
  28.   turtle.drop()
  29.   turtle.suck()
  30.   turtle.turnLeft()
  31.   turtle.select(5)
  32.   while true do
  33.     if turtle.detect() then break end  
  34.     turtle.forward()
  35.     if not turtle.compareDown() then
  36.       turtle.back()
  37.       break
  38.     end
  39.   end  
  40.   turtle.select(3)
  41.   if not turtle.detect() then turtle.place() end
  42.   turtle.select(1)
  43.   if not turtle.compare() then
  44.     while not turtle.compare() do
  45.       turtle.select(4)
  46.       turtle.place()
  47.       turtle.select(1)
  48.     end
  49.   end
  50.   turtle.select(1)
  51.   turtle.dig()
  52.   turtle.forward()
  53.   while turtle.compareUp() do
  54.     turtle.digUp()
  55.     turtle.up()
  56.   end
  57.   while not turtle.detectDown() do
  58.     turtle.down()
  59.   end
  60.   turtle.turnLeft()
  61.   turtle.turnLeft()
  62.   turtle.select(14)
  63.   while not turtle.detect() do
  64.     turtle.forward()
  65.   end
  66.   print("ok")  
  67. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement