How would I go about changing the function of arrows to shoot straighter, in a 1.21.4 datapack?

Im using a resourcepack to change the appearance and recipe of the bow and crossbow into muskets, but to really sell this immersion I've been wondering how I could have all arrows shoot straight or at least with faster speed and an long range arc, and perhaps more bow and crossbow damage and charge time?

Continue to help post