your code looks okay
this will set the max height to 64, im not 100% sure but it can be that this overwrite your TopSolidRangeConfig
if(!(event.getCategory().equals(Biome.Category.NETHER) || !(event.getCategory().equals(Biome.Category.THEEND)))) {
This line is completely wrong, if you want to generate your ore in the overworld,
because here it is checked whether it is not the end or not the nether,
so minecraft will try to generate the ore in all dimensions replace || with && (is not absolutely necessary)
you also need to register your ConfigureFeature
use this to register your ore
private static <FC extends IFeatureConfig> ConfiguredFeature<FC, ?> register(String name, ConfiguredFeature<FC, ?> configuredFeature) {
return Registry.register(WorldGenRegistries.CONFIGURED_FEATURE, new ResourceLocation(MOD_ID, name), configuredFeature);
}
-> Edit: fix the two errors I have described above and register your feature, this should fix your problem