We investigate the influence of the Abrikosov vortex lattice on the Casimir force in a setup constituted by high-temperature superconductors subject to an external magnetic field. The Abrikosov lattice is a property of type II superconductors in which normal and superconducting carriers coexist and the latter define a periodic pattern with square symmetry. We find that the optical properties determined by spatial redistribution of the superconducting order parameter induce Casimir forces with a periodic structure whose minimal strengths coincide with the vortex cores.