options: linijki: 1 nazwaPlecakaWGui: &fKowal on damage: victim is zombie: name of zombie is "&2Kowal": player is op: send " " else: cancel event on rightclick on zombie: name of zombie is "&2Kowal": open chest with {@linijki} rows named "{@nazwaPlecakaWGui}" to player wait 1 tick loop {@linijki}*9 times: set slot loop-number - 1 of current inventory of player to {nBackpack::%player%::%loop-number%} format slot 0 of player with 1 of stained glass pane named " " to be unstealable format slot 1 of player with 1 of stained glass pane named " " to be unstealable format slot 2 of player with 1 of stained glass pane named " " to be unstealable format slot 3 of player with 1 of anvil named "&8&lUlepszanie!" with lore " &eSzansa na pierwsze ulepszenie 90%%|| &eSzansa na drugie ulepszenie 50%%|| &eSzansa na trzecie ulepszenie 20%%" to close then run [execute player command "/plus add sharpness 8"] format slot 4 of player with 1 of stained glass pane named " " to be unstealable format slot 5 of player with 1 of torch named "&8&lDalsze poziomy!" with lore "&5Koszt &d50 000!" to close then run [execute player command "/tp %player% 100 100 100"] format slot 6 of player with 1 of stained glass pane named " " to be unstealable format slot 7 of player with 1 of stained glass pane named " " to be unstealable format slot 8 of player with 1 of stained glass pane named " " to be unstealable on inventory close: if inventory name of current inventory of player is "{@nazwaPlecakaWGui}": clear {nBackpack::%player%::*} loop {@linijki}*9 times: set {nBackpack::%player%::%loop-number%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player