Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- args = {...}
- loops = args[1]
- delay = args[2]
- turtle.select(1)
- function main(loops, delay)
- for j = 1,loops do
- for i = 1,4 do
- turtle.strip()
- turnEnd("R")
- turtle.strip()
- turnEnd("L")
- end
- strip()
- turtle.turnLeft()
- for i = 1,8 do
- turtle.forward()
- end
- turtle.turnLeft()
- for i = 1,8 do
- turtle.forward()
- end
- turtle.turnLeft()
- turtle.turnLeft()
- sleep(delay)
- end
- end
- function turnEnd(direction)
- if direction == "R" then
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- elseif direction == "L" then
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- end
- function strip()
- turtle.placeDown()
- for i = 1,8 do
- turtle.forward()
- turtle.placeDown()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement