Does anybody know a way to change just the damage of an item without effecting any other components?

I have a resourcce pack that adds different kinds of weapons and such by renaming swords and axes, and I want to be able to change the the damages of certain weapons, but i cannot figure out how. In 1.21.1
Continue to help post