This mod makes sure all ore patches stay full forever. Works in both vanilla and modded. Includes support for things like ore patches.
Please see github.com/CJ5-Z/CJsInfiniteOres for all related info and code, and bring up any issues you have there!