Minecraft Cheats: Every Command You Need (Full Guide)
Introduction
This guide shows you how to enable cheats, how to type commands correctly, and which Minecraft cheats are worth using on Java and Bedrock Edition.
Every command below can be copied and pasted. Where Java and Bedrock differ, both versions are shown.
What Are Minecraft Cheats?

Minecraft Cheats doesn’t have “cheat codes” like older games. Instead, cheats are commands typed into the chat window that start with a slash (/). To use them, your world must have cheats enabled, or your account must be a server operator.
Players use Minecraft Cheats to:
- Build faster with
/filland/clone - Test redstone and farms in Creative mode
- Recover items after a bug or accidental death
- Explore seeds and structures quickly
- Have fun with mobs, effects, and weather
How to Enable Cheats in Minecraft

Enable Cheats When Creating a New World
- Click Create New World.
- On Java, open the More tab. On Bedrock, scroll to Cheats.
- Turn on Allow Cheats (Java) or Activate Cheats (Bedrock).
- Create the world.
Enable Cheats in an Existing World
Java Edition
- Press Esc and click Open to LAN.
- Set Allow Cheats: ON.
- Click Start LAN World.
Bedrock Edition (PC, console, mobile):
- Open the world’s Settings.
- Go to Cheats and switch on Activate Cheats.
Enable Cheats on a Server
Ask the owner to make you an operator, or run /op YourName from the server console.
How to Type Minecraft Commands

- Press T on PC (or tap the chat icon on mobile and console).
- Type
/followed by the command. - Press Enter.
Use the Tab key to auto-complete. It fixes most typing errors and shows you valid options for your version.
Understanding Coordinates and Selectors
What Do ~ and ^ Mean?
~ ~ ~means your current position~ ~5 ~means 5 blocks above you~10 ~ ~means 10 blocks in the X direction
Target Selectors
| Selector | Who It Targets |
|---|---|
@s | Yourself |
@p | Nearest player |
@a | All players |
@e | All entities |
@r | Random player |
Example: /give @a bread 10 Gives every player 10 bread.
Game Mode Commands

| Command | What It Does |
|---|---|
/gamemode creative | Unlimited blocks and flying |
/gamemode survival | Normal gameplay |
/gamemode adventure | Limited block breaking, good for maps |
/gamemode spectator | Fly through blocks, invisible to mobs |
/difficulty peaceful | No hostile mobs |
/difficulty hard | Hardest difficulty |
Item Cheats (Give, Clear and Enchant)
| Command | What It Does |
|---|---|
/give @s diamond 64 | Gives 64 diamonds |
/give @s minecraft:golden_apple 16 | Gives 16 golden apples |
/give @s command_block | Gives a command block |
/give @s elytra | Gives an elytra |
/clear @s | Empties your inventory |
/enchant @s sharpness 5 | Enchants the held item |
Item names use lowercase and underscores, for example netherite_ingot.
Teleport and Location Cheats

| Command | What It Does |
|---|---|
/tp @s 100 70 -200 | Teleports you to coordinates |
/tp @s PlayerName | Teleports you to a player |
/setworldspawn | Sets world spawn |
/spawnpoint @s | Sets your personal respawn |
/seed | Shows the world seed |
Locate Structures and Biomes
- Bedrock:
/locate structure village - Java:
/locate structure minecraft:village_plains(press Tab to see all structure names) - Biomes:
/locate biome cherry_grove(in recent versions)
Time and Weather Commands

| Command | What It Does |
|---|---|
/time set day | Sets morning |
/time set noon | Sets midday |
/time set night | Sets night |
/weather clear | Stops rain |
/weather rain | Starts rain |
/weather thunder | Starts a thunderstorm |
Effect and Experience Commands
Java Edition
/effect give @s minecraft:speed 300 2(Speed III for 5 minutes)/effect give @s minecraft:night_vision 999999/effect clear @s/xp add @s 30 levels
Bedrock Edition
/effect @s speed 300 2/effect @s night_vision 999999/effect @s clear/xp 30L @s
Mob and Entity Commands

| Command | What It Does |
|---|---|
/summon minecraft:creeper ~ ~ ~ | Spawns a creeper |
/summon minecraft:villager ~ ~ ~ | Spawns a villager |
/kill @e[type=zombie] | Kills all zombies |
/kill @e[type=item] | Removes dropped items |
Building Commands
| Command | What It Does |
|---|---|
/setblock ~ ~1 ~ diamond_block | Places a single block |
/fill ~ ~ ~ ~5 ~5 ~5 stone | Fills a 6x6x6 area |
/fill ~ ~ ~ ~5 ~5 ~5 air | Clears an area |
/clone x1 y1 z1 x2 y2 z2 x y z | Copies a build |
Tip: Build tools like /fill and /clone have block limits, so split large areas into smaller sections.
Best Gamerules for Survival Players

| Command | What It Does |
|---|---|
/gamerule keepInventory true | Keep items after death |
/gamerule doDaylightCycle false | Freeze time |
/gamerule doMobSpawning false | Stop mob spawning |
/gamerule mobGriefing false | Creepers won’t break blocks |
Some newer Java versions renamed gamerules to snake_case, such as keep_inventory. If a gamerule isn’t recognised, press Tab and copy the name your version shows.
Minecraft Cheats: Java vs Bedrock
| Feature | Java | Bedrock |
|---|---|---|
| Cheats disable achievements | No | Yes |
| Effect command | /effect give | /effect |
| XP command | /xp add @s 30 levels | /xp 30L @s |
| Locate structure | Full structure name | Short names like village |
| Enable cheats | Open to LAN / world creation | World settings toggle |
Common Command Errors and Fixes

- “Unknown or incomplete command”: Check spelling, or you may be using Java syntax on Bedrock (or the other way around).
- Command doesn’t run: Cheats aren’t enabled, or you don’t have operator permission.
- “Incorrect argument”: An item, mob, or block name is wrong. Use Tab to auto-complete.
- Nothing happens on console: Enable cheats in the world settings first.
Safety Tips Before You Use Cheats
- Back up your world before large
/fillor/killcommands. - Test big builds in a separate Creative world.
- Follow server rules on multiplayer servers.
- On Bedrock, remember achievements will be disabled.
FAQs
1. How do I turn on cheats in Minecraft?
Enable Allow Cheats when creating your world. For an existing world, use Open to LAN on Java or the Cheats toggle in Bedrock settings.
2. What are the best Minecraft cheat commands?
/gamemode creative, /give, /tp, /time set day and /gamerule keepInventory true are the most popular.
3. Do Minecraft cheats work on PS5, Xbox, Switch, and mobile?
Yes. Bedrock Edition supports commands on all of them once cheats are enabled for the world.
4. Do cheats disable achievements in Minecraft?
On Bedrock Edition, yes. On Java Edition, no.
5. How do I get a command block?
Run /give @s command_block in a world with cheats enabled and operator permissions.
6. Can I use cheats on a Minecraft server?
Only if you are an operator or the server allows the command. Most public servers restrict them.
7. How do I turn cheats off?
On Bedrock, switch off Activate Cheats in world settings. On Java, reopen the world without Allow Cheats.
8. Why is my Minecraft command not working?
Cheats may be off, you may lack operator permission, or the syntax may differ between Java and Bedrock.
9. How do I keep my inventory after dying?
Run /gamerule keepInventory true (or keep_inventory in newer Java versions).
10. How do I find a village or structure with commands?
Use /locate structure village on Bedrock. On Java, use the full structure name, such as minecraft:village_plains.


3 Comments