options: tag: &8[&bPremium&3 Case&8] on place: if player's tool is chest: if name of player's tool is "&8[&b&lPremium &3&lCase&8]": cancel event on right click: if player's tool is chest: if name of player's tool is "&8[&b&lPremium &3&lCase&8]": broadcast "&8######################################" broadcast "&c%player% &7Otworzyl &9&lPremium Case &7i wydropil:" chance of 20%: drop 64 diamond broadcast "&7- &c64x Diaxy" chance of 20%: drop 1 311 of protection 4 and unbreaking 3 named "&5&lSet 4/3" chance of 20%: drop 1 313 of protection 4 and unbreaking 3 named "&5&lSet 4/3" broadcast "&7- &c1x Klata 10/10" chance of 20%: drop 64 emerald broadcast "&7- &c64x Emeraldy" chance of 20%: drop 1 310 of protection 4 and unbreaking 3 named "&5&lSet 4/3" broadcast "&7- &c1x Helm 4/3" chance of 20%: drop 64 gold ingot broadcast "&7- &c64x Zelazo" chance of 20%: drop 1 312 of protection 4 and unbreaking 3 named "&5&lSet 4/3" broadcast "&7- &c1x Spodnie 4/3" chance of 20%: drop 64 gold ingot broadcast "&7- &c64x Zloto" chance of 20%: drop 1 276 of sharpness 5 and fire aspect 2 named "&5&lMiecz 5/2" broadcast "&7- &c1x Miecz 5/2" chance of 20%: drop 64 TNT broadcast "&7- &c64x TNT" chance of 0%: drop 1 278 of efficiency 7 and unbreaking 5 and fortune 5 named "&5&lKilof 7/5/5" broadcast "&7- &c1x Kilof 7/5/5" broadcast "&8| &cPremiumCase zakupisz na: &b&l http://www.152213.enmc.pl/sklep" broadcast "&8| &cZa &cPSC &7& &cPRZELEW i SMS &7kupisz na: &b&l http://www.152213.enmc.pl/sklep" broadcast "&8######################################" remove 1 chest named "&8[&b&lPremium &3&lCase&8]" from player's inventory command /case [] []: permission: rex.premiumcase trigger: if arg 1 is not set: if arg 2 is not set: send "{@tag} &8/&ecase &8[&eNick&8] [&eIlosc&8]" if arg 1 is set: if arg 2 is set: execute console command "give %arg 1% chest %arg 2% name:&8[&b&lPremium_&3&lCase&8]" send "{@tag} &a&lOtrzymales &b&lPremium &3&lCase &7&lx&c&l%arg 2% &a&l!" to player-arg command /spremium: trigger: open chest with 2 rows named "&8&lDrop z PremiumCase" to player set {_itemcase1} to 64 diamond set {_itemcase2} to 311 named "&5&lSet 4/3" set {_itemcase3} to 64 emerald set {_itemcase4} to 310 named "&5&lSet 4/3" set {_itemcase5} to 64 gold ingot set {_itemcase6} to 312 named "&5&lSet 4/3" set {_itemcase9} to 313 named "&5&lSet 4/3" set {_itemcase7} to 276 named "&5&lMiecz 5/2" set {_itemcase8} to 64 TNT format gui slot 0 of player with {_itemcase1} format gui slot 1 of player with {_itemcase2} format gui slot 2 of player with {_itemcase3} format gui slot 3 of player with {_itemcase4} format gui slot 4 of player with {_itemcase5} format gui slot 5 of player with {_itemcase6} format gui slot 6 of player with {_itemcase7} format gui slot 7 of player with {_itemcase8} format gui slot 7 of player with {_itemcase8} format gui slot 8 of player with {_itemcase9} set slot 17 of player's current inventory to 1 of door named "&c&lPowrot do menu" on inventory click: if inventory name of player's current inventory is "&8&lDrop z PremiumCase": cancel event if clicked slot is 17: close player's inventory wait 1 tick execute player command "/drop"