Cubix_Gamer

Untitled

Jun 15th, 2020
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.54 KB | None | 0 0
  1. while true do
  2.  
  3. local fuelSlot, saplingSlot = 1, 2
  4.  
  5. while turtle.getFuelLevel() < 160 do
  6. turtle.select(fuelSlot)
  7. turtle.refuel()
  8. print("Refuel")
  9. end
  10.  
  11. while turtle.detect() do
  12. print("Arbre trouvé")
  13. turtle.dig()
  14. turtle.forward()
  15. turtle.digDown()
  16. turtle.digUp()
  17. turtle.up()
  18. turtle.digUp()
  19. turtle.up()
  20. turtle.digUp()
  21. turtle.up()
  22. turtle.digUp()
  23. print("Arbre coupé")
  24. turtle.down()
  25. turtle.down()
  26. turtle.down()
  27. turtle.back()
  28. print("Fin")
  29. turtle.select(saplingSlot)
  30. turtle.down()
  31. turtle.place()
  32. print("Pousse planté")
  33. end
  34.  
  35. end
Advertisement
Add Comment
Please, Sign In to add comment