Advertisement
Guest User

dig.lua

a guest
Apr 7th, 2020
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. dig = {}
  2.  
  3. function dig.forward()
  4.     if turtle.detect() then
  5.         turtle.dig()
  6.     end
  7. end
  8.  
  9. function dig.up()
  10.     if turtle.detectUp() then
  11.         turtle.digUp()
  12.     end
  13. end
  14.  
  15. function dig.down()
  16.     if turtle.detectDown() then
  17.         turtle.digDown()
  18.     end
  19. end
  20.  
  21. return dig
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement