Skip to content

Conditions (additional for PLAYERMOVE)

Roughly_ edited this page Dec 17, 2022 · 1 revision

Additional conditions only for PLAYERMOVE trigger.

Whenever there's a material value, reference this

  • 'FROM-IS [material]' - checks if the from-block is equal to that material.
  • 'TO-IS [material]' - checks if the to-block is equal to that material.
  • 'JUMP' - checks if the trigger reason was a jump. Note that the JUMP condition overrides the other 3 below, and is also not very accurate due to it not being provided by the Spigot API by default.
  • 'SAME-BLOCK' - checks if the trigger reason was a movement on the same block. Note that this and the other 2 conditions below can stack up, thus, for example, SAME-BLOCK and HEAD-ROTATE could both be true at the same time.
  • 'NOT-SAME-BLOCK' - checks if the trigger reason was a movement from one block to another.
  • 'HEAD-ROTATE' - checks if the trigger reason was a player's head rotation change.

Guides:

Triggers:

API:

Clone this wiki locally