Skip to content

Conditions

Roughly_ edited this page Dec 17, 2022 · 1 revision

To check if something is happening along with the event.

Notice! As of 2.1, conditions now support PlaceholderAPI.

All conditions for all events (entity refers to the main character, mostly player):

  • 'PDC-MATCH [address] [expected]' - triggers if the value at a player's PDC at that certain address is the same as expected.
  • 'SNEAKING' - triggers if the entity is sneaking.
  • 'SPRINTING' - triggers if the entity is sprinting.
  • 'SWIMMING' - triggers if the entity is swimming. Does not trigger if the entity is simply underwater.
  • 'BLOCKING' - triggers if the entity is blocking with their shield.
  • 'FLYING' - triggers if the entity is flying.
  • 'ONFIRE' - triggers if the entity is on fire.
  • 'ONHIGHESTBLOCK' - triggers if the entity is on the highest block of its location.
  • 'RAIN' - triggers if it's raining in the entity's world.
  • 'CLEAR' - triggers if the weather is clear in the entity's world.
  • 'THUNDER' - triggers if it's thundering in the entity's world.
  • 'NIGHT' - triggers if it's night in the entity's world.
  • 'DAY' - triggers if it's afternoon in the entity's world.
  • 'OVERWORLD' - triggers if the entity's world is the overworld.
  • 'NETHER' - triggers if the entity's world is the nether.
  • 'END' - triggers if the entity's world is the end.
  • 'HEALTH (=, >, <, >=, <=) [health]' - triggers if the entity's health matches the comparative operator's output.
  • 'FOOD (=, >, <, >=, <=) [food]' - triggers if the entity's food level matches the comparative operator's output.
  • 'AIR (=, >, <, >=, <=) [ticks]' - triggers if the entity's air level matches the comparative operator's output.
  • 'GODMODE (=, >, <, >=, <=) [ticks]' - triggers if the entity's invisibility ticks match the comparative operator's output.
  • 'OP' - triggers if the entity is OP.

Guides:

Triggers:

API:

Clone this wiki locally