This new mechanic allows you to create weapons that can steal life to the damaged entities and give it to the player holding them. This is implemented by default with the blood sword. If you want to try this update, you'll need to regenerate your file mechanics.yml and manually add this to an item:
Mechanics:
lifeleech:
amount: 2 # the amount of 1/2 hearts that you'll steal to your opponents