TCLauncher

TCLauncher › All guides

Minecraft commands: the basic commands for beginners

How to enable cheats, the main commands (gamemode, tp, give, time, weather, gamerule), the @p @a @s selectors and Tab completion. A cheat sheet for single player and servers.

Updated:

Minecraft commands: the basic commands for beginners — TCLauncher

Commands are typed in chat (T or /) and start with a slash. They change the game mode, time and weather, teleport you and give items.

How to enable commands

  • When creating a world — turn on “Allow Cheats”.
  • In an existing world — Esc → “Open to LAN” → “Allow Cheats: ON” → “Start LAN World”. It lasts until you leave the world.
  • On a server — you need operator rights: op Name in the server console.

Main commands

  • /gamemode creative — creative mode; also survival, adventure, spectator.
  • /time set day — day; night — night.
  • /weather clear — clear weather.
  • /tp Name — teleport to a player; /tp 100 70 -200 — to coordinates.
  • /give @s minecraft:diamond 64 — give an item.
  • /gamerule keepInventory true — keep items after death. See game rules.
  • /difficulty peaceful — no hostile mobs.
  • /locate structure — find a structure.
  • /spawnpoint — set your respawn point where you stand.
  • /seed — the world's seed. See seeds.

Selectors

  • @s — yourself, @p — the nearest player, @a — all players, @r — a random player, @e — all entities.
  • Filters in brackets: @e[type=zombie,distance=..20] — zombies within 20 blocks.

Tips

  • Tab completes commands, names and item IDs.
  • ↑ in chat repeats the previous command.
  • Long and repeated commands are handy in command blocks — see command blocks.
  • Mods add their own commands — Tab shows them too.

Download TCLauncher — separate creative instances for experiments, without touching your main world.

FAQ

How do I enable commands in an existing world?

Esc → “Open to LAN” → “Allow Cheats: ON”. It lasts until you leave the world.

How do I keep my items after death?

With the command /gamerule keepInventory true.

What do @p, @a, @s mean?

@p is the nearest player, @a is all players, @s is yourself.

Download TCLauncher