Copy over the implementation from the sample caves in CustomOreGen.