Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("How many rows?")
- write("->")
- rows = tonumber(read())
- max_rows = rows
- function forward()
- while not turtle.forward() do
- turtle.dig()
- sleep(.7)
- end
- turtle.digDown()
- end
- function way()
- for i=1, 3 do
- forward()
- end
- end
- function strip()
- for i=1, 8 do
- forward()
- end
- end
- function stripSide()
- strip()
- turtle.turnLeft()
- turtle.turnLeft()
- strip()
- end
- function stripRow()
- turtle.turnLeft()
- stripSide()
- stripSide()
- turtle.turnRight()
- forward()
- end
- while rows > 0 do
- term.clear()
- term.setCursorPos(1,1)
- print("Strip "..(max_rows-rows).." of "..max_rows.." done.")
- way()
- stripRow()
- rows = rows - 1
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement