in_gamemode

Passes when the player is in the specified gamemode.

Categories: player

Required arguments

Key(s)DescriptionType
gamemodeThe gamemode name (e.g. SURVIVAL, CREATIVE, ADVENTURE, SPECTATOR).STRING

Example

conditions:
  - id: in_gamemode
    args:
      gamemode: <value>