Commands/gamemode - Minecraft Wiki - Fandom
Maybe your like
gamemode
Permission level required
- 2 [JE only]
- 1 [BE only]
Restrictions
- Cheat only[BE only]
Sets a player's game mode.
Contents
- 1 Syntax
- 2 Arguments
- 3 Result
- 4 Output
- 5 Examples
- 6 See also
- 7 History
Syntax[]
- Java Edition
- Bedrock Edition
Arguments[]
JE: <gamemode>: gamemode BE: gameMode: GameMode: enum and gameMode: int: int
Specifies the new game mode. Must be one of the following:- survival (can be abbreviated as s or 0 in Bedrock Edition) for Survival mode
- creative (can be abbreviated as c or 1 in Bedrock Edition) for Creative mode
- adventure (can be abbreviated as a or 2 in Bedrock Edition) for Adventure mode
- default (can be abbreviated as d or 5) for default game mode[Bedrock Edition only]
- spectator for Spectator mode
JE: <target>: entityBE: player: target: CommandSelector<Player>
Specifies the target(s). If not specified, defaults to the player who executes the command. Must be a player name, a target selector or a UUID[Java Edition only]. And the target selector must[JE only]/should[BE only] be of player type.Result[]
| Command | Trigger | Java Edition | Bedrock Edition |
|---|---|---|---|
| any | the arguments are not specified correctly | Unparseable | Unparseable |
| gameMode: int is not a valid game mode id. | N/A | Failed | |
| player: target is not in player type | |||
| <target> or player: target fails to resolve to one or more online players | Failed | ||
| <target> or player: target is not specified when the command's executor is not a player | |||
| Otherwise | Successful | ||
Output[]
| 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 |
Examples[]
- To put the executing player into Creative mode: /gamemode creative /gamemode c[Bedrock Edition only] /gamemode 1[Bedrock Edition only]
- To put all players into Survival mode: gamemode survival @a
See also[]
- /defaultgamemode – sets the initial game mode for players joining the world.
History[]
| 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 game mode 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. | |||
| 1.19.3 | 22w45a | Now this command accepts a gamemode argument, instead of literal subcommands. | |||
| Pocket Edition Alpha | |||||
| v0.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. | |||
| Bedrock Edition | |||||
| 1.18.30 | beta 1.18.30.20 | Added 6 to access Spectator mode. | |||
| 1.18.31 | Added spectator to access Spectator mode. | ||||
| 1.19.30 | beta 1.19.30.20 | The Spectator game mode can no longer be entered via /gamemode 6. | |||
Commands
View at: Template:Commands/content [edit]Tag » How To Put A Player In Survival Mode
-
How To Use Minecraft Server Commands - Getting Started
-
Command Help: Force Any Player To Be In Creative Mode ... - YouTube
-
How To Use The GameMode Command In Minecraft
-
How To Change The Gamemode For A Specific Player? - Minecraft Forum
-
How To Change The Game Mode In Minecraft At Any Time
-
How To Set Players Into Creative Mode When They Join The Game?
-
How To Make Only Myself In "creative Mode" While Everyone Else Is ...
-
How Do I Give Creative Mode In Minecraft? - Quora
-
Survival Mode - Wikipedia
-
[PDF] A Parent's Guide To Minecraft
-
How To /tp Only Players In Survival? - Arqade
-
Set Game Mode - Microsoft MakeCode For Minecraft
-
Player In Game Mode - Microsoft MakeCode For Minecraft
-
Getting Amount Of Players In Survival Mode - Spigot