options: szansa1: 0.01%% szansa2: 0.0001%% variables: {coins.%player%} = 0 on mine of stone: delete block chance of 0.01%: add 1 to {coins.%player%} send "Brawo trafiles na zloto :)" stop chance of 0.0001%: add 10 to {coins.%player%} send "trafiłeś na zyle zlota" stop command /sklep: trigger: open chest with 1 rows named "&2Menu Sklepu" to player wait 2 ticks format slot 0 of player with 1 of light green wool named "&2&lSklep" with lore "&8» &7Mozesz tutaj Zakupić range" to run [make player execute "sklepik"] format slot 1 of player with 1 of gray glass named "&3&lDo dropu" to run [make player execute "dropik"] format slot 2 of player with 1 of gray glass named "&7Puste Pole" to close format slot 3 of player with 1 of gray glass named "&7Puste Pole" to close format slot 4 of player with 1 of gray glass named "&7Puste Pole" to close format slot 5 of player with 1 of gray glass named "&7Puste Pole" to close format slot 6 of player with 1 of gray glass named "&7Puste Pole" to close format slot 7 of player with 1 of gray glass named "&7Puste Pole" to close format slot 8 of player with 1 of gold nugget named "&2&lPieniadze&8:" with lore "&8» &7%{coins.%player%}% PLN" to run [make player execute "sklep"] command /sklepik: trigger: open chest with 1 rows named "&2Kup &5Range" to player format slot 0 of player with 1 iron sword named "&2KUP &5VIP" with lore "&2Koszt: &650.01 &5PLN" to run [make player execute "kup vip"] format slot 1 of player with 1 gold sword named "&2KUP &eS&5VIPA" with lore "&2Koszt: &6100.02 &5PLN" to run [make player execute "kup svip"] command /kup []: trigger: if arg 1 is "vipa": if {coins.%player%} is less than 50.01: send "Nie posiadasz tyle pieniedzy" stop else: execute console command "pex user %player% group set VIP" remove 50.01 from {coins.%player%} send "&8» &7Zakupiles Range &5VIP &7! !" send "&8» &7Z konta odjeto &650.01 &7PLN" stop if arg 1 is "svip": if {coins.%player%} is less than 100.02: send "Nie posiadasz tyle pieniedzy" stop else: execute console command "pex user %player% group set SVIP" remove 100.02 from {coins.%player%} send "&8» &7Zakupiles Range &eS&5VIP &7! !" send "&8» &7Z konta odjeto &6100.02 &7PLN" stop command /dropik: trigger: open chest with 3 rows named "&7Drop z &5Kamienia" to player format slot 0 of player with 1 of sunflower named "&e1zl" with lore "&8» &7Szansa: &6{@szansa1}" to close format slot 1 of player with 1 of sunflower named "&e10zl" with lore "&8» &7Szansa: &6{@szansa2}" to close