### anulowanie dmg
on item damage:
cancel event
###
on load:
set {item::patyk} to stick with all flags hidden named "&2Poczatkujacy Kij" with lore "&7Ten kij wydaje się być zwykłym" and "&7patykiem na pierwszy rzut oka" and "&7ale jego potencjał jest ogromny." and "" and "&0&l- &7Wartosc: &f&lPOSPOLITA" and "&0&l- &7Srednie obrazenia: &l&f3"
set {item::klata1} to leather chestplate with all flags hidden named "&2Poczatkujacy Napiersnik" with lore "&7Ta peleryna jest nie tylko źródłem ciepła w lodowych krainach" and "&7czy ochroną przed deszczem w burzliwych górach," and "&7ale także symbolem wytrwałości i odwagi." and "" and "&0&l- &7Wartosc: &f&lPOSPOLITA" and "&0&l- &7Pancerz: &f&l2" and "&0&l- &7Dodatkowe Zycie: &a&l2"
command /itemki:
trigger:
loop {item::*}:
give player loop-value
on damage:
if attacker's tool is {item::patyk}:
add 3 to the damage
on player armor change:
if new armor item is {item::klata1}:
add 2 to the player's max health
if old armor item is {item::klata1}:
remove 2 from the player's max health
that's the script im using rn