# ARG-1 = GIVE, ALL # ARG-2 = ILOSC # ARG-3 = GRACZ command /pcase [] [] []: permission: * permission message: &8&l»&r &cNie masz dostepu do tej komendy! trigger: if arg-1 is "give": if arg-2 is set: if arg-3 is set: send " &2&lCASE &8&l»&r &7Otrzymales &9&lx%arg-2% PremiumCase &r&7!" to arg-3 send " &2&lCASE &8&l»&r &7Dales graczowi &c%player% &6x%arg-2% &9&lPremiumCase" to player give arg-3 arg-2 of trapped chest named "&9&lPremiumCase" with lore "&8&m&l--------------------------------------&r|| &8» &7&oAby otworzyc ta skrzynie nie potrzebujesz klucz!|| &8» &7&oDrop ze skrzyni jest losowy! Moze byc &adobry &7lub &cslaby &7!||&8&m&l--------------------------------------&r" else: send " &2&lCASE &8&l»&r &cMusisz podac nazwe gracza!" to player else: send " &2&lCASE &8&l»&r &cMusisz podac ilosc premiumcase otrzymanych przez gracza!" to player if arg-1 is "all": if arg-2 is set: if arg-3 is not set: loop all players: give loop-player arg-2 of trapped chest named "&9&lPremiumCase" with lore "&8&m&l--------------------------------------&r|| &8» &7&oAby otworzyc ta skrzynie nie potrzebujesz klucz!|| &8» &7&oDrop ze skrzyni jest losowy! Moze byc &adobry &7lub &cslaby &7!||&8&m&l--------------------------------------&r" send "" to loop-player send " &2&lCASE &8&l»&r &eKazdy gracz na serwerze otrzymal &6x%arg-2% &9&lPremiumCase&r &e!" to loop-player send "" to loop-player else: send " &2&lCASE &8&l»&r &cTe pole musi byc puste!" to player else: send " &2&lCASE &8&l»&r &cMusisz podac ilosc premiumcase otrzymanych przez graczy!" to player if arg-1 is not "give" or "all": send "" send " &2&lCASE &8&l»&r &aPoprawne Uzycie: &e/pcase [give/all] [ilosc] [gracz]" send "" stop if arg-1 is not set: send "" send " &2&lCASE &8&l»&r &aPoprawne Uzycie: &e/pcase [give/all] [ilosc] [gracz]" send "" stop on place of trapped chest: if player's tool is 146 named "&9&lPremiumCase" with lore "&8&m&l--------------------------------------&r|| &8» &7&oAby otworzyc ta skrzynie nie potrzebujesz klucz!|| &8» &7&oDrop ze skrzyni jest losowy! Moze byc &adobry &7lub &cslaby &7!||&8&m&l--------------------------------------&r": cancel event remove trapped chest from player chance of 30%: drop 1 311 of protection 2 and unbreaking 2 chance of 30%: drop 1 310 of protection 3 and unbreaking 1 chance of 30%: drop 1 312 of protection 2 and unbreaking 1 chance of 30%: drop 1 313 of protection 2 and unbreaking 1 chance of 20%: drop 1 276 of sharpness 3 and fire aspect 2 chance of 20%: drop 1 261 of power 4 and flame 1 and infinity 1 chance of 20%: drop 1 278 of efficiency 2 and unbreaking 2 and fortune 1 chance of 20%: drop 1 373:8233 chance of 20%: drop 1 373:8226 chance of 5%: drop 1 278 of efficiency 3 and unbreaking 3 and fortune 2 broadcast " &2&lCASE &8&l»&r &eGracz &6%player% &eotworzyl &9&lPremiumCase&r &ei otrzymal &6&lKilof 3/3/2&r &e!" chance of 10%: drop 8 emerald block chance of 10%: drop 4 emerald block chance of 10%: drop 4 diamond block chance of 10%: drop 8 gold block chance of 20%: drop 1 enchanted golden apple chance of 10%: drop 3 enchanted golden apple chance of 1%: drop 1 beacon broadcast " &2&lCASE &8&l»&r &eGracz &6%player% &eotworzyl &9&lPremiumCase&r &ei otrzymal &6&lBEACONA&r &e!" chance of 20%: drop 4 tnt chance of 20%: drop 2 ender pearl # ARG-1 = GIVE, ALL # ARG-2 = ILOSC # ARG-3 = GRACZ command /pandora [] [] []: permission: * permission message: &8&l»&r &cNie masz dostepu do tej komendy! trigger: if arg-1 is "give": if arg-2 is set: if arg-3 is set: send " &2&lPANDORA &8&l»&r &7Otrzymales &9&lx%arg-2% Pandorek &r&7!" to arg-3 send " &2&lPANDORA &8&l»&r &7Dales graczowi &c%player% &6x%arg-2% &9&lPandorek" to player give arg-3 arg-2 of 122 named "&9&lMagiczna Pandora" with lore "&8&m&l--------------------------------------&r|| &8» &7&oAby otworzyc ta pandore poloz ja na ziemi!|| &8» &7&oDrop z pandory jest losowy! Moze byc &adobry &7lub &cslaby &7!||&8&m&l--------------------------------------&r" else: send " &2&lPANDORA &8&l»&r &cMusisz podac nazwe gracza!" to player else: send " &2&lPANDORA &8&l»&r &cMusisz podac ilosc premiumcase otrzymanych przez gracza!" to player if arg-1 is "all": if arg-2 is set: if arg-3 is not set: loop all players: give loop-player arg-2 of 122 named "&9&lMagiczna Pandora" with lore "&8&m&l--------------------------------------&r|| &8» &7&oAby otworzyc ta pandore poloz ja na ziemi!|| &8» &7&oDrop z pandory jest losowy! Moze byc &adobry &7lub &cslaby &7!||&8&m&l--------------------------------------&r" send "" to loop-player send " &2&lPANDORA &8&l»&r &eKazdy gracz na serwerze otrzymal &6x%arg-2% &9&lPandorek&r &e!" to loop-player send "" to loop-player exit loop stop else: send " &2&lPANDORA &8&l»&r &cTe pole musi byc puste!" to player else: send " &2&lPANDORA &8&l»&r &cMusisz podac ilosc pandor otrzymanych przez graczy!" to player if arg-1 is not "give" or "all": send "" send " &2&lPANDORA &8&l»&r &aPoprawne Uzycie: &e/pandora [give/all] [ilosc] [gracz]" send "" stop if arg-1 is not set: send "" send " &2&lPANDORA &8&l»&r &aPoprawne Uzycie: &e/pandora [give/all] [ilosc] [gracz]" send "" stop on place: if player's tool is 122 named "&9&lMagiczna Pandora" with lore "&8&m&l--------------------------------------&r|| &8» &7&oAby otworzyc ta pandore poloz ja na ziemi!|| &8» &7&oDrop z pandory jest losowy! Moze byc &adobry &7lub &cslaby &7!||&8&m&l--------------------------------------&r": cancel event remove dragon egg from player chance of 30%: drop 1 311 of protection 3 and unbreaking 2 chance of 30%: drop 1 310 of protection 4 and unbreaking 3 chance of 30%: drop 1 312 of protection 3 and unbreaking 2 chance of 30%: drop 1 313 of protection 3 and unbreaking 2 chance of 20%: drop 1 276 of sharpness 3 and fire aspect 3 chance of 20%: drop 1 261 of power 4 and flame 2 and infinity 1 chance of 20%: drop 1 278 of efficiency 4 and unbreaking 2 and fortune 2 chance of 20%: drop 1 373:8233 chance of 20%: drop 1 373:8226 chance of 5%: drop 1 278 of efficiency 5 and unbreaking 5 and fortune 4 broadcast " &2&lPANDORA &8&l»&r &eGracz &6%player% &eotworzyl &9&lMagiczna Pandore&r &ei otrzymal &6&lKILOF 5/5/4&r &e!" chance of 40%: drop 16 emerald block chance of 20%: drop 8 emerald block chance of 70%: drop 8 diamond block chance of 10%: drop 32 gold block chance of 20%: drop 2 enchanted golden apple chance of 10%: drop 3 enchanted golden apple chance of 1%: drop 1 beacon broadcast " &2&lPANDORA &8&l»&r &eGracz &6%player% &eotworzyl &9&lMagiczna Pandore&r &ei otrzymal &6&lBEACONA&r &e!" chance of 20%: drop 32 tnt chance of 20%: drop 3 ender pearl