Datapack that allows the mace to only be crafted once
I need help making a datapack that makes the mace a one time craftable item. I considered using an advancement to detect when a player crafts the mace, and then rewarding a function that runs "recipe take @a ..." for the mace but then I realized this will only work for players who are online. Is there any other way to remove/modify the recipe of the mace once this advancement is triggered?