variables:
{bitcoin} = 72200
every 1 minute:
set {bitcoin} to random integer between 0 and 50
on script load:
send " " to all players
send " " to all players
send "&6Aktualna cena bitcoina wynosi: %{bitcoin}%$" to all players
send " " to all players
send " " to all players
command /cenabitcoina:
trigger:
send "&6Aktualna cena bitcoina wynosi: %{bitcoin}%$"
command /kryptowaluty:
trigger:
send "&8---------[][][]----------"
send "&a/bitcoin - &8Sprzedajesz Bitcoina"
send "&8---------[][][]----------"
command /sprzedajbitcoin:
trigger:
if player has 1 of sunflower named "&e&lBitCoin":
execute console command "minecraft:clear %player% sunflower 1"
execute console command "eco give %player% %{bitcoin}%"
send "&cPomyslnie Sprzedales Bitcoina"
on place of sandstone:
if tool is sandstone named "&aKoparka":
wait 7 minutes
chance of 10%:
send "&8>> &aWykopałeś bitcoina!"
give 1 sunflower named "&e&lBitCoin" to player
stop
Poprawiony skrypt, działa w 100%
Jeśli chcesz żeby były inne ceny to wystarczy zmienić ostatnia liczbę w:
set {bitcoin} to random integer between 0 and 50
Liczę na naj