What Gamemodes Do and How to Switch Between Them
Minecraft Java has four gamemodes, and you can switch between them at any time in your world. Survival is the default — you gather resources, manage hunger, and die if you take too much damage. Creative gives you infinite blocks and the ability to fly, so you build without limits. Adventure is like Survival but players cannot break or place blocks unless they have the right tools — mapmakers use this for custom maps. Spectator turns you invisible and lets you fly through walls to watch other players or explore without interacting.
You change gamemode using a command typed into the chat window. The command works the same way whether you are in single-player or on a server, though servers may restrict which modes you can use depending on your permissions.
Key Takeaways
- Open the chat window by pressing the T key (or / key on some keyboards), type the command, and press Enter to change gamemode when ready.
- The command format is /gamemode [mode], where mode is either survival, creative, adventure, or spectator — you can also use s, c, a, or sp as shortcuts.
- You must have cheats turned on in your world settings, or be an operator on a server, for the command to work.
- Changing gamemode does not affect your inventory, location, or the blocks you have placed — only what you can do going forward.
Turning On Cheats in Single-Player Worlds
If you created your world without cheats, you need to enable them before commands will work. Open your world, pause the game, and look for the button labeled "Open to LAN" near the bottom of the pause menu. Click it, and a new window appears with a toggle for "Allow Cheats" — turn it on and click "Start LAN World".
Your world is now in LAN mode with cheats active. You can now type commands in the chat window. This change stays active until you close the world, so you will only need to do this once per session.
If you are creating a new world, the easier route is to click "More World Options" during world creation and toggle "Allow Cheats" to on before you generate the world. Then you never need to open to LAN.
Using the Gamemode Command
Press the T key to open the chat window — you will see a text box appear at the bottom of your screen with a blinking cursor. Type the command exactly as shown: /gamemode creative (or whichever mode you want). Then press Enter.
The game displays a message confirming the change — "Set own game mode to Creative Mode" or similar. You are now in that gamemode. If you see a message saying "Unknown command" or "You need to be an operator", cheats are not turned on or you do not have permission on that server.
You can use the shorthand versions to type faster: /gamemode c for creative, /gamemode s for survival, /gamemode a for adventure, or /gamemode sp for spectator. The result is identical.
What Changes and What Stays the Same
When you switch gamemodes, your inventory, position, and all blocks you have placed remain exactly as they were. If you were holding a diamond pickaxe in Survival mode and switch to Creative, you still have that pickaxe in your inventory — you just also have access to every block in the creative inventory.
What changes is what you can do. In Survival, you take damage and hunger affects you. In Creative, you do not take damage, you do not get hungry, and you can place or break any block when ready. In Adventure, you can only break blocks with the correct tool, and you cannot place blocks at all unless the block is marked as replaceable. In Spectator, you cannot interact with anything — you can only look and move.
If you switch back to Survival from Creative, you keep all the blocks you built and all the items in your inventory. Nothing is lost.
Changing Gamemode on a Multiplayer Server
On a server, the command works the same way — press T, type /gamemode creative, and press Enter. However, servers often restrict who can use gamemode commands. Most servers only allow operators (players with special permissions) to change gamemode.
If you see "You do not have permission to use this command", you are not an operator on that server. Ask the server owner or an admin to give you operator status, or ask them to change your gamemode for you. On some servers, you cannot change gamemode at all — the server owner has disabled the command for all players.
If you own the server, you can give yourself operator status by typing /op [your username] in the server console (not in the game chat). Then the gamemode command will work for you.
Troubleshooting When the Command Does Not Work
If you type the command and nothing happens, the most common reason is that cheats are not turned on. Go back to the pause menu, click "Open to LAN", make sure "Allow Cheats" is toggled on, and click "Start LAN World" again. Then try the command.
If you see "Unknown command", you may have a typo. The command is /gamemode (one word, no space before the slash). Make sure you typed the mode name correctly: survival, creative, adventure, or spectator. Capitalization does not matter.
On a server, "You do not have permission" means you need operator status. Contact the server owner. If you own the server and cannot find the console, check your server software's documentation — the console is usually a separate window or a web panel depending on how you are hosting.
Frequently Asked Questions
Can I change gamemode without turning on cheats?
No. Gamemode commands only work when cheats are enabled. If you do not want to enable cheats, you must create a new world with cheats turned on from the start.
Does changing gamemode affect my saved progress?
No. Your world, inventory, and all blocks you placed stay exactly the same. You can switch back and forth between gamemodes as many times as you want without losing anything.
What is the difference between Adventure and Survival mode?
In Survival, you can break and place any block. In Adventure, you can only break blocks with the correct tool, and you cannot place blocks unless they are marked as replaceable by the map creator. Adventure is designed for custom maps where the builder wants to control what you can and cannot do.
Can I use gamemode commands on a server I do not own?
Only if the server owner has made you an operator. Most public servers do not allow regular players to use gamemode commands. Ask the owner or an admin to change your gamemode, or ask them to give you operator status.
What happens to my hunger bar when I switch to Creative?
Your hunger bar disappears because you do not get hungry in Creative mode. If you switch back to Survival, the hunger bar returns and your hunger level is restored to where it was before you switched.