🎮 Command database
Minecraft Commands
Official Minecraft slash commands for Java and Bedrock — gamemode, give, teleport, weather, and more. Each page includes syntax, examples, and the /give shortcut where relevant.
14 commands · verified 2026-06-10
How to enter commands
- Singleplayer: Enable Allow Cheats when creating the world, or Esc → Open to LAN → Allow Cheats ON.
- Server: You need operator (OP) status — run op <username> from the server console.
- All: Press T or / to open chat, type the command, press Enter.
All commands
| Command | Syntax | Category |
|---|---|---|
| Gamemode Creative | /gamemode creative | Gamemode |
| Gamemode Survival | /gamemode survival | Gamemode |
| Give Diamond | /give @s diamond 64 | Items |
| /give Command — Full Syntax | /give <target> <item> [count] | Items |
| Teleport | /tp @s <x> <y> <z> | Movement |
| Set Time to Day | /time set day | World |
| Clear Weather | /weather clear | World |
| Keep Inventory Gamerule | /gamerule keepInventory true | Gamerules |
| Peaceful Difficulty | /difficulty peaceful | World |
| Speed Effect | /effect give @s minecraft:speed 60 1 | Effects |
| Enchant | /enchant @s sharpness 5 | Items |
| Locate Structure | /locate structure minecraft:village | World |
| Summon Mob | /summon minecraft:zombie | Entities |
| Set World Spawn | /setworldspawn | World |
How to use game commands safely
Console commands are built-in features — enabling cheats in single-player, using slash commands in a world you host, or running operator commands on a server you administer. They are not hacks, trainers, or third-party software. Using commands in competitive online multiplayer can still result in bans, so stick to single-player, LAN, or your own server.
Each command below includes exact syntax and copy-ready examples. Java and Bedrock editions sometimes use different syntax — check the edition note on each page before pasting a command.
Common commands players search for
The most-used commands change gamemode, give items, teleport players, set weather or time, and summon entities. Use the command table above to find the exact syntax for each, then pair with ouritem ID database for spawn commands andclassic cheat codes for story-mode titles.
When commands change
Command syntax can change between major game versions. This hub was verified on 2026-06-10. Check back after updates — that is when commands may be added, removed, or renamed.
Share with a friend