Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cycles = 100
- length = 8
- width = 4
- delay = 500
- for i = 1,16
- do
- turtle.select(i)
- turtle.refuel()
- end
- for i = 1,cycles
- do
- for i = 1,width
- do
- for i = 1,length-1
- do
- turtle.digDown()
- turtle.forward()
- end
- currentRow = i
- if currentRow < width
- then
- turtle.digDown()
- if (currentRow % 2 == 0)
- then
- turtle.turnRight()
- turtle.forward()
- turtle.turnRight()
- else
- turtle.turnLeft()
- turtle.forward()
- turtle.turnLeft()
- end
- end
- end
- if (width % 2 == 0)
- then
- else
- turtle.turnRight()
- turtle.turnRight()
- for i = 1,length
- do
- turtle.forward()
- end
- end
- turtle.turnLeft()
- for i = 1,width
- do
- turtle.forward()
- end
- turtle.turnLeft()
- sleep(delay)
- turtle.dropUp()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement