Prevent key press
too-many-attributes:prevent_key_presspower type
While active, the holder's keybinds don't work: either every keybind, or the listed ones.
| Field | Type | Default | Description |
|---|---|---|---|
keys | Array of keybind ids | every keybind | The keybinds to block. |
scroll | Boolean | true without keys, false with them | Also block changing the hotbar slot with the mouse wheel. |
affect_forced | Boolean | false | Also block keys held by force_key_pressed. |
unpress | Boolean | true | Let go of every held key when the block starts, so keys held through it have to be pressed again. |
- Escape and the F3 debug keys aren't keybinds, so they always work. Blocking every keybind also blocks chat, the inventory and the hotbar keys.
- Origins' power keys and other mods' keybinds are blocked too. The server also refuses Origins' power keys and drops blocked keys from
action_on_key_sequence, so a modified client can't get around it. - The
conditionis checked on the player's own client and on the server. - From Overgrown's Apoli: the fields match.
Example: "Rooted". While the power is active, you can't move or jump.
{
"type": "too-many-attributes:prevent_key_press",
"keys": [
"key.forward",
"key.back",
"key.left",
"key.right",
"key.jump"
]
}