I gave myself a wooden pickaxe that could break diamond ores with the following command:
/give FrakCK210 minecraft:wooden_pickaxe 1 0 {CanDestroy:["minecraft:diamond_ore"]}
I tried using it to mine a diamond ore but the diamond ore dropped nothing. Not even a single diamond.
Then I tried giving myself a deadbush that could be placed on sandstone with the following command:
/give FrakCK210 minecraft:deadbush 1 0 {CanPlaceOn:["minecraft:sandstone"]}
I tried placing the deadbush on sandstone but I couldn't place it.
Diamond Ore can only be obtained by destroying it with an iron or diamond pickaxe. Dead bushes can only be placed on sand, red sand, podzol, and hardened clay.