Set gamemode
set_gamemodeSwitch a player's game mode among survival, creative, adventure, or spectator. Creative mode allows instant breaking and free placement.
Instructions
Change the player's gamemode (creative enables instant breaking and free placement).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| player | No | Online player name (defaults to the first online player) |