So I made this
I need it to be like when you click the nether star it takes 50 crystals away from you and gives you access to /feed, but im lost. Very lost
code_language.skript:
command /Crystals [<player>]:
aliases: crystal,c
trigger:
if {Crystals::%player%} is not set:
set {Crystals::%player%} to 0
if {Crystals::%player%} is -1:
set {Crystals::%player%} to 0
if arg 1 is not set:
message "&8You have &b%{Crystals::%player%}% Crystals."
else:
message "&8%arg 1% has &b%{Crystals::%player%}% Crystals."
command /cshop:
trigger:
open chest with 3 rows named "&9Crystals&bShop" to player
format slot 4 of player with arg 1's skull named "%player%" with lore "&cThats you!" to be unstealable
format slot 11 of player with nether star named "&eAccess to /feed" to run [pex user %Player% add essentials.feed]
I need it to be like when you click the nether star it takes 50 crystals away from you and gives you access to /feed, but im lost. Very lost