A resource pack for 26.3+ that changes the sprite of your sword based on its knockback level. Doesn't require optifine or other mods.
Netherite Knockback Sword level 1 : Orange Netherite Knockback Sword level 2 : Red Diamond Knockback Sword level 1 : Purple Diamond Knockback Sword level 2 : Dark Blue