Advertisement
Vodka51200

turtleminesalle3*3

Jun 30th, 2017 (edited)
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.57 KB | None | 0 0
  1. function mine()
  2. turtle.dig()
  3. turtle.forward()
  4. turtle.digUp()
  5. turtle.digDown()
  6. turtle.turnLeft()
  7. turtle.dig()
  8. turtle.forward()
  9. turtle.digUp()
  10. turtle.digDown()
  11. turtle.turnRight()
  12. turtle.turnRight()
  13. turtle.forward()
  14. turtle.dig()
  15. turtle.forward()
  16. turtle.digUp()
  17. turtle.digDown()
  18. turtle.turnLeft()
  19. turtle.turnLeft()
  20. turtle.forward()
  21. turtle.turnRight()
  22. end
  23.  
  24. print("Entrez la longueur de la zone a miner.")
  25. print("")
  26. print("Longueur (en face) : ")
  27. longueur = tonumber(read())
  28.  
  29. for i = 1,longueur do
  30. print(i)
  31. fuel = turtle.getFuelLevel()
  32. print(fuel)
  33. mine()
  34. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement