Click Type
- You may notice, in the example menu, there are some weird values in
command
(action
) andclick-requirement
. - What are those
left
,right
,middle
anddefault
? - Those are called Click Type. It indicates the different behaviors of the button on different click types (left-click, right-click, middle-click, etc).
- List of Click Type
- Along with the click types, you can set a
default
click type, whose behaviors will be set on all available click types.
In action
COMMAND:
LEFT: "tell: &cYou left-clicked"
RIGHT: "tell: &cYou right-clicked"
MIDDLE: "tell: &cYou middle-clicked"
# Default for every click types
DEFAULT:
- "tell: &cUnknown click type"
- "tell: Left, Right, Middle only"
In click-requirement
click-requirement:
left:
test:
cooldown: 10
right:
test:
cooldown: 20
middle:
test:
cooldown: 30
default:
test:
cooldown: 40
fail-command:
- "tell: &cCalm down"
NUMBER_KEY
with number key
- The format:
NUMBER_KEY_<0-8>
- You can set the
NUMBER_KEY
click type with a number key (from0
to8
, specify the1
to9
number key) - This requires
use-modern-click-type
to be enabled