You have to loop through every biome and remove the feature that is responsible for ore generation. As i said, take a look at the classes i suggested and also take a look at this post, which exactly matches your problem:
https://forums.minecraftforge.net/topic/89281-solved-115x-disable-vanilla-ore-gen-or-change-the-fillerblocktype/?tab=comments#comment-415925