Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function farmSquare(w, l)
- local turnLeft = false
- local slot = 1
- turtle.select(slot)
- for x = 1, w do
- for y = 1, l do
- if (x*y) % 64 == 0 then
- slot = slot + 1
- turtle.select(slot)
- end
- turtle.digDown()
- turtle.placeDown()
- turtle.forward()
- end
- if turnLeft then
- turtle.turnLeft()
- turnLeft = false
- else
- turtle.turnRight()
- turnLeft = true
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement