Home  ›  Cheat Codes  ›  Minecraft

Minecraft Commands & Cheats

Essential Minecraft commands and cheats for Java and Bedrock. Gamemodes, teleporting, enchanting, summoning — everything a player needs.

JavaBedrock150+ commands

Click any code to copy it.

/gamemode creativeSwitch to creative mode
/gamemode survivalSwitch to survival mode
/give @p diamond_sword 1Get a diamond sword
/tp @p 100 65 100Teleport to coordinates
/time set daySet time to day
/weather clearClear weather
/enchant @p sharpness 5Sharpness V enchant
/summon creeperSummon a creeper
/locate villageFind nearest village
/effect give @p speed 60 1Speed effect for 60s
/xp add @p 30 levelsAdd 30 XP levels
/kill @e[type=!player]Remove all mobs

Copied!
Share these cheats:
WhatsApp
Facebook
X
Copy link

How to enable cheats

New world: turn on ‘Allow Cheats’ (Bedrock) or choose Creative / enable cheats (Java) at world creation. Existing world: Java — open to LAN with cheats enabled; Bedrock — enable cheats in world settings (this disables achievements).

Open chat with T (or /) and type the command.

Most useful commands

Minecraft Commands FAQs

Do cheats disable achievements in Minecraft?

On Bedrock, enabling cheats in a world permanently disables achievements for that world. On Java, achievements (advancements) still work with cheats on.

What’s the difference between Java and Bedrock commands?

Most basic commands are identical, but selectors, NBT data, and some syntax differ. The commands on this page work on both unless noted.

How do I teleport another player?

Use /tp [player] [target] — e.g. /tp Steve Alex teleports Steve to Alex. Coordinates work too: /tp Steve 100 65 100.

Why does my command say ‘unknown’?

Cheats aren’t enabled in your world, you’re on a server without permission, or there’s a typo. Check spelling and permissions first.

More cheat codes