Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. local function checkSurrounding()
  2. checkFront()
  3. turtle.turnLeft()
  4. checkFront()
  5. turtle.turnLeft()
  6. checkFront()
  7. turtle.turnLeft()
  8. checkFront()
  9. turtle.turnLeft()
  10. end
  11.  
  12. local function checkFront()
  13. local success, blockData = turtle.inspect()
  14.  
  15. print(blockData)
  16.  
  17. if success then
  18. if checkForOre(blockData) then
  19. turtle.dig()
  20. end
  21. end
  22. end
  23.  
  24. local function checkForOre(blockData)
  25.  
  26.  
  27. return false
  28. end
  29.  
  30. checkSurrounding()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement