I tried some ways to do it but it doesn't work. What want is that when you left-click in any situation, it tells if you are clicking a player.
For some reason this doesn't work and I have tried things like this:
It always says that {_entity} is <none> no matter what or who I leftclick.
code_language.skript:
on leftclick:
if clicked entity is a player:
broadcast "it works"
For some reason this doesn't work and I have tried things like this:
code_language.skript:
on leftclick:
set {_entity} to "%clicked player%"
broadcast "%{_entity}%"
on leftclick:
set {_entity} to "%clicked entity%"
broadcast "%{_entity}%"
It always says that {_entity} is <none> no matter what or who I leftclick.