So I figured out how to do this. I made a 1 x 1 block structure (via structure blocks) with just single diamond ore in it. Then, every time the player mined the ore, it built the structure right where the ore is located and then killed all the normal diamonds in that area (if there are some).