AJIMA3 You can achieve that with setting up cancel_drop: true
Using events.block_break.drop_item
you can set up custom drop and whitelist for that event only PICKAXES or tools you want
Here you have example file of how to do it, you have all the wiki links you need for that.
info:
namespace: myblocks
items:
myblock:
display_name: My Block
resource:
generate: true
material: PAPER
textures:
- "myblock/myblock01"
specific_properties:
block:
cancel_drop: true
placed_model:
type: REAL_NOTE
break_particles: ITEM
events_tools_whitelist:
- PICKAXE
events:
block_break:
drop_item:
item: minerals:mymineral
min_amount: 1
max_amount: 5
chance: 100