sneed

Untitled

Aug 20th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. local searchedBlock = "minecraft:diamond_ore"
  2. function Fackel()
  3. turtle.select(2)
  4. turtle.placeUp()
  5. end
  6. function fDown()
  7. turtle.detectDown()
  8. if turtle.detectDown() then
  9. turtle.digDown()
  10. turtle.down()
  11. end
  12. end
  13. function Umschauen()
  14. for i=1, 4 do
  15. turtle.turnLeft()
  16. success, data = turtle.inspect()
  17. if success AND data.name == searchedBlock then
  18. turtle.dig()
  19. turtle.dig()
  20. end
  21. end
  22. end
  23. for p=1,10 do
  24. fDown()
  25. Umschauen()
  26. end
Advertisement
Add Comment
Please, Sign In to add comment