Advertisement
Guest User

Untitled

a guest
Aug 25th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. function line(l)
  2. for i=1,l,1 do
  3.  
  4. turtle.dig()
  5. turtle.digDown()
  6. turtle.forward()
  7. end
  8. end
  9.  
  10. function move(d)
  11.  
  12. for i=1,d,1 do
  13.  
  14. turtle.forward()
  15. end
  16. end
  17.  
  18. function turn()
  19. turtle.turnLeft()
  20. turtle.turnLeft()
  21. end
  22.  
  23. line(4) --T
  24. turtle.turnRight()
  25. line(10)
  26. turn()
  27. move(10)
  28. turtle.turnRight()
  29. line(4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement