|
|
Conditions allow for bars or their modules to be hidden if they do not meet the criteria that is set. This feature was added in version 1.5.2. Previous versions had a system which used bar options to hide bars which is now removed. Old removed options will be automatically converted to the new conditions format.
|
|
|
## Config Examples
|
|
|
|
|
|
In this example the entire bar will be hidden if the condition is not met. The condition will hide the bar if the player is in creative or spectator mode.
|
|
|
```
|
|
|
health:
|
... | ... | @@ -41,3 +42,13 @@ health: |
|
|
| bar-progress{v=1;oper=less;m=true} | This condition will be false when the bar is full. |
|
|
|
| mounted{m=false} | This condition will be false when the player is mounted. |
|
|
|
| bar-inactive{m=true} | This condition will be false when the bar is inactive. |
|
|
|
|
|
|
## Conditions
|
|
|
|
|
|
| Conditions | Description |
|
|
|
| ------ | ----------- |
|
|
|
| bar-inactive | Used for bar inactivity. |
|
|
|
| bar-progress | Used for detecting the progress of the bar. |
|
|
|
| effect | Used for detecting potion effects on the player. |
|
|
|
| mounted | Used for detecting if a player is mounted on a living entity. |
|
|
|
| placeholder | Used for making custom conditions. | |
|
|
\ No newline at end of file |