How to use commands in Minecraft

Minecraft
Minecraft's commands give players unparalleled control over their worlds (Image via Mojang)

Commands, or cheats as they're called in Bedrock, are some of the most powerful things that Minecraft players have access to when it comes to controlling the game. Players can use commands to locate rare structures, change the time of day, and even kill all rendered mobs. This power makes knowing how to use commands essential to those wanting to have the most fun with the game.

Everything you need to know about enabling commands for use on both Bedrock and Java Editions of the game can be found detailed below.


How to use commands in Minecraft Java

1) Launch Java

Java's main menu (Image via Mojang)
Java's main menu (Image via Mojang)

The first thing you'll need to do when messing around with Minecraft Java Edition commands is open the title's official launcher. Make sure you have Java Edition selected, and then start the game.

You can also use an alternative Minecraft launcher if your main survival world is modded. Just keep in mind that some commands, like /tick, are quite recent and might not be available in older versions.


2) Create a world with cheats enabled

Commands are off by default in Java (Image via Mojang)
Commands are off by default in Java (Image via Mojang)

Once you've reached Java's main menu, hit the "Singleplayer" button to open your list of worlds. You'll need to go to create a new world and switch the "Allow Commands" toggle to on.

Thankfully, commands can still be used in worlds where they weren't initially enabled. To use them, load into the game and then pause it. There will be an "Open to LAN" option that also allows you to toggle commands on before starting the server.


3) Open chat

All commands are typed in chat (Image via Mojang)
All commands are typed in chat (Image via Mojang)

All Minecraft commands are typed out using the game's normal chat menu. That means you'll need to open it using the default keybind of "T" before you can use any. You'll then need to type "/", which will indicate to the game that you're giving it a command.

Alternatively, you can hit the "/" without the chat window open, which will automatically open chat and type the character. This turns two button presses into one, which can save a little time if you need to execute many commands back to back.


4) Type a command

A command will appear in red if it will fail to execute (Image via Mojang)
A command will appear in red if it will fail to execute (Image via Mojang)

From here, all that's left is to actually execute a command. A small collection of commonly used and helpful commands can be found detailed below, along with examples of proper in-game syntax.

Command nameEffectIn-game syntax example
TeleportInstantly move a player to the designated location./tp 100 100 100
LocateCan give precise coordinates to a designated biome, POI, or structure./locate structure minecraft:ancient_city
TickCan control, or even stop, the passing of in-game ticks./tick freeze
EffectGives or removes a status effect//effect give PlayerName minecraft:night_vision infinite 1 true

As you type out the command, a preview should be visible above the chat window. If this preview isn't visible, it's because the command has either been typed wrong or cheats haven't been properly enabled on the world.


How to use commands in Minecraft Bedrock

1) Start up Bedrock

Bedrock's main menu (Image via Mojang)
Bedrock's main menu (Image via Mojang)

The first thing you'll need to do to use commands on Bedrock is similar to Java: open Minecraft's official launcher, select the right version of the game, and hit the "Play" button.


2) Create a new world or edit an old one

The "Cheats" toggle in Bedrock (Image via Mojang)
The "Cheats" toggle in Bedrock (Image via Mojang)

Once the game is open, hit the "Play" button on the main menu. You can either create a new world with cheats enabled or create a new one. To add them to an existing world, hit the pencil icon to navigate to the world's Minecraft settings menus. Scroll down until you see the "Activate Cheats" toggle and flip them on.

There's a similar toggle found within the settings to make a new Minecraft world. Under the "Create" button, there are several different world settings tabs. One of them is labeled "Cheats." Navigate to this tab and use the toggle at the top to switch commands from off to on.

Keep in mind that enabling commands on a survival world will make it impossible to get future Minecraft achievements since they're disabled on any world with cheats.


3) Try out some commands

Almost anything is possible with commands (Image via Mojang)
Almost anything is possible with commands (Image via Mojang)

Now that you've either made a world with cheats enabled or added commands to an older world, it's time to load into the game and get to typing. Similar to Java Edition, commands are typed out and executed using the chat window. You can open this with the default hotkey of "T" or use the forward slash button to indicate that you're going to type a command.

The process from this point is identical to Java: simply type out your command using the preview above it to help with syntax and hit enter to execute it.

One of the bigger features of Minecraft Bedrock and Java without parity is commands. There are many commands, like the /tick command mentioned earlier, that are version exclusive. Thankfully, this information is listed on the game's wiki.

Quick Links

Edited by Rachel Syiemlieh
Sportskeeda logo
Close menu
WWE
WWE
NBA
NBA
NFL
NFL
MMA
MMA
Tennis
Tennis
NHL
NHL
Golf
Golf
MLB
MLB
Soccer
Soccer
F1
F1
WNBA
WNBA
More
More
bell-icon Manage notifications