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

Effect · Changes

Page history
Create Conditions/Effect authored Oct 03, 2024 by Brickgard's avatar Brickgard
Show whitespace changes
Inline Side-by-side
Showing with 24 additions and 0 deletions
+24 -0
  • Conditions/Effect.md Conditions/Effect.md +24 -0
  • No files found.
Conditions/Effect.md 0 → 100644
View page @ d43c9b37
Checks for potion effects on the player. Can look for multiple effects.\
Effect names are sourced from [SpigotAPI documentation](https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/potion/PotionEffectType.html).
### Attributes
---
| **Attribute** | Aliases | **Description** |
| ------------- | -------------- | -------------------------------- |
| `effect` | `effects`, `e` | The potion type(s) to check for. |
### Example
---
Colors the `lucky_charm` Asset green in its HUD if the user has the LUCK effect:
```yaml
lucky_charm:
conditions:
- effect{e=luck} true color green
layers:
icon:
texture:
path: assets/luck/clover.png
offset:
x: -5
y: 2
```
\ 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