variables: {lvl.wyspa.%player%} = 1 options: cena: 1000 powiekszenie: 50 #o 50% czyli 1500 poziom 3 jest 2500 command /sklep []: trigger: open chest with 3 rows named "&6&lSklep" to player if {lvl.wyspa.%player%} is 1: set player's current inventory's slot 13 to 1 dirt named "&6Powieksz wyspe" with lore "&ckliknij aby powiekszyc wyspe||&cObecny poziom 1/3||&cWymiary wyspy 200x200||&6Cena: &c{@cena}$" if {lvl.wyspa.%player%} is 2: set player's current inventory's slot 13 to 1 grass named "&6Powieksz wyspe" with lore "&ckliknij aby powiekszyc wyspe||&cObecny poziom 2/3||&cWymiary wyspy 300x300||&6Cena: &c%{@cena}*1.{@powiekszenie}%$" if {lvl.wyspa.%player%} is 3: set player's current inventory's slot 13 to 1 stone named "&6Powieksz wyspe" with lore "&ckliknij aby powiekszyc wyspe||&cObecny poziom 3/3||&cWymiary wyspy 350x350||&6Cena: &c%{@cena}*2.{@powiekszenie}%$" on inventory click: if inventory name of current inventory of player is "&6&lSklep": cancel event if clicked slot is 13: if {lvl.wyspa.%player%} is 1: if player's balance is greater or equal to {@cena}: add 1 to {lvl.wyspa.%player%} execute console command "pex user %player% add askyblock.island.range.200" execute player command "sklep" remove {@cena} from player's account else: send "&cNie posiadasz {@cena}!" if {lvl.wyspa.%player%} is 2: if player's balance is greater or equal to {@cena}*1.{@powiekszenie}: add 1 to {lvl.wyspa.%player%} execute console command "pex user %player% add askyblock.island.range.300" execute player command "sklep" remove {@cena}*1.{@powiekszenie} from player's account else: send "&cNie posiadasz %{@cena}*1.{@powiekszenie}%!" if {lvl.wyspa.%player%} is 3: if player's balance is greater or equal to {@cena}*2.{@powiekszenie}: add 1 to {lvl.wyspa.%player%} execute console command "pex user %player% add askyblock.island.range.350" execute player command "sklep" remove {@cena}*2.{@powiekszenie} from player's account else: send "&cNie posiadasz %{@cena}*2.{@powiekszenie}%!"