Advertisement
someone3709

mine command

May 22nd, 2022 (edited)
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.54 KB | None | 0 0
  1. function compDig()
  2.     while turtle.compare() do
  3.         turtle.dig()
  4.         turtle.forward()
  5.     end
  6. end
  7. function compLeftDig()
  8.     while turtle.compare() do
  9.         turtle.dig()
  10.         turtle.forward()
  11.         turtle.turnLeft()
  12.     end
  13. end
  14. function compRightDig()
  15.     while turtle.compare() do
  16.         turtle.dig()
  17.         turtle.forward()
  18.         turtle.turnRight()
  19.     end
  20. end
  21. function mineCode()
  22.     turtle.dig()
  23.     turtle.forward()
  24.     compDig()
  25.     compLeftDig()
  26.     turtle.turnRight()  
  27.     compRightDig()
  28. end    
  29.    
  30. mineCode()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement