variables: {coinsy::%player%} = 0 on mine of stone: chance of 7.14%: add 5 to {coinsy::%player%} send "&6&lCOINSY&7 » &aZnalazles &65 coins'ow &aw wykopanym kamieniu!" command /sklep []: trigger: wait 2 ticks open chest with 1 rows named "&6" to player wait 1 ticks format slot 4 of player with 1 stick named "&cLadowanie..." to be unstealable wait 35 ticks format slot 4 of player with 1 air to be unstealable format slot 0 of player with 1 green wool named "&aKup" to close then run [make player execute command "/kupno"] format slot 1 of player with 1 red wool named "&cSprzedaj" to be unstealable format slot 8 of player with 1 gold nugget named "&6Coinsy" with lore "&7Twoje coinsy&6: &7%{coinsy::%player%}%" to be unstealable command /reset []: permission: reset.coins trigger: set {coinsy::%player%} to 0 command /kupno []: trigger: wait 3 ticks open chest with 3 rows named "&6" to player wait 2 ticks format slot 0 of player with 2 enchanted golden apple with lore "&aCena &7» &6150 coins" to close then run [make player execute command "/ik koxyt"] format slot 1 of player with 8 golden apple with lore "&aCena &7» &6125 coins" to close then run [make player execute command "/ik refilekx"] format slot 26 of player with 1 red glass named "&9Powrot" to close then run [make player execute command "/sklep"] command /ik []: trigger: if arg 1 is "koxyt": if {coinsy::%player%} is less than 150: send "&6&lSKLEP&7 » &aNie posiadasz wystarczajaco coins'ow!" stop else: give 2 enchanted golden apple to player remove 150 from {coinsy::%player%} send "&6&lSKLEP&7 » &aKupiles &c(&72x&6enchanted golden apple&c)" stop if arg 1 is "refilekx": if {coinsy::%player%} is less than 125: send "&6&lSKLEP&7 » &aNie posiadasz wystarczajaco coins'ow!" stop else: give 8 golden apple to player remove 125 from {coinsy::%player%} send "&6&lSKLEP&7 » &aKupiles &c(&78x&6golden apple&c)" stop command /coinsy: permission: hack.coins trigger: add 1000 to {coinsy::%player%}