I am trying to do somethine like:
But I can't and I get the error "Cannot recognize the type of 'name of clicked item'"
How to use name of clicked item in a function?
code_language.skript:
function EXAMPLE(p: player, c: name of clicked item):
send "test" to {_p}
if {_c} is "TEST":
send "it worked" to {_p}
on inventory click:
function EXAMPLE(player, name of clicked item)
How to use name of clicked item in a function?