This version brings new "rightClick" and "leftClick" handlers! "rightClick" happens when a player right clicks air or a block, and left click happens before a player left clicks air or a block.
These handlers are run BEFORE the more specific ones. For example, "rightClick" happens BEFORE "rightClickBlock" and "rightClickAir"
Code (YAML):
handlers :
rightClickAir
:
-
action
: sendMessage
message
"This will happen second"
rightClick
:
-
action
: sendMessage
message
:
"This will happen first"