Skip to content
home/templates/custom enchant: lifesteal
cosmeticBeginnermc 1.20.x – 1.21.x17 lines

custom enchant: lifesteal

adds a 'lifesteal' lore-based enchantment. hitting players with the enchanted weapon heals you for 20% of damage dealt.

vanilla Skriptno addons required.
custom-enchants.sk17 lines
command /enchant lifesteal:
    permission: enchant.admin
    trigger:
        if player's tool is air:
            send "&cHold an item to enchant." to player
            stop
        add "&7Lifesteal" to lore of player's tool
        send "&aApplied Lifesteal I to your weapon." to player

on damage:
    if victim is a player:
        if attacker is a player:
            if lore of attacker's tool contains "&7Lifesteal":
                set {_heal} to damage * 0.20
                heal attacker by {_heal}
                send "&c&l-%damage% &7| &a+%{_heal}% &7life" to attacker

get it running

custom-enchants.sk · 17 lines · vanilla Skript
  1. 1

    copy or download

    grab the .sk file with the buttons up top.

    custom-enchants.sk· ready to drop in
  2. 2

    drop it in your scripts folder

    save it exactly here on your server — no typos, just copy the path:

    …/plugins/Skript/scripts/custom-enchants.sk
  3. 3

    reload in-game

    run this in chat or console — your script goes live instantly:

    /sk reload custom-enchants
that's it — your script is live. hop in-game to try it.
/ related templates

more cosmetic templates

comments