Entity - on Right Click Section (Section) — Lusk
Addon: Lusk · Category: Section · Since: 1.1
Syntax
[execute|run] on [right[ |-]]click (on|of) %~entity%Description
Runs the code inside of it when the provided entity gets clicked.
Local Variables that are: - defined BEFORE this section CAN be used inside of it. - defined AFTER this section CANNOT be used inside of it. - defined INSIDE this section CANNOT be used outside of it.
Examples
command /a:
trigger:
spawn pig at player:
set display name of entity to "&dPig"
on click on entity:
broadcast "%entity% has been clicked!"