Restrictions | |
---|---|
First introduced | Beta 1.8 (Pre-release) PE Alpha 0.16.0 (PE Alpha 0.16.0 build 1) |
gamemode (adventure|creative|spectator|survival) [<target>]
gamemode <gameMode: GameMode> [player: target]
gamemode <gameMode: int> [player: target]
adventure|creative|spectator|survival
gameMode: GameMode
: GameType and gameMode: int
: intsurvival
(can be abbreviated as s
or 0
in Bedrock Edition) for survival modecreative
(can be abbreviated as c
or 1
in Bedrock Edition) for creative modeadventure
(can be abbreviated as a
or 2
in Bedrock Edition) for adventure modespectator
for spectator mode[Java Edition only]<mode>
argument, as it is technically not a game mode.<targets>
: entityplayer: target
: CommandSelector<Actor> Crack solidworks 2011 sp0 solidsquad solid.Command | Trigger | Java Edition | Bedrock Edition |
---|---|---|---|
any | the arguments are not specified correctly | Unparseable | Failed |
if <targets> or player: target fails to resolve to one or more online players | Failed | ||
if <targets> or player: target is not specified and the command executor is not a player | |||
if all the players are already in the specified game mode | Successful | ||
On success | Sets the game mode of the specified players |
Command | Edition | Situation | Success Count | /execute store success .. | /execute store result .. |
---|---|---|---|---|---|
any | Java Edition | On fail | 0 | 0 | 0 |
On success | 1 | 1 | the number of players whose game mode is changed. | ||
Bedrock Edition | On fail | 0 | N/A | N/A | |
On success | the number of targeted players. | N/A | N/A |
gamemode creative
gamemode c
[Bedrock Edition only]gamemode 1
[Bedrock Edition only]gamemode survival @a
/defaultgamemode
– sets the initial game mode for players joining the world.Java Edition Beta | |||||
---|---|---|---|---|---|
1.8 | Pre-release | Added /gamemode <player> <mode> . The command requires a player and numeric gamemode. | |||
Java Edition | |||||
1.3.1 | 12w16a | /gamemode is now usable in singleplayer. | |||
Syntax changed to /gamemode <mode> <player> , where player is now optional (defaulting to the sender) and mode can be a number, or one of survival , creative , s , or c . | |||||
12w30a | Changed the ID for survival mode from 3 to 0 , changing /gamemode 3 to /gamemode 0 . | ||||
1.8 | 14w05a | Added spectator to /gamemode . | |||
1.9 | 15w43a | /gamemode now displays in the chat the gamemode the player switches to. | |||
16w02a | The m selector now accepts the standard literal gamemode values and abbreviations, such as a and adventure , and these may be negated as well (e.g., @a[gamemode=!survival] ). | ||||
1.13 | 17w45a | Removed abbreviated forms and numeric IDs. | |||
Pocket Edition Alpha | |||||
0.16.0 | build 1 | Added /gamemode . | |||
Functionality is almost equivalent to Java Edition 1.10 usage, except /gamemode can only use Creative and Survival modes. | |||||
Pocket Edition | |||||
1.1.0 | alpha 1.1.0.0 | Added adventure to /gamemode . |