in_gamemode
Passes when the player is in the specified gamemode.
Categories: player
Required arguments
| Key(s) | Description | Type |
|---|---|---|
gamemode | The gamemode name (e.g. SURVIVAL, CREATIVE, ADVENTURE, SPECTATOR). | STRING |
Example
conditions:
- id: in_gamemode
args:
gamemode: <value>