[Minecraft] How to Enable Commands (Cheats) | Summary of Setup Procedures for Bedrock/BE and Java Editions [Minecraft Introduction]
"I entered a copied command, but nothing happened" or "When I type characters starting with '/', it just appears as regular chat"... The cause of most of these issues is that the "Commands (Cheats)" for the world are turned off. In this article, I have compiled the procedures for enabling commands (cheats) for both Bedrock/BE and Java editions into one place. All other articles in this series proceed with the assumption that "commands are enabled," so if you get lost, please come back here.
Supported Versions (This is Important)
Bedrock/BE: You can use the procedures in this article with the current version.
-
Java Edition: It is common across all versions that there is a "Allow Cheats" item on the advanced settings screen when creating a new world. The issue is whether you can turn it on "after creation", and this differs by version.
26.2 and later: The pause menu has "World Settings," and you can toggle it on or off at any time later.
26.1.2 and earlier: Since there is no way to turn it on directly later, we use a temporary method using "Open to LAN" as a substitute (details below).
Multiplayer (when joining a server run by someone else): The methods in this article all apply to your own world. If you are joining someone else's server, the situation is different (see "When it doesn't work" below).
What you can do with this article
Enable commands in advance when creating a new world in Bedrock/BE
Enable commands later in an existing world in Bedrock/BE (two patterns: before entering the world and after entering)
Enable commands in advance when creating a new world in Java Edition
Enable commands later in Java Edition (26.2 and later)
Temporarily enable commands using LAN sharing in Java Edition (26.1.2 and earlier)
Verify whether they are enabled by actually typing a command
Troubleshoot the cause when "I thought I turned them on, but they don't work" (including issues on the server side you are participating in)
Enabling in Bedrock/BE
When creating a new world (the simplest way)Press "Create New World"
Press "Cheats" at the bottom left of the screen
Turn the "Cheats" toggle at the very top of the right-hand screen to On
If you turn this on before creation, you won't need to adjust the settings later. If you are creating a new world, this is the simplest method.
Enabling it later in an existing worldIf you forgot to turn it on, or if you are using a world received from someone else, you can change it later. The screen you reach differs depending on whether you are "before entering the world" or "after entering the world."
Pattern 1: Before entering the world (from the pencil icon in the world list)
In the world list, press the pencil icon (edit) for that world. Just like when creating a new one, click the "Cheats" tab at the bottom left, and turn the "Cheats" toggle at the very top to On.
Pattern 2: After entering the world (from the pause menu while playing)
While playing, open "Settings" from the pause menu and select the "Game" tab. The "Cheats" toggle is located further down in this Game tab. (The "Cheats" toggle is quite far down on the Game tab page, so look carefully.)
From the moment you turn it on, achievements will be disabled for that world (because it is treated as a world where cheats can be used). It is recommended to keep a separate world for practicing commands, apart from the world where you are aiming for achievements.
Enabling it in the Java Edition
Enabling it during new creation (simplest)When creating a new world, there is a button in the creation screen that says "Allow Cheats: OFF." Pressing this button switches the display to "Allow Cheats: ON." If you turn it on before creation, you won't need to adjust the settings later. If you are creating a new world, this is the simplest method.
If you forgot to turn it on in an existing world, or if you are using a world received from someone else, turn it on later. Here, the procedure differs depending on the version.
Press Esc while in the world
Open "Settings..."
Open "World Settings" in the top right
Set "Activate Cheats" to "On"
The advantage of this method is that once turned on, the setting is preserved even if you re-enter the world. If it is a test world, you only need to do this once at the beginning, and you will be able to use commands from then on.
26.1.2 and earlier: Temporarily enable via Open to LANIn versions without a "World Settings" screen, there is no way to turn it on directly later, so we use the "Open to LAN" feature as a substitute.
Press Esc while in the world
Open "Open to LAN"
Press the button that says "Allow Cheats: OFF" to switch it to "Allow Cheats: ON" (A port number will be assigned automatically. You can also set it yourself.)
Press "Start LAN World" (It will display "Local game hosted on port [xxxxx]")
This allows you to use commands only during that play session. There are two limitations to this method.
One-time only: The setting is reset once you leave the world, so you must repeat the same steps the next time you play.
Changes made by commands themselves remain: For example, rules changed with gamerule or items obtained with give, the results of the commands are saved in the world as they are. Only the "state of being able to use cheats" disappears.
One extra step: Verify if it is really on by using a command
After changing the settings, it is best to actually type one simple command to check. For both editions, please try the following command.
gamerule
If cheats are on, a list of rules that can be set (such as keepInventory) will be displayed. If a message like "Unknown command" or "You do not have permission" appears, it is still off. Please review the steps above.
When it doesn't work (troubleshooting points)
I can't find the 'Cheats' option in Bedrock/BE: The tab you reach depends on the path you take. From the pencil icon (edit) when creating a new world or in the world list, check the "Cheats" tab; from the "Settings" menu while playing, check the Game tab further down.
I can't find 'World Settings' in Java Edition: It is possible that your version is 26.1.2 or older. Please try "26.1.2 or older: Temporarily enable via LAN".
Achievements stopped working after I enabled them in Bedrock/BE: This is by design. Worlds where cheats are enabled are ineligible for achievements. It is recommended to prepare a separate world for practicing commands, apart from the world where you are aiming for achievements.
I enabled it via LAN, but it doesn't work when I join again: LAN sharing is a one-time setting. You must redo it every time you re-enter the world.
The rule list doesn't appear when I type gamerule: It is possible that cheats are still off, or that there are extra characters (such as full-width spaces) mixed in at the beginning of the command.
I get 'You do not have permission to use cheats' on a friend's server or a distributed server: All the methods mentioned so far apply only to your own world (single player/LAN). If you are joining a server managed by someone else (such as a rented server), the situation is different, and your own settings will not help. You need to have the server administrator set your player name to OP (Operator). The administrator can grant permission by executing op <player name> from the server console or files. If you are the server administrator, perform this action on yourself.
Conclusion
The very first hurdle to using commands is actually not how to write them, but rather this "enable cheats" setting. Once you have finished this, you can freely jump to the articles for the commands you want to know. If you want to learn basic commands one by one, please look for them in Yuzu-Koma's Minecraft Command Dictionary [Table of Contents], and if you are interested in creating contraptions using execute, please search from Minecraft Command Dictionary: execute Edition [Table of Contents].
If it still doesn't work, please let me know your situation in the comments section.
#Minecraft #Minecraft #Commands #MinecraftIntroduction #MinecraftBedrockEdition #MinecraftJavaEdition #MinecraftCheats