Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. local fuel = turtle.getFuelLevel()
  2. while true do
  3. fuel = turtle.getFuelLevel()
  4. if fuel <= 50 then
  5. turtle.select(3)
  6. turtle.dropDown()
  7. if turtle.suckUp() == false then
  8. print("Pas de Charbon !")
  9. return
  10. end
  11. turtle.select(3)
  12. turtle.refuel(64)
  13. end
  14. if fuel > 50 then
  15. turtle.select(1)
  16. turtle.place()
  17. turtle.select(2)
  18. turtle.place()
  19. turtle.place()
  20. turtle.place()
  21. turtle.place()
  22. turtle.place()
  23. end
  24.  
  25.  
  26. if turtle.getItemCount(2) == 0 then
  27. turtle.turnRight()
  28. if turtle.suck() == false then
  29. print("Pas de Bonemeal !")
  30. return
  31. end
  32. turtle.turnLeft()
  33. end
  34.  
  35. if fuel > 50 then
  36. turtle.select(1)
  37. turtle.dig()
  38. turtle.select(3)
  39. turtle.dropDown()
  40. end
  41. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement