Command /casino:
trigger:
open chest with 3 rows named "&4Køb poletter!" to player
wait 1 tick
format slot 10 of player with music disc pigstep named "&6Heldig polet" with lore "&bPris: &a$7500"
format slot 12 of player with music disc strad named "&7Sølv polet" with lore "&bPris: &a$1000"
on inventory click:
inventory name of player's current inventory is "&4Køb poletter!":
if clicked slot is 10:
if player's balance is between 7500 and 10000000000000:
wait 1 tick
execute console command "eco take %player% 7500"
execute console command "goldencrates givekey %player% Heldig"
else:
send "&4&lDu har ikke nok penge!" to player
if clicked slot is 12:
if player's balance is between 1000 and 10000000000000:
wait 1 tick
execute console command "eco take %player% 1000"
execute console command "goldencrates givekey %player% sølv"
else:
send "&4&lDu har ikke nok penge!" to player
I just cant seem to figure out what is wrong here. Can someone please help me out?
trigger:
open chest with 3 rows named "&4Køb poletter!" to player
wait 1 tick
format slot 10 of player with music disc pigstep named "&6Heldig polet" with lore "&bPris: &a$7500"
format slot 12 of player with music disc strad named "&7Sølv polet" with lore "&bPris: &a$1000"
on inventory click:
inventory name of player's current inventory is "&4Køb poletter!":
if clicked slot is 10:
if player's balance is between 7500 and 10000000000000:
wait 1 tick
execute console command "eco take %player% 7500"
execute console command "goldencrates givekey %player% Heldig"
else:
send "&4&lDu har ikke nok penge!" to player
if clicked slot is 12:
if player's balance is between 1000 and 10000000000000:
wait 1 tick
execute console command "eco take %player% 1000"
execute console command "goldencrates givekey %player% sølv"
else:
send "&4&lDu har ikke nok penge!" to player
I just cant seem to figure out what is wrong here. Can someone please help me out?