Padhie

mining

Mar 28th, 2013
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. -- pastebin get sKCCJSBT mining
  2. -- 3hoch 1breit
  3. local iFackel = 8
  4. local iCount = 0
  5. local iMax = 200
  6. local iNow = 0
  7. local iPlaceOfFackel = 1
  8. local iFackelCount = 0
  9. local iFuel = turtle.getFuelLevel()
  10.  
  11. iFackelCount = turtle.getItemCount(iPlaceOfFackel)
  12. while iNow <= iMax do
  13. turtle.dig()
  14. turtle.forward()
  15. turtle.digUp()
  16. turtle.digDown()
  17. if iCount == iFackel then
  18. turtle.select(placeOfFackel)
  19. turtle.placeDown()
  20. iCount = 0
  21. iFackelCount = iFackelCount-1
  22. end
  23. iNow = iNow+1
  24. if iNow%10 == 0 then
  25. iFuel = turtle.getFuelLevel()
  26. print("Fackel: ")
  27. print(iFackelCount)
  28. print("Line: ")
  29. print(iNow)
  30. print("Fual: ")
  31. print(iFuel)
  32. end
  33. end
  34.  
  35. -- come home
  36. turtle.up()
  37. turtle.turnRight()
  38. turtle.turnRight()
  39. while iNow >= 0 do
  40. turtle.forward()
  41. iNow = iNow-1
  42. end
Advertisement
Add Comment
Please, Sign In to add comment