Advertisement
Guest User

mining.lua

a guest
Mar 20th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. for i=1,50 do
  2.     if turtle.getFuelLevel() < 1 then
  3.         turtle.refuel(1)
  4.     end
  5.    
  6.     local success, data = turtle.inspect()
  7.    
  8.     if success then
  9.         turtle.dig()
  10.     end
  11.    
  12.     turtle.forward()
  13.    
  14.     local success, data = turtle.inspectUp()
  15.    
  16.     if success then
  17.         turtle.digUp()
  18.     end
  19. end
  20.  
  21. for i=1,50 do
  22.     turtle.back()
  23. end
  24. turtle.turnLeft()
  25. turtle.forward()
  26. turtle.forward()
  27. turtle.forward()
  28. turtle.turnRight()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement