You need to create a custom recipe type that overrides IRecipe#getRemainingItems to return a copy of the axe with its durability reduced.
I've got a very similar recipe implementation here, there's code in other parts of the repository to handle things like registration and data generation.
Your post was hidden because you dumped the log directly into it instead of posting it with a paste website as described in the FAQ. In addition to this, you posted in an old, potentially unrelated topic instead of creating a new one.
You posted in an unrelated topic and triggered the anti-spam by posting your log directly, I've split your post into its own topic. Please read the FAQ.
https://github.com/positivevibes123/MinecraftExplosiveMod/blob/3dfabe6cd67213db484737c8cce650583dd894f1/src/main/java/com/gmail/damoruso321/bomb/datacomponents/ModDataComponents.java#L19
This should be DATA_COMPONENT_TYPES.register(eventBus), not eventBus.register(DATA_COMPONENT_TYPES).