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