# /gamemode

## Syntax

`gamemode <gamemode> [<targets>]`

## Arguments

`<gamemode>` [String](https://thepython10110.gitbook.io/better-commands/data-types#string)

Specifies the new game mode.

Must be one of the following:

* `survival` (can be abbreviated as `s` or `0`)
* `creative` (can be abbreviated as `c` or `1`)

`<target>` [Selector](https://thepython10110.gitbook.io/better-commands/target-selectors)

Specifies the target(s). If not specified, defaults to the player who executes the command.

## Result

Changes the game mode of the player(s). In non-MineClone-like games, grants or revokes the `creative` privilege.

## History

| Version | Action            |
| ------- | ----------------- |
| v2.0    | Added `/gamemode` |
