bypassing the method of people dropping a item when they are crafting it

So Im making a datapack about not being able to get the mace directly from crafting, however if the player just drops the crafted item it completely bypasses the whole datapack,so I was wondering if there is a actual way to stop that

Continue to help post