TOGGLEKEY

TOGGLEKEY(<bind>)

Type: Action

Category: Input

Permission: mod.macros.script.input.togglekey

Since Minecraft Version: v1.8.1 beta

Since Version: v0.5

Minor: 5

API: N/A

Patch: N/A


Description

Toggles the pressed state of the specified key binding, only works with pressable bindings

Can be one of the following values:

  • "forward"
  • "back"
  • "left"
  • "right"
  • "jump"
  • "sneak"
  • "playerlist"
  • "sprint"

Can also be a key code value between 0 and 255


Useful Links

Changelog
  • Added em v0.5:
  • Updated em v0.10.4: New possible values `"playerlist"` and `"sprint"`
  • Fixed em v0.9.6: Parses variables correctly