How do I edit diamond ore generation in datapacks?

I am making a datapack (1.20.5) that makes diamonds spawn rarer in world generation. There are three diamond ore IDs that I need to configure, I just set 2 of them to not spawn anything and the last one (ore_diamond_small) as actually spawning stuff. I do nothing about editing "noise" because I do not know how it works.

Continue to help post