I have this:
and now the thing I want is to count charcoals and ghast tears in it by names. So if there is charcoal named "10 coins" I wanna count how many 10 coins there is and make variable out of it.
code_language.skript:
on leftclick holding a book:
if event-block is chest:
if the name of player's tool contains "&fBank Account of":
if event-block has charcoal or ghast_tear:
and now the thing I want is to count charcoals and ghast tears in it by names. So if there is charcoal named "10 coins" I wanna count how many 10 coins there is and make variable out of it.