I made this skript for a sword enchant, but the chance system is broken.
on damage: attacker is a player victim is a cow set {_chance} to random integer between 1 and 10 if {_chance} = 3: if lore of attacker's tool contains "&7Vampire I": heal attacker by 1 send "&cYou used Vampire I" to attacker