variables: {coins.%player%} = 0 command /run [] []: permission: run.command trigger: if arg 1 is set: if arg 2 is set: execute player command "%arg 2%" command /sklep: trigger: open chest with 1 rows named "&aMenu Sklep" to player wait 1 ticks format slot 0 of player with 1 of 35:5 named "&aKupowanie Przedmiotow" to run [make player execute "isklep5"] format slot 1 of player with 1 of 35:14 named "&cSprzedawanie Przedmiotow" to run [make player execute "isklep6"] format slot 8 of player with 1 of 371 named "&aStan Portfela&8:" with lore "&aCoinsy&8: &6%{coins.%player%}%" to run [make player execute "sklep"] command /isklep5: trigger: open chest with 2 rows named "&aKupowanie Przedmiotow" to player wait 1 ticks format slot 17 of player with 1 of 371 named "&aStan Portfela&8:" with lore "&aCoinsy&8: &6%{coins.%player%}%" to run [make player execute "isklep5"] format slot 0 of player with 1 of 276 named "&aEq 4/3" with lore "&aIlosc&8: &6265||&aKoszt&8: &61000 &aCoinsow" to run [make player execute "isklep kupeq"] format slot 1 of player with 1 of 278 named "&aKilof 5/3/3" with lore "&aIlosc&8: &61||&aKoszt&8: &6300 &aCoinsow" to run [make player execute "isklep kupkilof"] format slot 2 of player with 1 of 49 named "&aObsydian" with lore "&aIlosc&8: &6265||&aKoszt&8: &6700 &aCoinsow" to run [make player execute "isklep kupobs"] command /isklep []: trigger: if arg-1 is "kupobs": if {coins.%player%} is less than 700: send "&cBLAD: &4nie posiadasz wystarczajaco coinsow !!" to player stop else: give 256 49 to player remove 700 from {coins.%player%} send "&aPomyslnie zakupiono 256 Obsydianu" to player stop if arg-1 is "kupeq": if {coins.%player%} is less than 1000: send "&cBLAD: &4nie posiadasz wystarczajaco coinsow !!" to player stop else: give 1 diamond helmet of protection 4 and unbreaking 3 to player give 1 diamond chestplate of protection 4 and unbreaking 3 to player give 1 diamond leggings of protection 4 and unbreaking 3 to player give 1 diamond boots of protection 4 and unbreaking 3 to player remove 1000 from {coins.%player%} send "&aPomyslnie zakupiono Set 4/3" to player stop if arg-1 is "kupkilof": if {coins.%player%} is less than 300: send "&cBLAD: &4nie posiadasz wystarczajaco coinsow !!" to player stop else: give 1 diamond pickaxe of efficiency 5 and unbreaking 3 and fortune 3 to player remove 300 from {coins.%player%} send "&aPomyslnie zakupiono Kilof 5/3/3" to player stop command /isklep6: trigger: open chest with 6 rows named "&cSprzedawanie Przedmiotow" to player wait 1 ticks format slot 53 of player with 1 of 371 named "&aStan Portfela&8:" with lore "&aCoinsy&8: &6%{coins.%player%}%" to run [make player execute "isklep6"] format slot 0 of player with 1 of 173 named "&a64 Blokow Wegla" with lore "&cZa sprzedasz otrzymasz&8:||&615 &aCoinsow" to run [make player execute "isklep2 sellwegiel64"] format slot 1 of player with 1 of 152 named "&a64 Blokow Redstone" with lore "&cZa sprzedasz otrzymasz&8:||&620 &aCoinsow" to run [make player execute "isklep2 sellredstone64"] format slot 2 of player with 1 of 57 named "&a64 Blokow Diamentow" with lore "&cZa sprzedasz otrzymasz&8:||&655 &aCoinsow" to run [make player execute "isklep2 selldiamenty64"] format slot 3 of player with 1 of 41 named "&a64 Blokow Zlota" with lore "&cZa sprzedasz otrzymasz&8:||&660 &aCoinsow" to run [make player execute "isklep2 sellzloto64"] format slot 4 of player with 1 of 42 named "&a64 Blokow Zelaza" with lore "&cZa sprzedasz otrzymasz&8:||&635 &aCoinsow" to run [make player execute "isklep2 sellzelazo64"] format slot 5 of player with 1 of 152 named "&a64 Blokow Redstone" with lore "&cZa sprzedasz otrzymasz&8:||&620 &aCoinsow" to run [make player execute "isklep2 sellredstone64"] command /isklep2 []: trigger: if arg 1 is "sellzloto64": if player don't have 64 41: send "&7Nie Posiadasz 64 blokow zlota!" stop else: remove 64 41 from player add 60 to {coins.%player%} send "&4[&cSKLEP&4] &8>> &aPomyslnie sprzedano&8: &b64&8x &bblokow zlota" stop if arg 1 is "sellzelazo64": if player don't have 64 42: send "&7Nie Posiadasz 64 blokow zelaza!" stop else: remove 64 42 from player add 35 to {coins.%player%} send "&4[&cSKLEP&4] &8>> &aPomyslnie sprzedano&8: &b64&8x &bblokow zelaza" stop if arg 1 is "sellwegiel64": if player don't have 64 coal block: send "&7Nie Posiadasz 64 blokow wegla!" stop else: remove 64 coal block from player add 15 to {coins.%player%} send "&4[&cSKLEP&4] &8>> &aPomyslnie sprzedano&8: &b64&8x &bblokow wegla" stop if arg 1 is "sellredstone64": if player don't have 64 152: send "&7Nie Posiadasz 64 blokow redstone!"