command /kutular:
trigger:
close player's inventory
open chest with 1 rows named "&6&lKutular" to player
wait 3 ticks
format slot 4 of player with 54 named "&bNoel Baba Kutusu" with lore "&8» &bMaaliyeti &8» &f5000 TL" to close then run [make player execute command "/noelbabakutusu"]
command /noelbabakutusu:
trigger:
if player's money is greater than or equal to 100000:
remove 100000 from player's money
give player 1 chest named "&bNoel Baba Kutusu" with lore "&71 Milyon Para||&7100 adet Elmas Blok||&710 adet Elmas Blok||&75 Milyon Para||&770 Altın Blok"
on rightclick holding a chest:
if tool's name is "&bNoel Baba Kutusu":
cancel event
remove 1 chest named "&bNoel Baba Kutusu" with lore "&71 Milyon Para||&7100 adet Elmas Blok||&710 adet Elmas Blok||&75 Milyon Para||&770 Altın Blok" from player's inventory
chance of 50%:
add 1000000 to the player's account
message " &e| &7- &c Kutu &7- &e| &71M Para çıktı tebrikler"
stop
chance of 40%:
give player 70 gold block
message " &e| &7- &c Kutu &7- &e| &770 Altın Blok çıktı tebrikler"
stop
chance of 30%:
give player 100 diamond block
message " &e| &7- &c Kutu &7- &e| &7100 Elmas blok çıktı tebrikler"
stop
chance of 20%:
add 5000000 to the player's account
message " &e| &7- &c Kutu &7- &e| &75M para çıktı tebrikler"
stop
chance of 100%:
give player 10 diamond block
message " &e| &7- &c Kutu &7- &e| &710 tane Elmas Blok çıktı tebrikler"
stop