Advertisement
Guest User

applemine

a guest
Dec 14th, 2013
443
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.33 KB | None | 0 0
  1. function emptyInventory()
  2.   for i = 3, 16 do
  3.     turtle.select(i)
  4.     turtle.dropDown(64)
  5.   end
  6. end
  7.  
  8. function appleMine()
  9.   while true do
  10.     for i = 1,60 do
  11.       turtle.select(1)
  12.       turtle.digDown()
  13.       turtle.down()
  14.       turtle.digDown()
  15.       turtle.down()
  16.       turtle.turnRight()
  17.       turtle.dig()
  18.       turtle.turnLeft()
  19.       turtle.turnLeft()
  20.       turtle.dig()
  21.       turtle.turnRight()
  22.       turtle.dig()
  23.       turtle.forward()
  24.       turtle.turnRight()
  25.       turtle.dig()
  26.       turtle.turnLeft()
  27.       turtle.turnLeft()
  28.       turtle.dig()
  29.       turtle.turnRight()
  30.       turtle.dig()
  31.       turtle.forward()
  32.       turtle.turnRight()
  33.       turtle.dig()
  34.       turtle.turnLeft()
  35.       turtle.turnLeft()
  36.       turtle.dig()
  37.       turtle.turnRight()
  38.       turtle.dig()
  39.       turtle.forward()
  40.       turtle.turnRight()
  41.       turtle.dig()
  42.       turtle.turnLeft()
  43.       turtle.turnLeft()
  44.       turtle.forward()
  45.       turtle.dig()
  46.       turtle.turnRight()
  47.       turtle.back()
  48.       turtle.back()
  49.       turtle.up()
  50.       turtle.placeDown()
  51.       emptyInventory()
  52.       appleFuel()
  53.     end
  54.   end
  55. end
  56. function appleFuel()
  57.   if turtle.getFuelLevel() <= 50 then
  58.     turtle.select(2)
  59.     turtle.placeUp()
  60.     turtle.suckUp()
  61.     turtle.refuel(64)
  62.     turtle.digUp()
  63.   end
  64. end
  65. turtle.select(1)
  66. appleMine()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement