Enchantment for get more level when you break an stone
"How can I make a custom enchantment that gives me more XP whenever I break a specific block? For example, if I break stone and the enchantment is at level 1, it should give 20 XP — and the higher the level, the more XP it gives. But I don’t know how to make it so that when a block is broken with a pickaxe that has this enchantment, a function is triggered immediately to give the player the XP