Life Leech Enchantment
This mod adds a unique "Life Leech" enchantment to Minecraft that allows you to recover health from damage dealt to enemies.
Enchantment Features
The Life Leech magical effect activates when dealing damage with any weapon bearing this spell. The percentage of health restored depends on the enchantment level and damage dealt. The module's flexible configuration system provides complete control over the health restoration mechanics.
Configuration Settings
All enchantment parameters can be modified through the configuration file config/lifeleech-common.toml:
[General]
# Base value for calculating restored health
# Allowed Values: DEALT_DAMAGE, PLAYER_MAX_HP, TARGET_MAX_HP
Base = "DEALT_DAMAGE"
# Multiplier for calculating restored health (=Base(%)levelMultiplier)
Multiplier = 20
Flexible Target Filtering
The special file data/lifeleech/tags/entity_types/blacklisted.json allows creating a blacklist of creatures on which the Life Leech effect will not work. This provides the ability to balance gameplay for specific creature types.
Compatibility
The Fabric version requires installation of the additional Forge Config API Port mod for proper configuration system operation.