options: #Jaki item ma byc waluta? vault: emerald block #co ma pisac w lore itemow w sklepie? # domyslnie jest np "256 blokow emeraldow" vault2: blokow emeraldow # -=================- # KUPNO ITEMOW OPCJE # -=================- #Koszt/Cena Voucherow na nick: # Nie dopisujemy "blokow emeraldow" ani "emerald block" cenavoucher: 576 #Reszta itemow: # cenapiro to jest cena malego zestawu piromana! cenabeacon: 256 cenatnt: 128 cenarzucak: 256 cenapiro: 576 cenarefy: 64 cenakoxy: 64 cena43: 256 #Cena 43 to cena calego setu 4/3 #Kilofy: cena633: 576 cenaX33: 896 # -=================- # SPRZEDAZ ITEMOW OPCJE # -=================- # To jest ilosc valuty jakiej dostaniemy po sprzedaniu itemu #Zasada sprzedaj+item (Nie zmieniaj niczego oprocz cyfer) # sprzedajset43 to jest Sprzedaz calego setu 4/3 sprzedajbeacon: 128 sprzedajtnt: 64 sprzedajkoxy: 32 sprzedajrefy: 32 sprzedajbruk: 5 sprzedajset43: 128 # -=================- # SPRZEDAJ/KUP GUI # -=================- command /sklep []: permission: nextus.sklep permission message: &cNie masz permisji! trigger: if arg 1 is not set: open chest with 1 rows named "&6&lSklep" to player wait 1 tick format slot 0 of player with 1 of wool:5 named "&a&lKup przedmioty" with lore "||&r&1&lK&2&lo&3&ll&4&lo&5&lr&6&lo&7&lw&8&le &6nicki || &bItemy || &6Ultra Kilofy! " to close then run "sklepkup %player%" format slot 1 of player with 1 of wool:14 named "&c&lSprzedaj przedmioty" with lore "||&r&aGlowki graczy || &bItemy || &6Surowce " to close then run "sklepsprzedaj %player%" # -=================- # GUI SPRZEDAWANIE # -=================- command /sklepsprzedaj []: permission: nextus.sklep permission message: &cNie masz permisji! trigger: wait 2 tick if arg 1 is set: open chest with 3 rows named "&6&lSklep &c&l'Sprzedaj'" to arg-player wait 2 tick format slot 0 of arg-player with 1 of beacon named "&1&lB&2&le&3&la&4&lc&5&lo&6&ln" with lore "&e&m->&r&cSprzedaj za:&a {@sprzedajbeacon} {@vault2}" to run "nsprzedaj beacon %arg-player%" format slot 1 of arg-player with 64 of tnt named "&4&l64x TNT" with lore "&e&m->&r&cSprzedaj za:&a {@sprzedajtnt} {@vault2}" to run "nsprzedaj 64tnt %arg-player%" format slot 2 of arg-player with 5 of enchanted golden apple named "&6&lKoxy" with lore "&e&m->&r&cSprzedaj za:&a {@sprzedajkoxy} {@vault2}" to run "nsprzedaj koxy %arg-player%" format slot 3 of arg-player with 32 of golden apple:0 named "&6&lRefy" with lore "&e&m->&r&cSprzedaj za:&a {@sprzedajrefy} {@vault2}" to run "nsprzedaj refy %arg-player%" format slot 4 of arg-player with 64 of cobblestone named "&7&lBruk" with lore "&e&m->&r&cSprzedaj za:&a {@sprzedajbruk} {@vault2}" to run "nsprzedaj bruk %arg-player%" format slot 5 of arg-player with 1 of diamond helmet of protection 4 and unbreaking 3 named "&r&k:&c&l&k:&r&k: &c&lCaly Set 4/3 &r&k:&c&l&k:&r&k:" with lore "&e&m->&r&cSprzedaj za:&a {@sprzedajset43} {@vault2}" to run "nsprzedaj set43 %arg-player%" # -==============- # GUI KUPOWANIE # -==============- command /sklepkup []: permission: nextus.sklep permission message: &cNie masz permisji! trigger: wait 2 tick if arg 1 is set: open chest with 3 rows named "&6&lSklep &a&l'Kup'" to arg-player wait 2 tick format slot 0 of arg-player with 1 of beacon named "&1&lB&2&le&3&la&4&lc&5&lo&6&ln" with lore "&e&m->&r&cKoszt:&a {@cenabeacon} {@vault2}" to close then run "nkup beacon %arg-player%" format slot 1 of arg-player with 1 of dye:9 named "&dRozowy &6nick!" with lore "&e&m->&r&cKoszt:&a {@cenavoucher} {@vault2}" to close then run "nkup nickpink %arg-player%" format slot 2 of arg-player with 1 of dye:11 named "&6Zloty &6nick!" with lore "&e&m->&r&cKoszt:&a {@cenavoucher} {@vault2}" to close then run "nkup nickgold %arg-player%" format slot 3 of arg-player with 1 of dye:4 named "&1Niebieski &6nick!" with lore "&e&m->&r&cKoszt:&a {@cenavoucher} {@vault2}" to close then run "nkup nickblue %arg-player%" format slot 4 of arg-player with 64 of tnt named "&4&l64x TNT" with lore "&e&m->&r&cKoszt:&a {@cenatnt} {@vault2}" to close then run "nkup 64tnt %arg-player%" format slot 5 of arg-player with 1 of tnt of unbreaking 1 named "&4&lRzucane TNT" with lore "&e&m->&r&cKoszt:&a {@cenarzucak} {@vault2}" to close then run "nkup rzucak %arg-player%" format slot 6 of arg-player with 1 of tnt minecart named "&r&k:&c&l&k:&r&k: &r&c&lZESTAW MALEGO PIROMANA &r&k:&c&l&k:&r&k" with lore "&f&o&lZestaw obejmuje nastepujace przedmioty || &7Wagony TNT (x10)||&7Tory Aktywacyjne (x32)||&7Dispensery (x20)||&7Przekazniki (x16)||&7Redstone (x64)||&7Tory (x64)||&7TNT (x128)||&c&lWYMAGA 17 WOLNYCH SLOTOW W EQ ||&e&m->&r&cKoszt:&a {@cenapiro} {@vault2}" to close then run "nkup piroman %arg-player%" format slot 7 of arg-player with 32 of golden apple:0 named "&6&l32 Refile" with lore "&e&m->&r&cKoszt:&a {@cenarefy} {@vault2}" to close then run "nkup refy %arg-player%" format slot 8 of arg-player with 5 of golden apple:1 named "&f&k::&r&6&l 5 Koxow &r&f&k::" with lore "&e&m->&r&cKoszt:&a 64 {@vault2}" to close then run "nkup koxy %arg-player%" format slot 9 of arg-player with 1 of diamond pickaxe of efficiency 6 named "&l&6Kilof 6/3/3" with lore "&r&7Fortune III||&r&7Unbreaking III||&e&m->&r&cKoszt:&a {@cena633} {@vault2}" to close then run "nkup 633 %arg-player%" format slot 10 of arg-player with 1 of diamond pickaxe of efficiency 10 named "&l&6Kilof 10/3/3" with lore "&r&7Fortune III||&r&7Unbreaking III||&e&m->&r&cKoszt:&a {@cenaX33} {@vault2}" to close then run "nkup X33 %arg-player%" format slot 11 of arg-player with 1 of diamond helmet of protection 4 and unbreaking 3 named "&r&k:&c&l&k:&r&k: &c&lCaly Set 4/3 &r&k:&c&l&k:&r&k:" with lore "&e&m->&r&cKoszt:&a {@cena43} {@vault2}" to close then run "nkup 43 %arg-player%" # -===========- # Sprzedawanie itemow # -=============- command /nsprzedaj [] []: permission: nextus.sklep trigger: if arg 1 is "beacon": if arg-player have 1 of beacon: remove 1 of beacon from arg-player give {@sprzedajbeacon} of {@vault} to player-arg send "&a&lSprzedano pomyslnie" to player-arg else: send "&cNie masz 1 beacona!" to arg-player if arg 1 is "64tnt": if arg-player have 64 of tnt: remove 64 of tnt from arg-player give {@sprzedajtnt} of {@vault} to player-arg send "&a&lSprzedano pomyslnie" to player-arg else: send "&cNie masz 64x TNT!" to arg-player if arg 1 is "koxy": if arg-player have 5 of enchanted golden apple: remove 5 of enchanted golden apple from arg-player give {@sprzedajkoxy} of {@vault} to player-arg send "&a&lSprzedano pomyslnie" to player-arg else: send "&cNie masz 5 koxow!" to arg-player if arg 1 is "refy": if arg-player have 32 of golden apple:0: remove 32 of golden apple:0 from arg-player give {@sprzedajrefy} of {@vault} to player-arg send "&a&lSprzedano pomyslnie" to player-arg else: send "&cNie masz 32 refow!" to arg-player if arg 1 is "bruk": if arg-player have 64 of cobblestone: remove 64 of cobblestone from arg-player give {@sprzedajbruk} of {@vault} to player-arg send "&a&lSprzedano pomyslnie" to player-arg else: send "&cNie masz 64 cobblestona!" to arg-player if arg 1 is "set43": if arg-player have 1 of diamond helmet of protection 4 and unbreaking 3: if arg-player have 1 of diamond chestplate of protection 4 and unbreaking 3: if arg-player have 1 of diamond leggings of protection 4 and unbreaking 3: if arg-player have 1 of diamond boots of protection 4 and unbreaking 3: remove 1 of diamond helmet of protection 4 and unbreaking 3 from arg-player remove 1 of diamond chestplate of protection 4 and unbreaking 3 from arg-player remove 1 of diamond leggings of protection 4 and unbreaking 3 from arg-player remove 1 of diamond boots of protection 4 and unbreaking 3 from arg-player give {@sprzedajset43} of {@vault} to player-arg send "&a&lSprzedano pomyslnie" to player-arg else: send "&cNie masz butow" to arg-player stop else: send "&cNie masz spodni" to arg-player stop else: send "&cNie masz Klaty" to arg-player stop else: send "&cNie masz Helmu!" to arg-player stop # -=============- # KUPOWANIE ITEMOW # -============- command /nkup [] []: permission: nextus.sklep trigger: wait 1 tick if arg 1 is "beacon": if arg-player have {@cenabeacon} {@vault}: remove {@cenabeacon} {@vault} from arg-player give 1 of beacon named "&1&lB&2&le&3&la&4&lc&5&lo&6&ln" with lore "&cZakupiony przez &a%player-arg%" to player-arg send "&a&lZakupiono pomyslnie" to player-arg else: send "&cNie masz {@cenabeacon} {@vault2}!" to arg-player if arg 1 is "nickpink": if arg-player have {@cenavoucher} {@vault}: remove {@cenavoucher} {@vault} from arg-player give 1 of dye:9 named "&dVoucher na rozowy nick" with lore "&cZakupiony przez &a%player-arg%" to player-arg send "&a&lZakupiono pomyslnie" to player-arg else: send "&cNie masz {@cenavoucher} {@vault2}!" to arg-player if arg 1 is "nickgold": if arg-player have {@cenavoucher} {@vault}: remove {@cenavoucher} {@vault} from arg-player give 1 of dye:11 named "&6Voucher na zloty nick" with lore "&cZakupiony przez &a%player-arg%" to player-arg send "&a&lZakupiono pomyslnie" to player-arg else: send "&cNie masz {@cenavoucher} {@vault2}!" to arg-player if arg 1 is "nickblue": if arg-player have {@cenavoucher} {@vault}: remove {@cenavoucher} {@vault} from arg-player give 1 of dye:4 named "&1Voucher na niebieski nick" with lore "&cZakupiony przez &a%player-arg%" to player-arg send "&a&lZakupiono pomyslnie" to player-arg else: send "&cNie masz {@cenavoucher} {@vault2}!" to arg-player if arg 1 is "64tnt": if arg-player have {@cenatnt} {@vault}: remove {@cenatnt} {@vault} from arg-player give 64 of tnt named "&4&lTNT" with lore "&cZakupione przez &a%player-arg%" to player-arg send "&a&lZakupiono pomyslnie" to player-arg else: send "&cNie masz {@cenatnt} {@vault2}!" to arg-player if arg 1 is "rzucak": if arg-player have {@cenarzucak} {@vault}: remove {@cenarzucak} {@vault} from arg-player give 1 of tnt of unbreaking 1 named "&4&lRzucane TNT" with lore "&cZakupione przez &a%player-arg%" to player-arg send "&a&lZakupiono pomyslnie" to player-arg else: send "&cNie masz {@cenarzucak} {@vault2}!" to arg-player if arg 1 is "refy": if arg-player have {@cenarefy} {@vault}: remove {@cenarefy} {@vault} from arg-player give 32 of golden apple named "&6&lRefy" with lore "&cZakupione przez &a%player-arg%" to player-arg send "&a&lZakupiono pomyslnie" to player-arg else: send "&cNie masz {@cenarefy} {@vault2}!" to arg-player if arg 1 is "koxy": if arg-player have {@cenakoxy} {@vault}: remove {@cenakoxy} {@vault} from arg-player give 5 of golden apple:1 named "&6&lKoxy" with lore "&cZakupione przez &a%player-arg%" to player-arg send "&a&lZakupiono pomyslnie" to player-arg else: send "&cNie masz {@cenakoxy} {@vault2}!" to arg-player if arg 1 is "633": if arg-player have {@cena633} {@vault}: remove {@cena633} {@vault} from arg-player give 1 of diamond pickaxe of efficiency 6 and unbreaking 3 and fortune 3 named "&6&l6/3/3" with lore "&cZakupione przez &a%player-arg%" to player-arg send "&a&lZakupiono pomyslnie" to player-arg else: send "&cNie masz {@cena633} {@vault2}!" to arg-player if arg 1 is "X33": if arg-player have {@cenaX33} {@vault}: remove {@cenaX33} {@vault} from arg-player give 1 of diamond pickaxe of efficiency 10 and unbreaking 3 and fortune 3 named "&6&l10/3/3" with lore "&cZakupione przez &a%player-arg%" to player-arg send "&a&lZakupiono pomyslnie" to player-arg else: send "&cNie masz {@cenaX33} {@vault2}!" to arg-player if arg 1 is "piroman": if arg-player have {@cenapiro} {@vault}: remove {@cenapiro} {@vault} from arg-player give 10 of tnt minecart to player-arg give 32 of activator rail to player-arg give 20 of dispenser to player-arg give 16 of repeater to player-arg give 64 of redstone to player-arg give 64 of rail to player-arg give 128 of tnt to player-arg send "&a&lZakupiono pomyslnie" to player-arg else: send "&cNie masz {@cenapiro} {@vault2}!" to arg-player if arg 1 is "43": if arg-player have {@cena43} {@vault}: remove {@cena43} {@vault} from arg-player give 1 of diamond helmet of protection 4 and unbreaking 3 named "&c&lSet 4/3" with lore "&cZakupione przez &a%player-arg%" to player-arg give 1 of diamond chestplate of protection 4 and unbreaking 3 named "&c&lSet 4/3" with lore "&cZakupione przez &a%player-arg%" to player-arg give 1 of diamond leggings of protection 4 and unbreaking 3 named "&c&lSet 4/3" with lore "&cZakupione przez &a%player-arg%" to player-arg give 1 of diamond boots of protection 4 and unbreaking 3 named "&c&lSet 4/3" with lore "&cZakupione przez &a%player-arg%" to player-arg send "&a&lZakupiono pomyslnie" to player-arg else: send "&cNie masz {@cena43} {@vault2}!" to arg-player # -==================================- # Inne takie jak Vouchery i Rzucaki # -==================================- on right click with dye: if name of player's tool is "&dVoucher na rozowy nick": remove 1 of player's tool from player's inventory set the display name of player to "&d%player%" stop on right click with dye: if name of player's tool is "&6Voucher na zloty nick": remove 1 of player's tool from player's inventory set the display name of player to "&6%player%" stop on right click with dye: if name of player's tool is "&1Voucher na niebieski nick": remove 1 of player's tool from player's inventory set the display name of player to "&1%player%" stop on right click with tnt: if name of player's tool is "&4&lRzucane TNT": remove 1 of player's tool from player's inventory shoot tnt with speed 0.75 on place tnt: if name of player's tool is "&4&lRzucane TNT": cancel event # -================================- # Dawanie sobie voucherow i rzucakow # Tylko dla adminow # -================================- command /ndaj [] []: permission: nextus.admin permission message: &cTa komenda jest tylko dla adminow! trigger: if arg 1 is set: if arg 2 is "bluenick": give 1 dye:4 named "&1Voucher na niebieski nick" to arg-player stop if arg 2 is "pinknick": give 1 dye:9 named "&dVoucher na rozowy nick" to arg-player stop if arg 2 is "goldnick": give 1 dye:11 named "&6Voucher na zloty nick" to arg-player stop if arg 2 is not set: send "&2Prawidlowe uzycie: &6/ndaj [Gracz] [Voucher]" to player send "" to player send "&c&lVouchery:" to player send "&2bluenick &6<- Niebieski Nick" to player send "&2goldnick &6<- Zloty Nick" to player send "&2pinknick &6<- Rozowy Nick" to player send "&2rzucak &6<- Rzucane TNT" to player stop if arg 2 is "rzucak": give 1 of tnt of unbreaking 1 named "&4&lRzucane TNT" to arg-player stop else: send "&2Prawidlowe uzycie: &6/ndaj [Gracz] [Voucher]" to player send "" to player send "&c&lVouchery:" to player send "&2bluenick &6<- Niebieski Nick" to player send "&2goldnick &6<- Zloty Nick" to player send "&2pinknick &6<- Rozowy Nick" to player send "&2rzucak &6<- Rzucane TNT" to player stop