Well, first you'll need to spend a decade or two studying magic, then you'll need to learn weaponsmithing, and then you'll need to work out the specific magical formula and what magical reagents will be required...
But, seriously, afaik on D&DB there's no way to automatically have healing applied to HP, so if you're looking to heal a flat amount just list the number, or if you're rolling just set up the additional dice.
So i want to make a sword that when it attacks an enemy and heals the user is there a way to do that
Well, first you'll need to spend a decade or two studying magic, then you'll need to learn weaponsmithing, and then you'll need to work out the specific magical formula and what magical reagents will be required...
But, seriously, afaik on D&DB there's no way to automatically have healing applied to HP, so if you're looking to heal a flat amount just list the number, or if you're rolling just set up the additional dice.
No, there is no way for the healing to automatically get applied.
Creating Epic Boons on DDB
DDB Buyers' Guide
Hardcovers, DDB & You
Content Troubleshooting