Advertisement
maxence01

farmeur bois

Mar 20th, 2021
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.77 KB | None | 0 0
  1. while true do
  2.  
  3. turtle.select(16)
  4. if turtle.compareDown() == true then
  5. turtle.turnRight()
  6. end
  7.  
  8. turtle.select(15)
  9. if turtle.compareDown() == true then
  10. turtle.turnRight()
  11. --sleep(2)
  12. turtle.select(13)
  13.  
  14. if turtle.compare() == true then
  15. i = 1
  16. while i <= 6 do
  17.   turtle.select(3)
  18.   turtle.dig()
  19.   turtle.select(2)
  20.   turtle.digUp()
  21.   turtle.up()
  22.   i = i + 1
  23. end
  24.   i = 1
  25.   while i<= 6 do
  26.   turtle.down()
  27.   i = i + 1
  28.   end
  29. end
  30.  
  31.   turtle.select(2)
  32.   turtle.place()
  33.   turtle.turnLeft()
  34. end
  35.  
  36. turtle.select(14)
  37. if turtle.compareDown() == true then
  38. turtle.turnRight()
  39. turtle.select(3)
  40. turtle.drop()
  41. turtle.turnLeft()
  42. turtle.turnLeft()
  43. turtle.select(1)
  44. turtle.suck()
  45. turtle.refuel(turtle.getItemCount(1))
  46. turtle.turnRight()
  47. end
  48.  
  49. turtle.forward()
  50.  
  51. end
  52.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement