Advertisement
Guest User

mining.lua

a guest
Apr 25th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. local x =40
  2.  
  3. shell.run("tunnel "..x)
  4. turtle.turnLeft()
  5. turtle.turnLeft()
  6.  
  7. local p=0
  8.  
  9. for i=2, x do
  10.     turtle.forward()
  11.     if p == 5 then
  12.         turtle.turnLeft()
  13.         turtle.select(2)
  14.         turtle.place()
  15.         turtle.turnRight()
  16.         p=0
  17.     end
  18.     p=p+1
  19. end
  20. turtle.turnLeft()
  21. turtle.turnLeft()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement