InsideIntel

Untitled

Jan 12th, 2024 (edited)
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. local runs = 10
  2.  
  3. for run = 1, runs do
  4. for _ = 1, 9 do
  5. turtle.forward()
  6. turtle.placeDown()
  7. end
  8.  
  9. turtle.forward()
  10. turtle.down()
  11.  
  12. itemDetail = turtle.getItemDetail().damage
  13.  
  14. -- Check if item in hand has durability less than 1000
  15. while itemDetail < 1000 do
  16. turtle.placeDown()
  17. itemDetail = turtle.getItemDetail().damage
  18. end
  19.  
  20. turtle.turnLeft()
  21. turtle.turnLeft()
  22. turtle.up()
  23.  
  24. for _ = 1, 9 do
  25. turtle.forward()
  26. turtle.placeDown()
  27. end
  28.  
  29. turtle.forward()
  30. turtle.turnLeft()
  31. turtle.turnLeft()
  32. end
  33.  
Advertisement
Add Comment
Please, Sign In to add comment