Advertisement
LDDestroier

Dig a hole down

Dec 16th, 2014
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. rednet.open("right")
  2. width = 4
  3. depth = 5
  4. while true do
  5. turtle.digDown()
  6. for a = 0, width, 1 do
  7. for b = 0, width, 1 do
  8. turtle.forward()
  9. turtle.digDown()
  10. end
  11. if a % 2 == 0 then
  12. turtle.turnRight()
  13. turtle.forward()
  14. turtle.turnRight()
  15. else
  16. turtle.turnLeft()
  17. turtle.forward()
  18. turtle.turnLeft()
  19. end
  20. turtle.digDown()
  21. end
  22. turtle.down()
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement