on rightclick with chest: if name of player's tool is "&e&lSkrzynia Wladcy Zombie": set {_random} to random integer between 1 and 5 if {_random} is 1: give diamond helmet of protection 2 and unbreaking 1 named "&7&lZardzewialy Helm Wladcy Zombie" to player remove chest named "&e&lSkrzynka Wladcy Zombie" from player's inventory if {_random} is 2: give chest named "&3&lSkrzynia z Akcesoriami &e&l[1-10]" to player broadcast "&E&LDROP 1-10 &8» &aGracz &2%player% &aznalazl &3&lSkrzynia z Akcesoriami &e&l[1-10]!" remove chest named "&e&lSkrzynka Wladcy Zombie" from player's inventory if {_random} is 3: send "&E&LDROP &8» &7Ta skrzynka okazala sie byc pusta...!" to player remove chest named "&e&lSkrzynka Wladcy Zombie" from player's inventory if {_random} is 4: give diamond chestplate of protection 3 and unbreaking 1 named "&7&lStara Klata Wladcy Zombie" to player remove chest named "&e&lSkrzynka Wladcy Zombie" from player's inventory if {_random} is 5: give diamond sword of sharpness 8 and smite 2 and unbreaking 2 named "&6&lLegendarny Miecz Wladcy Zombie" to player remove chest named "&e&lSkrzynka Wladcy Zombie" from player's inventory