GamexLive

Untitled

Nov 27th, 2020
498
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. turtle.refuel()
  2. local torchDistance = 0
  3. do
  4. turtle.select(2)
  5. turtle.placeDown()
  6. if turtle.detect()
  7. turtle.dig()
  8. turtle.forward()
  9. turtle.digUp()
  10. turtle.turnLeft()
  11. turtle.dig()
  12. turtle.up()
  13. turtle.dig()
  14. turtle.turnRight()
  15. turtle.turnRight()
  16. turtle.dig()
  17. turtle.down()
  18. turtle.dig()
  19. turtle.turnLeft()
  20. else
  21. turtle.forward()
  22. while ivFull() = false
  23.  
  24. function ivFull()
  25.   local full = true
  26.   for i = 1,16 do
  27.     if turtle.getItemCount(i) == 0 then
  28.       full = false
  29.     end
  30.   end
  31.   return full
  32. end
  33.  
RAW Paste Data