The 30 Essential Minecraft Commands - Ultimate Guide
List of the most useful Minecraft commands: /tp, /give, /gamemode, /time, and more. Tutorial with practical examples for beginners and experts.
Introduction
Minecraft commands are powerful tools that allow players to modify their world, manage players, and automate certain tasks. This guide covers the most useful commands that every player should know.
Note: To use commands, you must have cheats enabled (creative mode) or be an operator on a server.
📍 Teleportation Commands
/tp or /teleport
Teleports a player to coordinates or another player.
/tp <player> <x> <y> <z>
/tp <source_player> <destination_player>
Examples:
/tp Steve 100 64 -200— Teleports Steve to the specified coordinates/tp @s @p— Teleports to the nearest player/tp @a 0 100 0— Teleports all players to spawn
/spawnpoint
Sets a player's spawn point.
/spawnpoint <player> <x> <y> <z>
🎁 Inventory Commands
/give
Gives items to a player.
/give <player> <item> [quantity]
Examples:
/give @s diamond 64— Gives 64 diamonds to yourself/give @a golden_apple 16— Gives 16 golden apples to everyone/give Steve netherite_sword 1— Gives a netherite sword to Steve
/clear
Removes items from a player's inventory.
/clear <player> [item] [quantity]
Examples:
/clear @s— Empties the entire inventory/clear @s dirt— Removes all dirt from the inventory
🌤️ Time and Weather Commands
/time
Changes the game time.
/time set <value>
/time add <value>
| Value | Corresponding Time |
|---|---|
day or 1000 |
Morning |
noon or 6000 |
Noon |
night or 13000 |
Night |
midnight or 18000 |
Midnight |
/weather
Controls the weather.
/weather <clear|rain|thunder> [duration]
Examples:
/weather clear— Sunny weather/weather rain 6000— Rain for 5 minutes/weather thunder— Thunderstorm
🎮 Game Mode Commands
/gamemode
Changes a player's game mode.
/gamemode <mode> [player]
| Mode | Alias | Description |
|---|---|---|
survival |
0 |
Survival mode |
creative |
1 |
Creative mode |
adventure |
2 |
Adventure mode |
spectator |
3 |
Spectator mode |
Example: /gamemode creative @s
/difficulty
Sets the game difficulty.
/difficulty <peaceful|easy|normal|hard>
⚙️ Game Rule Commands
/gamerule
Modifies the world rules.
/gamerule <rule> <value>
Most Useful Rules:
| Rule | Values | Description |
|---|---|---|
keepInventory |
true/false | Keep inventory on death |
doDaylightCycle |
true/false | Day/night cycle |
doMobSpawning |
true/false | Mob spawning |
doWeatherCycle |
true/false | Weather cycle |
mobGriefing |
true/false | Mobs can damage blocks |
doFireTick |
true/false | Fire spread |
fallDamage |
true/false | Fall damage |
showDeathMessages |
true/false | Death messages |
Example: /gamerule keepInventory true
🎯 Target Selectors
Selectors allow targeting specific entities.
| Selector | Description |
|---|---|
@p |
Nearest player |
@a |
All players |
@r |
Random player |
@e |
All entities |
@s |
Self (the executor) |
Selection Arguments
@e[type=zombie,distance=..10]
@a[gamemode=survival]
@e[type=item,nbt={Item:{id:"minecraft:diamond"}}]
💫 Effect Commands
/effect
Applies or removes potion effects.
/effect give <player> <effect> [duration] [amplifier]
/effect clear <player> [effect]
Popular Effects:
speed— Speedstrength— Strengthregeneration— Regenerationinvisibility— Invisibilitynight_vision— Night visionjump_boost— Jump boostfire_resistance— Fire resistance
Examples:
/effect give @s speed 300 2— Speed III for 5 minutes/effect clear @s— Removes all effects
🔧 Administration Commands
/kill
Kills entities.
/kill <target>
Examples:
/kill @e[type=zombie]— Kills all zombies/kill @e[type=!player]— Kills everything except players
/summon
Spawns an entity.
/summon <entity> [x] [y] [z] [nbt]
Examples:
/summon minecraft:lightning_bolt— Summons a lightning bolt/summon minecraft:zombie ~ ~ ~— Summons a zombie at your position
/fill
Fills an area with blocks.
/fill <x1> <y1> <z1> <x2> <y2> <z2> <block> [mode]
Modes: destroy, hollow, keep, outline, replace
Example: /fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 stone
/setblock
Places a block at a position.
/setblock <x> <y> <z> <block>
💬 Communication Commands
/say
Sends a message to all players.
/say <message>
/tell or /msg
Sends a private message.
/tell <player> <message>
/title
Displays a title on the screen.
/title <player> title {"text":"Title"}
/title <player> subtitle {"text":"Subtitle"}
🏆 Experience Commands
/xp or /experience
Manages players' experience.
/xp add <player> <amount> [points|levels]
/xp set <player> <amount> [points|levels]
Examples:
/xp add @s 30 levels— Adds 30 levels/xp set @s 0 points— Resets XP points to zero
🗺️ Location Commands
/locate
Finds the nearest structure.
/locate structure <structure>
Common Structures:
village— Villagestronghold— Strongholdfortress— Nether fortressmonument— Ocean monumentmansion— Mansionmineshaft— Abandoned mine
/locatebiome
Finds the nearest biome.
/locatebiome <biome>
📝 Quick Reference
| Action | Command |
|---|---|
| Creative mode | /gamemode creative |
| Teleportation | /tp @s <x> <y> <z> |
| Give items | /give @s <item> <qty> |
| Change time | /time set day |
| Clear weather | /weather clear |
| Keep inventory | /gamerule keepInventory true |
| Kill mobs | /kill @e[type=!player] |
Conclusion
These commands form the essential foundation for any player looking to customize their Minecraft experience. Feel free to experiment and combine these commands to create unique situations in your world!
Tip: Use the Tab key for command and argument auto-completion.