on rightclick: player is holding a ender chest named "&6&lMistyczna Skrzynia": clear {RandomSet.%player%} remove 1 ender chest named "&6&lMistyczna Skrzynia" from player wait a tick set {RandomSet.%player%} to a random integer from 1 to 12 if {RandomSet.%player%} is 1: give a 310 of unbreaking 15 and protection 5 named "&e&lHELM MCDROP" to the player if {RandomSet.%player%} is 2: give a 311 of unbreaking 15 and protection 5 named "&e&lZBROJA MCDROP" to the player if {RandomSet.%player%} is 3: give a 312 of unbreaking 15 and protection 5 named "&e&lSPODNIE MCDROP" to the player if {RandomSet.%player%} is 4: give a 313 of unbreaking 15 and protection 5 named "&e&lBUTY MCDROP" to the player if {RandomSet.%player%} is 5: give a 378 of unbreaking 10 named "&c&lZLOTA MONETA" to the player if {RandomSet.%player%} is 8: give a 130 named "&6&lMistyczna Skrzynia" to the player if {RandomSet.%player%} is 9: give a 276 of sharpness 6 and unbreaking 20 and fireaspect 3 named "&e&lMIECZ MCDROP" to the player if {RandomSet.%player%} is 10: give a 261 of power 6 and unbreaking 20 and flame 3 and infinity 1 named "&e&lLUK MCDROP" to the player if {RandomSet.%player%} is 11: give a 278 of unbreaking 10 and efficiency 6 and fortune 4 named "&e&lKILOF MCDROP" to the player if {RandomSet.%player%} is 12: give a 276 of unbreaking 100 and sharpness 10 and fireaspect 5 named "&e&lWZMOCNIONY MIECZ MCDROP" to the player