Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local length = 30
- local rows = 5
- local count = length
- turtle.refuel()
- turtle.digUp()
- turtle.dig()
- turtle.digDown()
- turtle.up() --omhoog
- while rows > 0 do
- print("Starting row")
- count = length
- while count > 0 do
- turtle.digUp()
- turtle.digDown()
- turtle.dig()
- turtle.forward()
- count = count - 1
- end
- print("Turn around 180")
- count = length + 1
- turtle.turnRight()
- turtle.turnRight()
- print("Return to begin.")
- while count > 0 do
- turtle.forward()
- count = count - 1
- end
- print("Move to next Row")
- turtle.turnLeft()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.turnLeft()
- rows = rows - 1
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement