Condition Types

Find the default condition types here!

Effect Condition

Check potion effects on the user.

ArgumentDescriptionExample

effects, effect, e

The effects that should be checked.

{e=luck} {e=blindness,wither}

Example

conditions:
- effect{e=luck,haste} true color green

Gamemode Condition

Check the gamemode of the user.

ArgumentDescriptionExample

gamemodes, gamemode, gm

The gamemodes that should be checked.

{gm=survival} {gm=creative,spectator}

Example

conditions:
- gamemode{gm=creative} false hide #Hide if in creative

Placeholder Condition

Compare placeholders of the user.

ArgumentDescriptionExample

1, ph, placeholder

The first value to compare.

{ph=100} {ph=%player_health%} {ph=%player_allow_flight%}

2, v, val, value

The second value to compare.

{ph=50} {ph=%player_health%}

o, oper, operation

{o=>=} {o==}

If only 1 is defined, the condition will check if it is true/false. If both are defined and numbers, they will be compared with the operation. If they are not numbers, they will be checked to see if their strings are equal.

Example

conditions:
 #Hide if player's direction is south.
- placeholder{ph=%player_direction%;v=S} false hide
 #Hide if player is flying.
- placeholder{ph=%player_is_flying%;v=yes} true hide
# Hide if player's light level is less than 5.
- placeholder{ph=%player_light_level%;v=5;o=>} true hide

Progress Condition

Compare progress of a certain layer on your hud.

ArgumentDescriptionExample

layer, lay, l

The key of the layer to read.

{l=fill}

v, val, value

The value to compare the layer progress to. This can include a percent.

{v=20} {v=50%}

o, oper, operation

{o=>=} {o==}

Example

conditions:
#Hide if fill layer's progress is full.
- progress{l=fill;o=<;v=100%} true hide
#Hide if fill layer's progress is empty.
- progress{l=fill;o=>;v=0} true hide

Last updated