variables: {RandomSet.%player%} = 1 command /Skrzynka : permission: skrzynki.wiewi permission message: &2Nie masz uprawnień! trigger: give a chest named "&f&k;&6&l&k;&f&k; &c&l&o Premium Case &f&k;&6&l&k;&f&k;" to the player on rightclick: player is holding a chest named "&f&k;&6&l&k;&f&k; &c&l&o Premium Case &f&k;&6&l&k;&f&k;": clear {RandomSet.%player%} remove 1 chest named "&f&k;&6&l&k;&f&k; &c&l&o Premium Case &f&k;&6&l&k;&f&k;" from player wait a tick set {RandomSet.%player%} to a random integer from 1 to 12 if {RandomSet.%player%} is 1: give a chest named "&c&lnic :(" to the player if {RandomSet.%player%} is 2: give a 276 of sharpness 6 and fire aspect 5 named "&9&l MIECZYK" to the player if {RandomSet.%player%} is 3: give a 310 of unbreaking 5 and protection 5 named "&9&l HEŁM" to the player if {RandomSet.%player%} is 4: give a 311 of unbreaking 5 and protection 5 named "&9&l KLATA" to the player if {RandomSet.%player%} is 5: give a 312 of unbreaking 5 and protection 5 named "&9&l SPODNIE" to the player if {RandomSet.%player%} is 6: give a 313 of unbreaking 5 and protection 5 named "&9&l BUTKI" to the player if {RandomSet.%player%} is 7: give a 278 of efficiency 6 and fortune 5 named "&9&l KILOF" to the player if {RandomSet.%player%} is 8: give a 311 of unbreaking 5 and protection 5 named "&9&l KLATA" to the player if {RandomSet.%player%} is 9: give a 312 of unbreaking 5 and protection 5 named "&9&l SPODNIE" to the player if {RandomSet.%player%} is 10: give a 313 of unbreaking 5 and protection 5 named "&9&l BUTKI" to the player if {RandomSet.%player%} is 11: give a 276 of sharpness 6 and fireaspect 5 named "&4&lMIECZYK" to the player if {RandomSet.%player%} is 12: give a 322 named "&6&l REF" to the player