Condition Types
Find the default condition types here!
Check potion effects on the user.
Argument | Description | Example |
---|---|---|
effects, effect, e | The effects that should be checked. | {e=luck}
{e=blindness,wither} |
conditions:
- effect{e=luck,haste} true color green
Check the gamemode of the user.
Argument | Description | Example |
---|---|---|
gamemodes, gamemode, gm | The gamemodes that should be checked. | {gm=survival}
{gm=creative,spectator} |
conditions:
- gamemode{gm=creative} false hide #Hide if in creative
Compare placeholders of the user.
Argument | Description | Example |
---|---|---|
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.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
Compare progress of a certain layer on your hud.
Argument | Description | Example |
---|---|---|
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==} |
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 modified 1mo ago