⛏️ 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 |
- Commands disable advancements in that world on Bedrock.
- @p = nearest player, @a = all, @s = yourself, @e = all entities.
- Java and Bedrock syntax differ for some commands — check edition notes on each page.
Syntax verified against official Minecraft Wiki command documentation.