This mod creates limited amounts of infinite ores.

It doesn't replace all ores but gives each ore field (by default) a 1/5 chance to become an infinite ore field. Even then, only when an ore patch is depleted, the infinite ore becomes minable.

It should work with all ores that aren't infinite, including any modded ores.