- Most Used Commands
- Essential Commands Quick Reference
- Locate
- Teleport to Dimensions
- Status Effects
- Full Iron Armor Set
- Other Popular Commands
- How to Enable Commands
- Target Selectors
- Gamemode Commands
- God Mode and Invincibility Commands
- Give Commands
- Spawn Commands
- Teleport Commands
- Time and Weather Commands
- Cool and Fun Commands
- World Building Commands
- Locate Commands
- Gamerule Commands
- Server and Admin Commands
- Command Blocks
- Frequently Asked Questions
Minecraft commands are text inputs that let players control almost every aspect of their game world. From becoming invincible to spawning any creature, teleporting across dimensions, or building massive structures instantly, commands transform Minecraft into a sandbox with no limits. This guide covers every essential command for both Java and Bedrock editions
Commands work in single-player worlds with cheats enabled, on multiplayer servers where players have operator permissions, and in Realms. Both editions share most commands, but syntax and NBT support differ in key ways outlined throughout this guide.
Most Used Commands
These are the most commonly searched Minecraft commands. Each can be copied and entered directly into chat after enabling cheats.
Essential Commands Quick Reference
Gamemode: /gamemode creative | /gamemode survival
God Mode: /effect give @s resistance 9999 255 true
Teleport: /tp @s 100 64 200
Give Items: /give @s diamond_sword
Spawn Mobs: /summon zombie
Time: /time set day | /time set night
Weather: /weather clear | /weather thunder
Keep Inventory: /gamerule keepInventory true
Find Structures: /locate structure village
Enable Commands: Java: Open to LAN → Allow Cheats | Bedrock: Settings → Game → Activate Cheats
Locate
Teleport to Dimensions
Status Effects
Full Iron Armor Set
Other Popular Commands
How to Enable Commands
Before entering any command, cheats must be enabled for the world. The process differs between Java and Bedrock Edition, and multiplayer servers have their own permission system.
Java Edition
When creating a new world in Java Edition, click “More World Options” and toggle “Allow Cheats: ON” before generating. For existing worlds, open the Pause Menu, select “Open to LAN,” and enable cheats from that screen. This setting resets each time the world is closed.
On multiplayer servers, players need operator status to use most commands. Server owners can grant operator permissions by typing op PlayerName in the server console, or by using the /op command if already an operator.
Bedrock Edition
In Bedrock Edition, toggle “Activate Cheats” when creating a world under the Cheats section. For existing worlds, go to Settings, then Game, and enable “Activate Cheats.” Note that enabling cheats permanently disables achievements for that world on all platforms.

Commands are entered by pressing T to open chat, then typing the command starting with a forward slash (/). Bedrock also supports command auto-completion by pressing Tab after typing the command name.
Press T or / to open the chat and enter commands. Type /help to view all available commands and their syntax.
Target Selectors
Target selectors specify which players or entities a command affects. Understanding selectors is essential before using most commands, as they appear in nearly every command syntax.
| Target | |
|---|---|
| @s | The entity executing the command (yourself) |
| @p | Nearest player |
| @a | All players |
| @e | All entities (mobs, items, players) |
| @r | Random player |
Add arguments in square brackets to filter targets. For example, @e[type=zombie,distance=..10] selects all Zombies within 10 blocks of the command executor. Common filter arguments include type, distance, name, gamemode, and limit.
Gamemode Commands
The /gamemode command switches between Minecraft’s four game modes instantly. Each mode offers different gameplay rules, restrictions, and capabilities.
| Command | Description | |
|---|---|---|
| Survival | /gamemode survival | Standard gameplay with health, hunger, and resource gathering |
| Creative | /gamemode creative | Unlimited blocks, flight, invincibility, and instant block breaking |
| Adventure | /gamemode adventure | Cannot break or place blocks without proper tools or permissions |
| Spectator | /gamemode spectator | Fly through blocks, invisible to mobs, cannot interact with the world |
Bedrock Edition also accepts numeric shortcuts: 0 for Survival, 1 for Creative, and 2 for Adventure. To change another player’s game mode, append their name: /gamemode creative PlayerName.
God Mode and Invincibility Commands
Minecraft does not have a single god mode command, but several commands combined make players effectively invincible. The easiest method is switching to Creative mode, which prevents all damage and grants flight. For Survival mode, stacking status effects is the best approach.
Creative Mode God Mode
Creative mode grants complete invincibility, unlimited flight, and infinite block placement. Players cannot take damage from any source while in Creative mode, making it the simplest form of god mode available. Alternatively, use F3 + F4 to quickly cycle through the modes.
Survival Mode God Mode
For Survival players who want invincibility without leaving the mode, stacking status effects provides the same protection. Use these commands together for maximum effectiveness.
| Command | |
|---|---|
| Maximum damage resistance for 9999 seconds | /effect give @s resistance 9999 255 true |
| Instant health regeneration | /effect give @s regeneration 9999 255 true |
| Immunity to fire and lava damage | /effect give @s fire_resistance 9999 1 true |
| Unlimited underwater breathing | /effect give @s water_breathing 9999 1 true |
| Keep all items when dying | /gamerule keepInventory true |
Add true at the end of /effect commands to hide the status effect particles. This keeps the screen clean while maintaining full invincibility.
Give Commands
The /give command adds any item directly to a player’s inventory. This includes blocks, tools, weapons, armor, and even unobtainable items like Command Blocks and Barrier Blocks.
Java Edition syntax: /give <targets> <item> [count]
Bedrock Edition syntax: /give <player> <itemName> [amount] [data]
| Command | |
|---|---|
| Diamond Sword | /give @s diamond_sword |
| Netherite Pickaxe | /give @s netherite_pickaxe |
| Elytra | /give @s elytra |
| Command Block | /give @s command_block |
| Enchanted Golden Apple | /give @s enchanted_golden_apple 64 |
| Totem of Undying | /give @s totem_of_undying |
| Barrier Block | /give @s barrier |
| Netherite Sword | /give @s netherite_sword |
| 64 Diamonds | /give @s diamond 64 |
To clear items from inventory, use /clear to remove everything, or /clear @s diamond to remove only a specific item type. This works on any player by replacing @s with a player name or selector.
Spawn Commands
The /summon command spawns any entity at a specified location. This includes all mobs, boss mobs, falling blocks, minecarts, armor stands, and items. Coordinates are optional and default to the command executor’s current position.
Syntax: /summon <entity> [x y z] [nbt]
| Command | |
|---|---|
| Zombie | /summon zombie |
| Creeper | /summon creeper |
| Skeleton | /summon skeleton |
| Enderman | /summon enderman |
| Villager | /summon villager |
| Horse | /summon horse |
| Iron Golem | /summon iron_golem |
| Ender Dragon | /summon ender_dragon |
| Wither | /summon wither |
| Giant Zombie | /summon giant |
The Giant Zombie is a 12-block tall version of a Zombie that does not spawn naturally in the game. Use /summon giant to create one anywhere in the world. This entity is only available in Java Edition.
To remove spawned entities, use /kill @e[type=entity_name]. For example, /kill @e[type=zombie] removes all Zombies from the world instantly. Use /kill @e[type=!player] to remove every entity except players.
Weird Mob Spawns (Java Edition)
Java Edition supports NBT data in summon commands, allowing the creation of mob combinations that do not exist naturally. These commands produce unusual results for entertainment or custom game modes.
| Command | |
|---|---|
| Spider Jockey (Skeleton riding Spider) | /summon spider ~ ~ ~ {Passengers:[{id:"skeleton"}]} |
| Chicken Jockey (Zombie riding Chicken) | /summon chicken ~ ~ ~ {Passengers:[{id:"zombie"}]} |
| Charged Creeper (more powerful explosion) | /summon creeper ~ ~ ~ {powered:1b} |
| Giant Zombie (12 blocks tall) | /summon giant |
Teleport Commands
The /tp command (also /teleport) instantly moves players or entities to any location. This includes specific coordinates, other players, or even different dimensions. Mastering teleportation saves significant travel time.
Basic Teleport Syntax
Java Edition: /teleport [targets] <destination> or /teleport [targets] <x y z>
Bedrock Edition: /tp [victim: target] <destination: x y z>
Relative coordinates using the tilde (~) symbol teleport relative to current position. For example, /tp @s ~ ~10 ~ moves the player 10 blocks upward without changing their X or Z position.
Teleporting to Other Dimensions
In Java Edition, the /execute command combined with /tp allows teleporting to different dimensions. These commands move the player to the target dimension at their current coordinates.
| Command (Java Edition) | |
|---|---|
| The Nether | /execute in minecraft:the_nether run tp @s ~ ~ ~ |
| The End | /execute in minecraft:the_end run tp @s ~ ~ ~ |
| Overworld | /execute in minecraft:overworld run tp @s ~ ~ ~ |
Teleporting to Structures and Biomes
To teleport to specific structures or biomes, first use the /locate command to find the nearest coordinates, then teleport to those coordinates. In Java Edition, clicking the coordinates displayed in chat automatically fills in the teleport command.
| Step 1: Locate | Step 2: Teleport | |
|---|---|---|
| Village | /locate structure village | /tp @s [coords] |
| Stronghold | /locate structure stronghold | /tp @s [coords] |
| Woodland Mansion | /locate structure mansion | /tp @s [coords] |
| Ancient City | /locate structure ancient_city | /tp @s [coords] |
| Desert Biome | /locate biome desert | /tp @s [coords] |
| Jungle Biome | /locate biome jungle | /tp @s [coords] |
Time and Weather Commands
The /time and /weather commands give full control over the game’s environmental conditions. These commands work instantly and can be locked permanently using gamerules.
Time Commands
Time is measured in ticks, with 24,000 ticks equaling one full Minecraft day. Named time values are available for convenience instead of memorizing tick numbers.
| Command | Ticks | |
|---|---|---|
| Sunrise | /time set sunrise | 23000 |
| Day | /time set day | 1000 |
| Noon | /time set noon | 6000 |
| Sunset | /time set sunset | 12000 |
| Night | /time set night | 13000 |
| Midnight | /time set midnight | 18000 |
To permanently stop the day/night cycle, use /gamerule doDaylightCycle false. This freezes time at its current position until the gamerule is re-enabled.
Weather Commands
The /weather command controls rain, snow, and thunderstorms. An optional duration in seconds can be added to specify how long the weather lasts.
| Command | |
|---|---|
| Clear skies | /weather clear |
| Rain | /weather rain |
| Thunderstorm | /weather thunder |
To permanently disable weather changes, use /gamerule doWeatherCycle false after setting the desired weather. This locks weather at the current state indefinitely.
Cool and Fun Commands
Beyond practical uses, Minecraft commands unlock creative and chaotic possibilities. These commands are perfect for experimenting, creating dramatic moments, or causing large-scale destruction in controlled environments.
Explosive Commands
| Command | |
|---|---|
| Strike lightning at the player's current location | /summon lightning_bolt |
| Spawn primed TNT that explodes immediately | /summon tnt |
| Creates a 10x10x10 cube of TNT | /fill ~ ~ ~ ~10 ~10 ~10 tnt |
| Spawns an Ender Dragon anywhere in the world | /summon ender_dragon |
| Spawns a Wither boss at the current location | /summon wither |
| Spawns a firework rocket | /summon firework_rocket ~ ~ ~ |
Spawning a Wither or Ender Dragon in a built area will cause massive destruction. Use these commands in open or expendable areas only.
Superpower Commands
| Command | |
|---|---|
| Super speed movement | /effect give @s speed 9999 5 true |
| Massive jump height | /effect give @s jump_boost 9999 5 true |
| One-hit kill on all mobs | /effect give @s strength 9999 255 true |
| See perfectly in complete darkness | /effect give @s night_vision 9999 1 true |
| Become invisible to mobs and players | /effect give @s invisibility 9999 1 true |
World Building Commands
World building commands allow instant construction and modification of large areas. These are among the most powerful commands available and can affect thousands of blocks simultaneously.
Fill Command
The /fill command fills a region between two coordinates with a specified block type. This is essential for quickly building walls, floors, rooms, or clearing large areas.
Syntax: /fill <from> <to> <block> [mode]
| Effect | |
|---|---|
| replace | Replaces all blocks including air (default behavior) |
| destroy | Replaces blocks and drops them as items |
| keep | Only replaces air blocks, preserves existing blocks |
| hollow | Creates outer shell and fills inside with air |
| outline | Creates outer shell and leaves inside unchanged |
To clear an area, use /fill <from> <to> air. The maximum fill size is 32,768 blocks in Java Edition. Exceeding this limit produces an error and no blocks are placed.
Clone Command
The /clone command copies blocks from one region to another. This is ideal for duplicating builds or moving structures without rebuilding them manually.
Syntax: /clone <begin> <end> <destination> [maskMode] [cloneMode]
Mask modes include replace (copy all blocks), masked (copy only non-air blocks), and filtered (copy specific block types). Clone modes include normal, force (allows overlapping regions), and move (clears the original area after copying).
Setblock Command
The /setblock command places a single block at precise coordinates. This is useful for exact placement or placing blocks in hard-to-reach locations.
Syntax: /setblock <x y z> <block> [mode]
Locate Commands
The /locate command finds the nearest structure or biome and displays its coordinates in chat. In Java Edition, clicking the coordinates automatically fills in a teleport command for easy navigation.
Locatable Structures
| Command | |
|---|---|
| Village | /locate structure village |
| Stronghold | /locate structure stronghold |
| Woodland Mansion | /locate structure mansion |
| Ocean Monument | /locate structure monument |
| Ancient City | /locate structure ancient_city |
| Nether Fortress | /locate structure fortress |
| Bastion Remnant | /locate structure bastion_remnant |
| End City | /locate structure end_city |
| Trial Chambers | /locate structure trial_chambers |
Locating Biomes
Use /locate biome <biome_name> to find specific biomes. Common searches include mushroom_fields, jungle, desert, cherry_grove, and deep_dark. The command returns the nearest matching biome coordinates.
Gamerule Commands
Gamerules control fundamental world mechanics and persist across sessions. Most gamerules accept true or false values, though some accept numbers. Changes apply immediately upon entry.
Syntax: /gamerule <rule> [value]
| Effect | Default | |
|---|---|---|
| keepInventory | Keep items and XP when dying | false |
| mobGriefing | Mobs can modify blocks (Creeper explosions, Endermen picking up blocks) | true |
| doDaylightCycle | Day/night cycle progresses over time | true |
| doWeatherCycle | Weather changes over time | true |
| doMobSpawning | Mobs spawn naturally in the world | true |
| doInsomnia | Phantoms spawn when players have not slept | true |
| doFireTick | Fire spreads and burns out over time | true |
| pvp | Players can damage each other | true |
| naturalRegeneration | Health regenerates when hunger is full | true |
| randomTickSpeed | Speed of crop growth and block updates (number value) | 3 |
| tntExplodes | TNT explodes when ignited | true |
| showCoordinates | Display coordinates on screen (Bedrock Edition only) | false |
Set /gamerule randomTickSpeed 100 to dramatically speed up crop growth. Setting it to 0 stops all crop growth and leaf decay entirely.
Server and Admin Commands
Server commands manage multiplayer servers and player permissions. Most require operator status or direct server console access to execute.
| Command | |
|---|---|
| Grant operator permissions to a player | /op PlayerName |
| Remove operator permissions from a player | /deop PlayerName |
| Remove a player from the server | /kick PlayerName [reason] |
| Permanently ban a player from the server | /ban PlayerName [reason] |
| Unban a previously banned player | /pardon PlayerName |
| Add a player to the server whitelist | /whitelist add PlayerName |
| Enable the whitelist to restrict server access | /whitelist on |
| Show all currently online players | /list |
| Broadcast a message to all players on the server | /say message |
Command Blocks
Command Blocks execute commands automatically when powered by Redstone. They cannot be obtained through normal gameplay and must be given using the /give command. Three types exist, each with different activation behaviors.
| Command | Behavior | |
|---|---|---|
| Impulse (Orange) | /give @s command_block | Runs once when activated by Redstone signal |
| Chain (Green) | /give @s chain_command_block | Runs when the Command Block pointing to it executes |
| Repeating (Purple) | /give @s repeating_command_block | Runs every game tick while powered by Redstone |
To enable Command Blocks on a Java Edition server, set enable-command-block=true in the server.properties file. In Bedrock Edition, use /gamerule commandblocksenabled true to enable them from within the game.












Great ⲣost, I really likeɗ reading it.
There are some solid points aboսt how things
work.
From my experience that simple solutions usually work
bеtter.
Thanks forr sharing, good read.