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
  • Placeholder

Placeholder · Changes

Page history
Create Conditions/Placeholder authored Oct 03, 2024 by Brickgard's avatar Brickgard
Hide whitespace changes
Inline Side-by-side
Showing with 24 additions and 0 deletions
+24 -0
  • Conditions/Placeholder.md Conditions/Placeholder.md +24 -0
  • No files found.
Conditions/Placeholder.md 0 → 100644
View page @ 223a6d1b
Compares placeholders and inputs logically.
If only the placeholder (attribute `1`) is defined, the condition will check it for `true`/`false`.
If both values provided are numbers, they will compare using the [Logical Operator](Conditions/Logical-Operator) provider.
If a string is provided, the values will be checked if they match.
### Attributes
---
| **Attribute** | Aliases | **Description** |
| ------------- | --------------- | ---------------------------------------- |
| `placeholder` | `ph`, `1` | The first value/placeholder to compare. |
| `value` | `val`, `v`, `2` | The second value/placeholder to compare. |
| `operation` | `oper`, `o` | [Logical Operator](Conditions/Logical-Operator) to compare with. |
### Example
---
Various condition examples using the Player PAPI expansion:
```yaml
#Hide if player's direction is not 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
```
\ 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