Hello,
I'm having issues with the clicked item expression. I think the root of the issue is that it is an item type. Is it possible to convert item types to an item stack with skript? I am mostly following the example provided in the documentation, but it gives me an error, which is why I changed it slightly. I'm using version skript version 2.2-dev30b (bensku) on paper 1.12.1.
Any advice is greatly appreciated!
I'm having issues with the clicked item expression. I think the root of the issue is that it is an item type. Is it possible to convert item types to an item stack with skript? I am mostly following the example provided in the documentation, but it gives me an error, which is why I changed it slightly. I'm using version skript version 2.2-dev30b (bensku) on paper 1.12.1.
code_language.skript:
on inventory click:
broadcast "%clicked item%" # works
# broadcast "%name of clicked item%" ERROR: clicked item is neither an item stack, a slot, a living entity, a player, or an inventory
set {_item} to clicked item
if name of {_item} is set:
broadcast "%{_item}%" # <none>
broadcast "%name of {_item}%" # <none>
Any advice is greatly appreciated!