How to dynamically change the `damage` component via item modifiers.

Before the update 1.20.5, I was using a copy_nbt item modifier, but it seems that copy_components doesn't allow for me to copy from storage or a scoreboard, so I'm at a bit of a loss on what to do.
Continue to help post