Guides

Minecraft Commands for People Who Have Never Used Them

Cheats have to be enabled for the world before any of this works

By TheGameExtras Team Updated 1 min read
A blocky character beside a wooden house in a green voxel landscape, with floating terminal windows, a slash key and a white keyboard on the grass.

Minecraft commands look intimidating because of the symbols. There are only a few you need, and the symbols mean something simple.

Verified

Minecraft calls them commands rather than cheats, and they are typed into the chat window. They are off by default in survival worlds, which is the first thing to sort out.

Turning them on

When creating a world, switch Allow Cheats to on. For a world that already exists, open it to LAN from the pause menu and enable cheats there — that works for the current session without changing the world permanently.

Press T to open chat, or / to open it with the slash already typed.

The ones worth knowing

/gamemode creative — switches to Creative: flight, no damage, unlimited blocks. /gamemode survival switches back.

/time set day — skips to morning. There is no waiting and no bed required.

/weather clear — stops rain or a thunderstorm.

/give @p diamond 64 — gives 64 diamonds to the nearest player.

/gamerule keepInventory true — you keep your items when you die. Arguably the single most quality-of-life change in the game.

/effect give @p night_vision 999999 — night vision for a very long time. Caving without torches everywhere.

What @p actually means

Those symbols are target selectors, and there are only four worth knowing:

  • @p — the nearest player (usually you)
  • @a — all players
  • @s — whoever ran the command
  • @e — every entity, including mobs

Once those make sense, most commands you find online stop looking cryptic.

The trade-off

Enabling cheats in a world disables achievements for it, and that flag stays with the world permanently — turning cheats back off does not restore them. If you are working towards achievements, use a separate world.

Try it with our cheat tools

New guides and tools, by email

Email me when TheGameExtras publishes new cheat guides and tools. I can unsubscribe with one click at any time. We send a confirmation link first. How we handle your address.

Read next