fuel = turtle.getFuelLevel() require(math) for i = 0, math.ceil(fuel/2) do turtle.forward() turtle.dig() turtle.digUp() end