Skip to content

Movement Predicates

theblackswitch edited this page Jan 1, 2026 · 2 revisions

Available since version 2.0

Movement checks are useful to check which movement buttons the player is pressing. Currently available movement_types are:

  • backward_left
  • backward_right
  • backward
  • forward_left
  • forward_right
  • forward
  • jump
  • left
  • none
  • right
  • sneak
  • sprint

Usage

execute if predicate #theblackswitch:<version>/<patch>/movement_check/<movement_type>

Examples

# check if the player is pressing sprint
execute if predicate #theblackswitch:v2.0/patch-0/movement/sprint

# check if the player isn't pressing any move buttons
execute if predicate #theblackswitch:v2.0/patch-0/movement/none

# please note that your versions may be different

Enabling

This feature is enabled by default and always accessable

Clone this wiki locally