#-----------------Autor------------------# #---------------Vixareczeq---------------# #-----------------Skrypt-----------------# #-------------PremiumCase 1.0------------# options: #Item PremiumCase'a: pc-item: trapped chest #Nazwa PremiumCase'a: pc-name: &b&lPremium&9&lCase #Crafting: 1: diamond block 2: gold block 3: diamond block 4: gold block 5: chest 6: gold block 7: diamond block 8: gold block 9: diamond block #Wyglad craftingu: # 1|2|3 # 4|5|6 # 7|8|9 #------------------Komendy-------------------# command /premiumcase [] [] []: trigger: if player has permission "premiumcase.give": if arg-1 is "give": if arg-2 is not set: send "&bPodaj &cIlosc!" else: if arg-3 is not set: send "&bPodaj &cGracza!" else: add %arg-2% of {@pc-item} named "{@pc-name}" to %arg-3% send "&bDodano %arg-2% {@pc-name} graczowi %arg-3%!" if player has permission "premiumcase.give.all": if arg-1 is "all": if arg-2 is not set: send "&bPodaj &cIlosc!" else: if arg-3 is set: send "&bZla komenda! Wpisz &c/premiumcase help &baby otrzymac pomoc!" else: loop all player's: add %arg-2% of {@pc-item} named "{@pc-name}" to loop-player inventory send "&bCaly serwer otrzymal %arg-2% {@pc-nazwa} od %player%!" if player has permission "premiumcase.powiadomienia": if arg-1 is "powiadomienia": if arg-2 is "on": if arg-3 is set: send "&bZla komenda! Wpisz &c/premiumcase help &baby otrzymac pomoc!" to player else: send "&bWlaczyles powiadomienia!" set {pc-powiadomienia::%player%} to true if arg-2 is "off": if arg-3 is set: send "&bZla komenda! Wpisz &c/premiumcase help &baby otrzymac pomoc!" to player else: send "&bWylaczyles powiadomienia!" set {pc-powiadomienia::%player%} to false if player has permission "premiumcase.help": if player has permission "premiumcase.powiadomienia": send "&bDostepne komendy:" to player send "&c/premiumcase powiadomienia on/off &b- Wlacza/Wylacza powiadomienia o premiumcase." if player has permission "premiumcase.give": send "&c/premiumcase give *ilosc* *gracz* &b- Dodaje graczowi premiumcase." if player has permission "premiumcase.give.all": send "&c/premiumcase all *ilosc* dodaje kazdemu premiumcase." stop if player has permission "premiumcase.crafting": if arg-1 is "crafting": if arg-2 is not set: if arg-3 is not set: open chest with 3 rows named "&bCrafting {@pc-name}": format slot 3 to {@1} to be unstalable format slot 4 to {@2} to be unstalable format slot 5 to {@3} to be unstalable format slot 12 to {@4} to be unstalable format slot 13 to {@5} to be unstalable format slot 14 to {@6} to be unstalable format slot 21 to {@7} to be unstalable format slot 22 to {@8} to be unstalable format slot 23 to {@9} to be unstalable format slot 16 to {@pc-item} with name "{@pc-name}" to be unstalable else: send "&bZla komenda! Wpisz &c/premiumcase help &baby otrzymac pomoc!" to player on place: if player's tool is {@pc-item} named "{@pc-name}": cancel event remove 1 {@pc-item} named "{@pc-name}" from player loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&c%player% &7otworzyl {@pc-name} &7i wylosowal&8:" to loop-players chance of 1%: drop 1 diamond sword of sharpness 5 and fire aspect 2 loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&8- &cMiecz 5/2" chance of 25%: drop 1 diamond helmet of protection 4 and unbreaking 3 loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&8- &cHelm 4/3" chance of 25%: drop 1 diamond chestplate of protection 4 and unbreaking 3 loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&8- &cKlate 4/3" chance of 25%: drop 1 diamond leggings of protection 4 and unbreaking 3 loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&8- &cSpodnie 4/3" chance of 25%: drop 1 diamond boots of protection 4 and unbreaking 3 loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&8- &cButy 4/3" chance of 25%: drop 64 block of emerald loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&8- &a64&7x&ablokow emeraldow" chance of 25%: drop 1 diamond pickaxe of efficiency 6 and fortune 3 and unbreaking 3 named "&aKilof szybkosci I" loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&8- &aKilof szybkosci I" chance of 25%: drop 1 cobblestone named "&cCobble&fX" loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&8- &cCobbleX" chance of 25%: drop 1 obsidian named "&9BoyFarmer" loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&8- &cBoyFarmer" chance of 25%: drop 1 sand named "&9SandFarmer" loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&8- &cSandFarmer" chance of 25%: drop 16 ender pearl loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&8- &c16&7x&cPerel" chance of 25%: drop 64 tnt loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&8- &c64&7x&cTnt" chance of 25%: drop 64 block of gold loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&8- &c64&7x&cBlokow zlota" chance of 25%: drop 64 block of diamond loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&8- &c64&7x&cBlokow diamentow" chance of 1%: drop 1 beacon loop all players: if {pc-powiadomienia::%loop-player%} is true: send "&8- &a&lB&b&lE&e&lA&c&lC&9&lO&7&N&5&lA" on script load: register new shaped crafting recipe for {@pc-item} named "{@pc-name}" using {@1}, {@2}, {@3}, {@4}, {@5}, {@6}, {@7}, {@8}, {@9}