Guest User

1x3 Mining Turtle Code - Test

a guest
Mar 21st, 2013
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. length = 1
  2.  
  3. i=1,length,1 do
  4. if turtle.detect() then
  5. turtle.dig() end
  6. if turtle.detectUp() then
  7.  turtle.digUp()
  8.  
  9. end
  10.  
  11. if turtle.detectDown() then
  12.  turtle.digDown()
  13.  
  14. end
  15.  
  16. turtle.forward
  17.  
  18. end
  19.  
  20. function check()
  21.  if turtle.getItemCount(16) = 0 then
  22.   turtle.dig()
  23.   turtle.place(1)
  24.   turtle.drop()
  25. end
Advertisement
Add Comment
Please, Sign In to add comment