Advertisement
Guest User

Untitled

a guest
Jan 27th, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. local function farmSquare(w, l)
  2. local turnLeft = false
  3. local slot = 1
  4.  
  5. turtle.select(slot)
  6.  
  7. for x = 1, w do
  8. for y = 1, l do
  9. if (x*y) % 64 == 0 then
  10. slot = slot + 1
  11. turtle.select(slot)
  12. end
  13.  
  14. turtle.digDown()
  15. turtle.placeDown()
  16. turtle.forward()
  17. end
  18.  
  19. if turnLeft then
  20. turtle.turnLeft()
  21. turnLeft = false
  22. else
  23. turtle.turnRight()
  24. turnLeft = true
  25. end
  26. end
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement