Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicHUD MythicHUD
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicHUDMythicHUD
  • Wiki
    • Conditions
  • Progress

Progress · Changes

Page history
Create Conditions/Progress authored Oct 03, 2024 by Brickgard's avatar Brickgard
Hide whitespace changes
Inline Side-by-side
Showing with 36 additions and 0 deletions
+36 -0
  • Conditions/Progress.md Conditions/Progress.md +36 -0
  • No files found.
Conditions/Progress.md 0 → 100644
View page @ b5518bd8
Evaluate the output of an asset layer's listener.
### Attributes
---
| **Attribute** | Aliases | **Description** |
| ------------- | ----------- | ------------------------------------------------------------------- |
| `layer` | `lay`, `l` | The asset layer with the listener to evaluate. |
| `value` | `val`, `v` | The value to compare the layer progress against - can be a percent. |
| `operation` | `oper`, `o` | [Logical Operator](Conditions/Logical-Operator) to compare with. |
### Example
---
Hides the Asset in its HUD layout if the `air` listener used in the `fill` asset layer is ever less than 100% (so air is in use):
```yaml
vanilla-air:
conditions: #Hide if the fill layer is empty.
- progress{l=fill;o=<;v=100%} true hide
layers:
icon:
texture:
path: assets/vanilla/air.png
offset:
x: -5
y: 2
fill:
texture:
path: assets/vanilla/exp_bar_short_fill.png
color: "#525aff"
offset:
x: 0
y: 0
function:
listener: air
increment: 13
orientation: horizontal
```
\ No newline at end of file
Clone repository
  • Advanced Version Support
  • Changelog
  • Commands
  • Compatibility
  • Components
    • Asset Layers
    • Assets
  • Conditions
  • Conditions
    • Effect
    • Gamemode
    • Logical Operator
    • Placeholder
    • Progress
  • Fonts
  • Getting Started
  • HUD Components
View All Pages