on inventory click:
if name of event-inventory is "farmer":
if event-item is not bedrock:
cancel event
on inventory click:
if name of event-inventory is "food":
# Tier 1 X
if event-item is Cooked Mutton:
if balance of player >= 12:
make console execute command "eco take %player% 12"
give player 12 Cooked Mutton
cancel event
else:
cancel event
send "&cYou don't have the enough coins"
command /food:
trigger:
open {food} to player
set slot 11 of {food} to Cooked Mutton named "Food"
I want a script. When a player joins for the first time, they can choose from three types of armor: diamond, gold, or netherite. Once they make a choice, they can't choose again.
And the skript is example
