Minecraft - commands?

Th
2

How do I make a command that can only remove certain blocks?
For example a stone pickaxe with 4 durability and it can only mine id: 98?

I don't find that in the MC generators.

Be

I don't know which block has which id, but with this command you can enter the destructible blocks

/ give @s minecraft: stone_pickaxe {CanDestroy: ["minecraft: stone"]} 1

With this generator it is very easy https://mcstacker.net/

Th

Thank you, I just found the topic under mine, it is there too.