Advertisement
MigasRocha

First Mining

Dec 3rd, 2023
854
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. while true do
  2.  
  3. if turtle.detect() == true then
  4.     x = x+1
  5.     turtle.digUp()
  6.     turtle.dig()
  7.     turtle.digDown()
  8.     turtle.forward()
  9. else
  10.     turtle.forward()
  11.  
  12. end  
  13. if x == 10 then
  14.  
  15. turtle.turnRight()
  16. turtle.dig()
  17. turtle.select(16)
  18. if turtle.getItemCount(16) == 0 then
  19.     sleep()
  20. end
  21. turtle.place()
  22. turtle.turnLeft()
  23. turtle.select(1)
  24. x= 1
  25. end
  26. end
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement