sneed

Untitled

Aug 20th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 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. while turtle.down()
  8. if turtle.detectDown() then
  9. turtle.digDown()
  10. end
  11. end
  12. end
  13. function Umschauen()
  14. for i=1, 4 do
  15. turtle.turnLeft()
  16. success, data = turtle.inspect()
  17. if data.name == searchedBlock then
  18. turtle.dig()
  19.  
  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