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

Gamemode · Changes

Page history
Create Conditions/Gamemode authored Oct 03, 2024 by Brickgard's avatar Brickgard
Hide whitespace changes
Inline Side-by-side
Showing with 23 additions and 0 deletions
+23 -0
  • Conditions/Gamemode.md Conditions/Gamemode.md +23 -0
  • No files found.
Conditions/Gamemode.md 0 → 100644
View page @ 1f4c68c3
Checks the player's gamemode.
### Attributes
---
| **Attribute** | Aliases | **Description** |
| ------------- | ----------------- | ---------------------------- |
| `gamemode` | `gamemodes`, `gm` | The gamemode(s) to look for. |
### Example
---
Hides the `lucky_charm` Asset in its HUD if the player is in Creative or Spectator mode:
```yaml
lucky_charm:
conditions:
- gamemode{gm=creative,spectator} false hide
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