|
|
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.
|
|
|
|
|
|
Each condition has a default parameter named `match` with the aliases `m, default, d`. This value is a boolean and defaulted to be true.
|
|
|
## 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.
|
... | ... | @@ -48,11 +47,11 @@ health: |
|
|
## Conditions
|
|
|
|
|
|
### Default Parameters
|
|
|
These parameters are included in every condition.
|
|
|
These parameters are included in **every** condition.
|
|
|
|
|
|
| Parameter | Aliases | Description | Type | Default Value |
|
|
|
| ------ | ------ | ------ | ------ | ------ |
|
|
|
| `match` | `m, default, d` | The operation to compare the `value` parameter to the bar's coefficient. | Boolean | `true` |
|
|
|
| `match` | `m, default, d` | What the condition will match to. This condition `gamemode{gm=creative;m=true}` will be true if the player is in creative, while this condition `gamemode{gm=creative;m=false}` will be false. | Boolean | `true` |
|
|
|
|
|
|
| Conditions | Description |
|
|
|
| ------ | ----------- |
|
... | ... | |