# AKCESORIA :D command /akcesoria: trigger: open chest with 1 row named "&4&lAKCESORIA" to player wait 1 tick loop 6 times: set player's current inventory's slot 2+loop-number to 160:15 named " " if {tarcza::%Player%} is not set: set player's current inventory's slot 0 to fire named "&4Brak Tarczy" else: set player's current inventory's slot 0 to {tarcza::%player%} with lore "&4ZALOZONE||||%lore of {tarcza::%player%}%" if {naszyjnik::%Player%} is not set: set player's current inventory's slot 1 to fire named "&4Brak Naszyjnika" else: set player's current inventory's slot 1 to {naszyjnik::%player%} with lore "&4ZALOZONE||||%lore of {naszyjnik::%player%}%" if {bransoleta::%Player%} is not set: set player's current inventory's slot 2 to fire named "&4Brak Naszyjnika" else: set player's current inventory's slot 2 to {bransoleta::%player%} with lore "&4ZALOZONE||||%lore of {bransoleta::%player%}%" on rightclick with item frame: cancel event if {tarcza::%player%} is not set: loop 100 times: if "%uncoloured lore of player's tool%" contains "Wymagany Poziom: %loop-number%": set {_wymaglvl} to loop-number if {lvl::%Player%} is less than {_wymaglvl}: send "&cMasz za niski poziom!" stop set {tarcza::%player%} to player's tool send "&aZalozyles tarcze!" delete player's tool else: send "&cMasz juz zalozna tarcze!" on rightclick with lead: cancel event if {naszyjnik::%player%} is not set: loop 100 times: if "%uncoloured lore of player's tool%" contains "Wymagany Poziom: %loop-number%": set {_wymaglvl} to loop-number if {lvl::%Player%} is less than {_wymaglvl}: send "&cMasz za niski poziom!" stop set {naszyjnik::%player%} to player's tool send "&aZalozyles naszyjnik!" delete player's tool else: send "&cMasz juz zalozna naszyjnik!" on rightclick with minecart: cancel event if {bransoleta::%player%} is not set: loop 100 times: if "%uncoloured lore of player's tool%" contains "Wymagany Poziom: %loop-number%": set {_wymaglvl} to loop-number if {lvl::%Player%} is less than {_wymaglvl}: send "&cMasz za niski poziom!" stop set {bransoleta::%player%} to player's tool send "&aZalozyles bransolete!" delete player's tool else: send "&cMasz juz zalozna bransolete!" on inventory click: if "%inventory name of player's current inventory%" is "&4&lAKCESORIA": cancel event set {_slot} to slot close player's inventory if "%{_slot}%" is "0": give player {tarcza::%player%} delete {tarcza::%player%} if "%{_slot}%" is "1": give player {naszyjnik::%player%} delete {naszyjnik::%player%} if "%{_slot}%" is "2": give player {bransoleta::%player%} delete {bransoleta::%player%} on damage: if {tarcza::%victim%} is set: set {_tarcza.procenty::*} to uncoloured lore of {tarcza::%victim%} split at "||" replace all "Obrona: " with "" in {_tarcza.procenty::3} replace all "Blok Ciosow: " and "%%" with "" in {_tarcza.procenty::4} set {_tarcza.procenty::3} to {_tarcza.procenty::3} parsed as integer set {_tarcza.procenty::4} to {_tarcza.procenty::4} parsed as integer set {_obronka} to damage * {_tarcza.procenty::1} / 1000 set damage to damage - {_obronka} chance of {_tarcza.procenty::4}%: set damage to 1 if {naszyjnik::%attacker%} is set: set {_tarcza.naszyjnik::*} to uncoloured lore of {naszyjnik::%victim%} split at "||" replace all "Atak: " with "" in {_naszyjnik.procenty::3} replace all "Cios Krytyczny: " and "%%" with "" in {_naszyjnik.procenty::4} set {_naszyjnik.procenty::3} to {_naszyjnik.procenty::3} parsed as integer set {_naszyjnik.procenty::4} to {_naszyjnik.procenty::4} parsed as integer set {_dmg} to damage * {_naszyjnik.procenty::1} / 1000 set damage to damage + {_dmg} chance of {_naszyjnik.procenty::4}%: set damage to damage * 2 if {bransoleta::%attacker%} is set: set {_tarcza.bransoleta::*} to uncoloured lore of {bransoleta::%victim%} split at "||" replace all "Obrazenia: +" with "" in {_bransoleta.procenty::3} replace all "Silny Przeciwko Ludziom: " and "%%" with "" in {_bransoleta.procenty::4} set {_bransoleta.procenty::3} to {_bransoleta.procenty::3} parsed as integer set {_bransoleta.procenty::4} to {_bransoleta.procenty::4} parsed as integer set damage to damage + {_bransoleta.procenty::3} victim is player: set {_additional} to damage * {_bransoleta.procenty::2} / 1000 set damage to damage + {_additional} command /akcesoriaAdmin: permission: hyper2 trigger: add item frame named "&8&lTarcza Ahilesa" with lore "&3&oPoziom: &3&lNIESAMOWITY|| ||&4Obrona:&6 100||&4Blok Ciosow:&6 100%%||&2Wymagany Poziom:&6 1" to player add lead named "&8&lNaszyjnik Leigong" with lore "&3&oPoziom: &3&lNIESAMOWITY|| ||&4Atak:&6 1000||&4Cios Krytyczny:&6 100%%||&2Wymagany Poziom:&6 1" to player add minecart named "&8&lBransoleta Angrybody" with lore "&3&oPoziom: &3&lNIESAMOWITY|| ||&4Obrazenia:&6 +1000||&4Silny Przeciwko Ludziom:&6 100%%||&2Wymagany Poziom:&6 1" to player