variables: {coins.%player%} = 0 command /run [] []: permission: run.command.kupisu trigger: if arg 1 is set: if "arg 2" is set: command /sklep []: trigger: open chest with 3 rows named "&2&lSKLEP" to player wait 1 ticks format slot 11 of player with 1 of Green Stained Glass named "&2&lSklep" with lore "&8» &7Mozasz tutaj Zakupic wiele Przedmiotow" to run [make player execute "isklep5"] format slot 0 of player with 1 of Stained Glass Pane named "&4&l" to close format slot 1 of player with 1 of Stained Glass Pane named "&4&l" to close format slot 2 of player with 1 of Stained Glass Pane named "&4&l" to close format slot 3 of player with 1 of Stained Glass Pane named "&4&l" to close format slot 4 of player with 1 of Stained Glass Pane named "&4&l" to close format slot 5 of player with 1 of Stained Glass Pane named "&4&l" to close format slot 6 of player with 1 of Stained Glass Pane named "&4&l" to close format slot 7 of player with 1 of Stained Glass Pane named "&4&l" to close format slot 8 of player with 1 of Stained Glass Pane named "&4&l" to close format slot 9 of player with 1 of Stained Glass Pane named "&4&l" to close format slot 10 of player with 1 of Stained Glass Pane named "&4&l" to close format slot 12 of player with 1 of Stained Glass Pane named "&4&l" to close format slot 14 of player with 1 of Stained Glass Pane named "&4&l" to close format slot 16 of player with 1 of Stained Glass Pane named "&4&l" to close format slot 17 of player with 1 of Stained Glass Pane named "&4&l" to close format slot 18 of player with 1 of Stained Glass Pane named "&4&l" to close format slot 19 of player with 1 of Stained Glass Pane named "&4&l" to close format slot 20 of player with 1 of Stained Glass Pane named "&4&l" to close format slot 21 of player with 1 of Stained Glass Pane named "&4&l" to close format slot 23 of player with 1 of Stained Glass Pane named "&4&l" to close format slot 24 of player with 1 of Stained Glass Pane named "&4&l" to close format slot 25 of player with 1 of Stained Glass Pane named "&4&l" to close format slot 26 of player with 1 of Stained Glass Pane named "&4&l" to close format slot 15 of player with 1 of Red Stained Glass named "&c&lSprzedawanie Przedmiotow" with lore "&8» &7Mozasz tutaj Sprzedac wiele Przedmiotow" to run [make player execute "isklep6"] format slot 13 of player with 1 of gold nugget named "&2&lPieniadze&8:" with lore "&8» &7%{coins.%player%}% PLN" to run [make player execute "sklep"] format slot 22 of player with 1 of Stained Glass Pane named "&4&l" to close command /isklep5: trigger: open chest with 5 rows named "&2&lKupowanie Przedmiotow" to player wait 1 ticks format slot 40 of player with 1 of gold nugget named "&2&lPieniadze&8:" with lore "&8» &e&l%{coins.%player%}% PLN" to run [make player execute "isklep5"] format slot 1 of player with 1 of enchanted golden apple named "&5&l5 Koxow" with lore "&8» &9&lKoszt Koxow: 2.99 PLN" to run [make player execute "isklep kupeq"] format slot 2 of player with 1 of diamond pickaxe named "&1&lKilof 6/4/3" with lore "&8» &9&lKoszt Kilofu: 30.00 PLN" to run [make player execute "isklep kupkilof"] format slot 3 of player with 1 of player head named "&e&lVIP" with lore "&8» &9&lKoszt rangi VIP: 29.99 PLN" to run [make player execute "isklep kupvip"] format slot 4 of player with 1 of paper named "&6&lKarta Doadujaca Kase w Banku &a&l50 000&2&l$" with lore "&8» &9&lKoszt Kasy: 29.99 PLN" to run [make player execute "isklep kuptnt"] format slot 5 of player with 1 of beacon named "&b&lBeacon" with lore "&8» &9&lKoszt Beacon: 39.99 PLN" to run [make player execute "isklep kupbeacon"] format slot 44 of player with 1 of locked chest:14 named "&2&lPowrot do Menu" with lore "&8» &d&lPrzenosi do glownego Menu" to run [make player execute "sklep"] format slot 36 of player with 1 of locked chest:14 named "&2&lPowrot do Menu" with lore "&8» &d&lPrzenosi do glownego Menu" to run [make player execute "sklep"] command /isklep []: trigger: if arg-1 is "kupbeacon": if {coins.%player%} is less than 39.99: send "&c&lBLAD: &4Nie posiadasz wystarczajaco pieniedzy !" to player stop else: give 1 beacon to player remove 39.99 from {coins.%player%} send "&8» &cZakupiles &6Beacon &7!" send "&8» &7Z konta odjeto &639.99 &7PLN" stop if arg-1 is "kuptnt": if {coins.%player%} is less than 29.99: send "&c&lBLAD: &4Nie posiadasz wystarczajaco pieniedzy !" to player stop else: give 1 paper of fortune 10 named "&6&lKarta Doladujaca do Banku &a&l50 000&2&l$" to player remove 29.99 from {coins.%player%} send "&8» &cZakupiles Karte Doladujaca &7!" send "&8» &7Z konta odjeto &229.99 &7PLN" stop if arg-1 is "kupvip": if {coins.%player%} is less than 49.99: send "&c&lBLAD: &4Nie posiadasz wystarczajaco pieniedzy !" to player stop else: execute console command "pex user %player% group set VIP" remove 49.99 from {coins.%player%} send "&8» &cZakupiles Range &6VIP &7! !" send "&8» &7Z konta odjeto &649.99 &7PLN" stop if arg-1 is "kupeq": if {coins.%player%} is less than 2.99: send "&c&lBLAD: &4Nie posiadasz wystarczajaco pieniedzy !" to player stop else: give 5 enchanted golden apple to player remove 2.99 from {coins.%player%} send "&8» &cZakupiles 5 koxow &7!" send "&8» &7Z konta odjeto &62.99 &7PLN" stop if arg-1 is "kupkilof": if {coins.%player%} is less than 30.00: send "&c&lBLAD: &4Nie posiadasz wystarczajaco pieniedzy !" to player stop else: give 1 diamond pickaxe of efficiency 6 and unbreaking 4 and fortune 3 named "&6&LMagiczny Kilof Podstaw" to player remove 30.00 from {coins.%player%} send "&8» &cZakupiles Kilof &66/4/3 &7!" send "&8» &7Z konta odjeto &630.00 &7PLN" stop command /isklep6: trigger: open chest with 3 rows named "&c&lSprzedawanie Przedmiotow" to player wait 1 ticks format slot 25 of player with 1 of gold nugget named "&a&lPieniadze&8:" with lore "&8» &e&l%{coins.%player%}% PLN" to run [make player execute "isklep6"] format slot 19 of player with 1 of gold nugget named "&a&lPieniadze&8:" with lore "&8» &e&l%{coins.%player%}% PLN" to run [make player execute "isklep6"] format slot 0 of player with 64 of coal named "&8» &8&l64 Wegla" with lore "&8» &7Za sprzedaz otrzymasz: 0.04 PLN" to run [make player execute "isklep2 sellwegiel64"] format slot 1 of player with 64 of redstone named "&8» &c&l64 Redstone" with lore "&8» &7Za sprzedaz otrzymasz: 0.04 PLN" to run [make player execute "isklep2 sellredstone64"] format slot 2 of player with 64 of diamond named "&8» &b&l64 Diamentow" with lore "&8» &7Za sprzedaz otrzymasz: 0.13 PLN" to run [make player execute "isklep2 selldiamenty64"] format slot 3 of player with 64 of gold ingot named "&8» &e&l64 Zlota" with lore "&8» &7Za sprzedaz otrzymasz: 0.10 PLN" to run [make player execute "isklep2 sellzloto64"] format slot 4 of player with 64 of iron ingot named "&8» &7&l64 Zelaza" with lore "&8» &7Za sprzedaz otrzymasz: 0.10 PLN" to run [make player execute "isklep2 sellzelazo64"] format slot 26 of player with 1 of locked chest:14 named "&2&lPowrot do Menu" with lore "&8» &d&lPrzenosi do glownego Menu" to run [make player execute "sklep"] format slot 18 of player with 1 of locked chest:14 named "&2&lPowrot do Menu" with lore "&8» &d&lPrzenosi do glownego Menu" to run [make player execute "sklep"] command /isklep2 []: trigger: if arg 1 is "selldiamenty64": if player don't have 64 Diamond: send "&c&lBLAD: &4Nie posiadasz 64 Diamentow !" stop else: remove 64 Diamond from player add 0.13 to {coins.%player%} send "&8» &7Sprzedales &664 &b&lDiamentow !" send "&8» &7Do twojego Konta dodano &60.13 &7PLN !" stop if arg 1 is "sellzloto64": if player don't have 64 Gold Ingot: send "&c&lBLAD: &4Nie posiadasz 64 Zlota !" stop else: remove 64 Gold Ingot from player add 0.10 to {coins.%player%} send "&8» &7Sprzedales &664 &e&lZlota !" send "&8» &7Do twojego Konta dodano &60.10 &7PLN !" stop if arg 1 is "sellzelazo64": if player don't have 64 Iron Ingot: send "&c&lBLAD: &4Nie posiadasz 64 Zelaza !" stop if player have 64 iron ingot: remove 64 Iron ingot from player add 0.10 to {coins.%player%} send "&8» &7Sprzedales &664 &7&lZelaza !" send "&8» &7Do twojego Konta dodano &60.10 &7PLN !" stop if arg 1 is "sellwegiel64": if player don't have 64 Coal: send "&c&lBLAD: &4Nie posiadasz 64 Wegla !" stop else: remove 64 Coal from player add 0.04 to {coins.%player%} send "&8» &7Sprzedales &664 &8&lWegla !" send "&8» &7Do twojego Konta dodano &60.04 &7PLN !" stop if arg 1 is "sellredstone64": if player don't have 64 Redstone: send "&c&lBLAD: &4Nie posiadasz 64 Redstone !" else: remove 64 Redstone from player add 0.05 to {coins.%player%} send "&8» &7Sprzedales &664 &c&lRedstone !" send "&8» &7Do twojego Konta dodano &60.05 &7PLN !" stop command /monety: trigger: send "&6&l[SKLEP] &9&lPosiadasz Akualnie &a&l%{coins.%player%}% &2&lPLN" on rightclick: if player's tool is paper with lore "&c&lWplac klikajac Prawym" named "&7&l[&6&lSKLEP&7&l] &9&lTwoje wyplacone Monety &2&l1.00 PLN": add 1.00 to {coins.%player%} send "&7&l[&6&lSKLEP&7&l] &9&lMonety zostaly Wplacone do banku" remove 1 paper named "&7&l[&6&lSKLEP&7&l] &9&lWyplacone Monety &a&l1.00 &2&lPLN" with lore "&c&lWplac Klikajac Prawym" from player stop on mine of stone: chance of 0.50%: add 0.05 to {coins.%player%} send "&7&l[&6&lSKLEP&7&l] &9&lZnalazlem zakopana 5 groszowke" chance of 0.40%: add 0.10 to {coins.%player%} send "&7&l[&6&lSKLEP&7&l] &9&lZnalazlem zakopana 10 groszowke"