DAI_KEYBINDS
Datapack Keybinds & Raw Input
Create a named remappable control and use press/held/release conditions.
Build path
- Define itCreate
dai_keybinds/ability.json. - Read itUse
keybind_pressed/held/released. - Keep authority server-sideInput selects intent; server actions verify gameplay changes.
- Use raw keys deliberatelyReserve
raw_key_*for low-level non-remappable cases. - Test focus/remapVerify gameplay input does not leak through UI/chat.
Starter JSON
{
"display_name":"Ability Key",
"category":"gameplay",
"default_key":"key.keyboard.g"
}Next
See Conditions and Input/UI 3.3.