Advertisement
Guest User

p

a guest
Dec 17th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.65 KB | None | 0 0
  1. while true do
  2. local success, data = turtle.inspectDown()
  3. local minimumFuel = 400
  4.  
  5. if turtle.inspectDown() then
  6.   if data.metadata == 7 then
  7.     turtle.select(2)
  8.     turtle.digDown()
  9.     turtle.select(1)
  10.     turtle.placeDown()
  11.   end
  12. end
  13.    
  14. turtle.select(16)
  15. if turtle.compare() == true then
  16.   turtle.turnLeft()
  17.   turtle.turnLeft()
  18. end
  19.  
  20. turtle.select(15)
  21. if turtle.compare() == true then
  22. turtle.select(2)
  23. turtle.drop()
  24. turtle.select(3)
  25. turtle.turnRight()
  26.    while turtle.getFuelLevel() < minimumFuel do
  27.    turtle.suck(1)
  28.    turtle.refuel()
  29.    end
  30. turtle.turnRight()
  31. end
  32.  
  33. turtle.select(1)
  34. turtle.placeDown()
  35. turtle.forward()
  36.  
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement