DAI_KEYBINDS

Datapack Keybinds & Raw Input

Create a named remappable control and use press/held/release conditions.

DAI 3.3JSON-firstTest in Minecraft

Build path

  1. Define itCreate dai_keybinds/ability.json.
  2. Read itUse keybind_pressed/held/released.
  3. Keep authority server-sideInput selects intent; server actions verify gameplay changes.
  4. Use raw keys deliberatelyReserve raw_key_* for low-level non-remappable cases.
  5. 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.