Changes a player's game mode.
/gamemode <mode> [target]
| Name | Required | Description |
|---|---|---|
| mode | Yes | survival, creative, adventure, spectator. |
| target | No | Player to update (defaults to executor). |
/gamemode creative @p
Available in both Java and Bedrock editions.