I would write a script that makes the turtle gather and use the lava itself. placeDown() should fill the bucket, then do a refuel (not sure what the function call is for that), go forward 1, repeat for X iterations. Then turn right, go forward 1, turn right, and repeat the initial loop the same...