Gamemode (Entity Condition Type)
Checks which game mode the entity is in.
Type ID: apoli:gamemode
note
This condition only works on players.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
gamemode | String | required | The game mode the player must be in: survival, creative, adventure or spectator. |
warning
Powers that only draw something, such as apoli:overlay or apoli:shaking, evaluate their condition on the client. There, spectator and creative are exact for every player, but another player in adventure mode reads as survival, because other players' build permissions aren't sent to your client. Your own game mode is always exact.
Examples
"condition": {
"type": "apoli:gamemode",
"gamemode": "creative"
}This checks whether the player is in Creative mode.