Input Trigger Config
Player Input Triggers Configuration
Configuration entry for InputTrigger extension. Contains a list of input definitions and inventory buttons.
Felder
| Feld | Typ | Standard | Beschreibung | ||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
keybinds | List<InputDefinition> | empty | Input trigger definitions for triggering actions on player input
|
| Feld | Typ | Standard | Beschreibung |
|---|---|---|---|
type | InputType | SWAP_HAND | The input type to listen for |
enabled | Boolean | false | Enable or disable this input handler |
cancelAction | Boolean | false | If true, the original game action is cancelled |
actions | List<Ref<ActionEntry>> | empty | Actions to execute when the input is triggered |
delay | Long | 0 | Delay in ticks before executing actions (0 = instant) |
cooldown | Long | 0 | Cooldown in ticks between consecutive triggers of this same binding (0 = no cooldown) |
dropCount | Int | 1 | For DROP: number of items to drop. 1 = single item, -1 = full stack, >1 = custom count |
hotbarSlot | Int | 0 | For HOTBAR_SLOT: the slot index (0-8) that triggers this definition |
criteria | List<Criteria> | empty | Criteria that must be met for this input trigger to fire |
inventoryButtonsList<InventoryButton>emptyInventoryButton (6)
| Feld | Typ | Standard | Beschreibung | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
slot | Int | 0 | Slot in the inventory (0-40 for player inventory, 0-4 for crafting grid) | ||||||||||||||||
item | Var<Item> | — | The item to display as the button | ||||||||||||||||
clickActions | List<ClickActionBinding> | empty | Actions mapped by click type
|
| Feld | Typ | Standard | Beschreibung |
|---|---|---|---|
clickType | ClickType | LEFT | The click type that triggers these actions |
actions | List<Ref<ActionEntry>> | empty | Actions to execute when this click type is used |
criteria | List<Criteria> | empty | Criteria that must be met for this binding to fire |
delayLong0isCraftingGridBooleanfalsecriteriaList<Criteria>emptyHow to use it
Create one entry of this type; only the first one found is read. It holds two lists.
keybinds: one definition per input type. Only the first definition of eachtypeis used. Tickenabled, because it is off by default. See the main page for the exact meaning of each input and ofcancelAction,delay,cooldownanddropCount.inventoryButtons: items pinned to aslot. For each button,clickActionsmaps aclickType(LEFT,RIGHT,SHIFT_LEFT,SHIFT_RIGHT,DROP,DOUBLE_CLICK, orALLas a fallback) to theactionsto run, with optionalcriteria.isCraftingGridplaces the button in the 2x2 crafting grid, where slot0is the result slot.
The actions fields only accept action entries. A button replaces the item in its slot, and a player carrying a button cannot die.