Skip to main content
MC COMMANDS logoMC COMMANDS
PRACTICAL PLAYBOOK

The Best Minecraft Commands Guide.

Skip endless raw lists. This curated playbook organizes Minecraft's most impactful commands into five functional disciplines: Survival optimization, Creative world building, Command Block mechanics, Adventure map design, and Dedicated Server administration.

PILLAR 1

Survival World Essentials & Quality of Life

Universal (Java & Bedrock)

Survival games should be challenging, not frustrating. These core commands eliminate tedious setbacks like lost inventories in lava, finding distant biomes, and stuck players.

Keep Inventory on Death

Gamerule
/gamerule keepInventory true

Prevents your gear, armor, and inventory items from scattering when dying to mobs or environmental hazards.

Locate Structures & Biomes

Exploration
/locate structure minecraft:ancient_city

Prints coordinates to the closest target structure in chat with a clickable link to teleport directly there.

Set Base Respawns

Spawnpoint
/spawnpoint @s ~ ~ ~

Sets your exact respawn coordinate anchor without needing a bed or waiting until nighttime.

Clear Storms & Rain

Weather
/weather clear 100000

Clears rainfall and thunderstorms for the specified duration (in seconds), restoring clear skies.

PILLAR 2

Creative Building, Landscaping & Terraforming

Building megastructures block-by-block takes hundreds of hours. These commands act as an in-game architectural toolset.

Mass Block Placement

/fill
/fill ~ ~ ~ ~30 ~10 ~ stone_bricks

Instantly builds massive walls or foundations. Use /fill with outline or hollow to generate rooms.

Duplicate Buildings

/clone
/clone 10 64 10 25 80 25 50 64 50 replace normal

Copies a finished house, ship, or redstone module to a new location. Remember the minimum coordinate anchor rule!

Freeze Game Ticks

Java 1.20.3+
/tick freeze

Freezes entity movement, fluid flow, and mob AI while allowing creative players to move freely and build without disturbance.

Targeted Replacement

Filter Mode
/fill ~-15 ~-5 ~-15 ~15 ~5 ~15 moss_block replace grass_block

Palette swapping tool: re-textures existing blocks in an area without destroying structures or digging holes.

PILLAR 3

Command Block Automation & Redstone Logic

Advanced Logic

Command blocks allow technical creators to build custom game mechanics, automated checkpoints, and interactive dungeon puzzles.

Conditional Execution (/execute)

/execute
/execute as @a at @s if block ~ ~-1 ~ diamond_block run effect give @s speed 2 1

Runs checks across players: if a player stands on a diamond block, grants them Speed II immediately.

Player Death Tracker

/scoreboard
/scoreboard objectives add Deaths deathCount "Total Deaths"

Creates an objective tracking player fatalities automatically, displayable on player tabs or sidebar HUDs.

Screen Title Announcements

/title
/title @a title {"text":"BOSS ENCOUNTER","color":"dark_red","bold":true}

Displays dramatic cinematic banners in the center of players' screens during custom events.

Silent Command Output

Cleaner Chat
/gamerule commandBlockOutput false

Prevents rapid Repeating Command Blocks from spamming server logs and chat windows with execution confirmation messages.

PILLAR 4

Adventure Maps, Custom RPGs & Minigames

Story & Minigame Creation

Designers of narrative adventure maps rely on strict game modes, formatted dialogue, custom tags, and boss health bars.

Lock World Interaction

Adventure Mode
/defaultgamemode adventure

Ensures new players joining the map cannot break walls, dismantle puzzles, or grief decorative structures.

Custom Quest Dialogue

/tellraw
/tellraw @a [{"text":"[King] ","color":"gold"},{"text":"The dungeon gates are now open!","color":"white"}]

Sends formatted, colored JSON chat messages without showing the executor's name tag.

Player Class Tags

/tag
/tag @p add class_archer

Attaches persistent metadata tags to players or entities, allowing selectors to filter by class: @a[tag=class_archer].

Custom Boss Health Bar

/bossbar
/bossbar add dungeon_gate "Gate Defense Health"

Creates an RPG progress bar across the top of the screen that tracks objective health or wave timers.

PILLAR 5

Multiplayer Server Administration & Security

Server Operators

Running a multiplayer community requires strict moderation controls, data preservation, and griefing prevention measures.

Prevent Creeper & Enderman Griefing

Gamerule
/gamerule mobGriefing false

Prevents Creepers and Ghasts from destroying blocks when exploding, and stops Endermen from picking up landscape blocks.

Enforce Private Access

Security
/whitelist on

Locks the server so only explicitly approved players (added via /whitelist add <username>) can join.

Emergency Flush Save

Data Safety
/save-all flush

Forces all chunk buffers and player inventory changes immediately to disk before reboots or maintenance.

Stop Fire Spreading

Fire Safety
/gamerule doFireTick false

Allows builders to use decorative fireplaces and lava features without fire jumping to adjacent wooden roofs.

COMMAND DIRECTORY

Browse all cheat commands.

COMMAND DIRECTORY

Search and filter commands.

Items & InventoryUniversalJava 1.21.x • Bedrock 1.21.x

Gives an item to one or more players, with optional counts, metadata, and components.

Java Edition/give <targets> <item>[<components>] [<count>]
Bedrock Edition/give <player> <itemName> [amount] [data] [components]
Player ManagementUniversalJava 1.21.x • Bedrock 1.21.x

Teleports entities (players, mobs, etc.) to a specific coordinate or destination entity.

/tp <targets> <destination> | /tp <targets> <x> <y> <z> [<yRot> <xRot>]
Player ManagementUniversalJava 1.21.x • Bedrock 1.21.x

Changes the game mode of a player (Survival, Creative, Adventure, or Spectator).

/gamemode <mode> [<target>]
Entities & SpawningUniversalJava 1.21.x • Bedrock 1.21.x

Spawns a specified entity (mob, projectile, item frame, etc.) at coordinates.

Java Edition/summon <entity> [<pos>] [<nbt>]
Bedrock Edition/summon <entityType> [<spawnPos>] [<spawnEvent>] [<nameTag>]
World & EnvironmentUniversalJava 1.21.x • Bedrock 1.21.x

Sets or checks game rules (e.g. keepInventory, mobGriefing, doDaylightCycle).

/gamerule <rule> [<value>]
Player ManagementUniversalJava 1.21.x • Bedrock 1.21.x

Applies or removes status effects (speed, strength, poison, etc.) on entities.

Java Edition/effect give <targets> <effect> [<seconds>] [<amplifier>] [<hideParticles>] | /effect clear <targets> [<effect>]
Bedrock Edition/effect <player> <effect> [seconds] [amplifier] [hideParticles: Boolean] | /effect <player> clear
Advanced & DeveloperUniversalJava 1.21.x • Bedrock 1.21.x

Executes another command on behalf of one or more entities with conditional filters.

Java Edition/execute <subcommands...> run <command>
Bedrock Edition/execute <subcommands...> run <command>
World & EnvironmentUniversalJava 1.21.x • Bedrock 1.21.x

Finds the nearest structure, biome, or point of interest (POI) and prints coordinates in chat.

Java Edition/locate structure <structureID> | /locate biome <biomeID> | /locate poi <poiID>
Bedrock Edition/locate structure <structureType> | /locate biome <biome>
World & EnvironmentUniversalJava 1.21.x • Bedrock 1.21.x

Fills all or parts of a specified region with a specific block type.

Java Edition/fill <from> <to> <block>[<states>] [destroy|hollow|keep|outline|replace] [<filter>]
Bedrock Edition/fill <from> <to> <tileName> [tileData|blockStates] [replace|destroy|hollow|keep|outline] [<replaceTileName>]
World & EnvironmentUniversalJava 1.21.x • Bedrock 1.21.x

Changes a single block at specified coordinates to a new block type, with optional block state properties and replacement modes.

Java Edition/setblock <pos> <block>[<states>] [destroy|keep|replace]
Bedrock Edition/setblock <position> <tileName> [tileData|blockStates] [replace|destroy|keep]
World & EnvironmentUniversalJava 1.21.x • Bedrock 1.21.x

Duplicates or moves all blocks from a source bounding box to a destination coordinate, supporting masking filters and overlap modes.

Java Edition/clone <begin> <end> <destination> [filtered|masked|replace] [force|move|normal] [<filter>]
Bedrock Edition/clone <begin> <end> <destination> [maskMode] [cloneMode] [tileName] [tileData]
Advanced & DeveloperJavaJava 1.21.x

Inspects, modifies, merges, or removes NBT data on block entities, non-player entities, and persistent command storage.

Java Edition/data get (block|entity|storage) ... | /data merge (block|entity|storage) ... | /data modify (block|entity|storage) ... | /data remove (block|entity|storage) ...
Advanced & DeveloperUniversalJava 1.21.x • Bedrock 1.21.x

Tracks, modifies, and displays custom objectives, player scores, timers, and statistics for game logic, economy, and leaderboard systems.

Java Edition/scoreboard objectives (add|remove|list|setdisplay|modify) ... | /scoreboard players (add|set|remove|reset|get|list|operation|enable) ...
Bedrock Edition/scoreboard objectives (add|remove|list|setdisplay) ... | /scoreboard players (add|set|remove|reset|list|operation|random) ...
Player ManagementBedrockBedrock 1.21.x

Applies a screen shaking effect to players, useful for cinematics or custom maps.

Bedrock Edition/camerashake add <players> [intensity] [seconds] [shakeType] | /camerashake stop [players]
World & EnvironmentBedrockBedrock 1.21.x

Creates, lists, or removes ticking areas, forcing the game to simulate chunks even when no players are nearby.

Bedrock Edition/tickingarea add <fromX> <fromY> <fromZ> <toX> <toY> <toZ> [name] | /tickingarea add circle <x> <y> <z> <radius> [name] | /tickingarea remove <name|pos>
World & EnvironmentJavaJava 1.21.x

Forces chunks to constantly load and simulate, even if no players are nearby. Equivalent to ticking areas.

Java Edition/forceload add <fromX> <fromZ> [<toX> <toZ>] | /forceload remove <fromX> <fromZ> [<toX> <toZ>] | /forceload query [<pos>]
World & EnvironmentJavaJava 1.21.x

Controls the boundaries and size of the world border.

Java Edition/worldborder set <size> [<time>] | /worldborder center <x> <z> | /worldborder damage <buffer|amount>
Player ManagementBedrockBedrock 1.21.x

Sets character abilities (like World Builder permissions, flying, or mute) on a player.

Bedrock Edition/ability <player> <ability> [value: Boolean]
Advanced & DeveloperBedrockBedrock 1.21.x

Triggers dialogue screens or forces an NPC to display a dialogue branch to players.

Bedrock Edition/dialogue open <npc> <player> [sceneName] | /dialogue change <npc> <sceneName> [targets]
Advanced & DeveloperJavaJava 1.21.x

Creates and customizes floating boss status bars at the top of the player screen.

Java Edition/bossbar add <id> <name> | /bossbar set <id> <option> <value> | /bossbar remove <id>
OP & God ItemsUniversalJava 1.21.x • Bedrock 1.21.x

Gives a player an overpowered Netherite Sword with level 255/10 enchantments.

Java Edition/give <targets> netherite_sword[enchantments={levels:{"minecraft:sharpness":255,"minecraft:fire_aspect":10,"minecraft:looting":10,"minecraft:unbreaking":255,"minecraft:mending":1,"minecraft:sweeping_edge":3,"minecraft:knockback":5}}] [<count>]
Bedrock Edition/give <player> netherite_sword [amount]
OP & God ItemsJavaJava 1.21.x

Gives a player a stick with Knockback level 10,000, sending targets flying into the distance.

Java Edition/give <targets> stick[enchantments={levels:{"minecraft:knockback":10000}}] [<count>]
OP & God ItemsUniversalJava 1.21.x • Bedrock 1.21.x

Gives a player a Netherite Chestplate with Protection level 255 and Thorns 10, rendering the wearer practically invincible.

Java Edition/give <targets> netherite_chestplate[enchantments={levels:{"minecraft:protection":255,"minecraft:unbreaking":255,"minecraft:mending":1,"minecraft:thorns":10}}] [<count>]
Bedrock Edition/give <player> netherite_chestplate [amount]
OP & God ItemsUniversalJava 1.21.x • Bedrock 1.21.x

Gives a player a Netherite Pickaxe with Efficiency level 255, breaking blocks instantly.

Java Edition/give <targets> netherite_pickaxe[enchantments={levels:{"minecraft:efficiency":255,"minecraft:fortune":10,"minecraft:unbreaking":255,"minecraft:mending":1}}] [<count>]
Bedrock Edition/give <player> netherite_pickaxe [amount]
OP & God ItemsUniversalJava 1.21.x • Bedrock 1.21.x

Gives a player a Bow with Power level 255, Punch level 10, Flame, and Infinity.

Java Edition/give <targets> bow[enchantments={levels:{"minecraft:power":255,"minecraft:punch":10,"minecraft:flame":1,"minecraft:infinity":1,"minecraft:unbreaking":255}}] [<count>]
Bedrock Edition/give <player> bow [amount]
OP & God ItemsJavaJava 1.21.x

Gives a player a stack of custom food items (cookies) that grant Strength level 255 and Resistance level 255 for one minute.

Java Edition/give <targets> cookie[food={nutrition:20,saturation:20,effects:[{effect:{id:"minecraft:strength",amplifier:255,duration:1200}},{effect:{id:"minecraft:resistance",amplifier:255,duration:1200}}]}] [<count>]
OP & God ItemsUniversalJava 1.21.x • Bedrock 1.21.x

Gives a player a Netherite Axe with Efficiency level 255, Sharpness level 255, Looting level 10, Unbreaking level 255, and Mending.

Java Edition/give <targets> netherite_axe[enchantments={levels:{"minecraft:efficiency":255,"minecraft:sharpness":255,"minecraft:looting":10,"minecraft:unbreaking":255,"minecraft:mending":1}}] [<count>]
Bedrock Edition/give <player> netherite_axe [amount]
OP & God ItemsUniversalJava 1.21.x • Bedrock 1.21.x

Gives a player a Netherite Helmet with Protection level 255, Respiration level 3, Aqua Affinity, and Unbreaking level 255.

Java Edition/give <targets> netherite_helmet[enchantments={levels:{"minecraft:protection":255,"minecraft:respiration":3,"minecraft:aqua_affinity":1,"minecraft:unbreaking":255,"minecraft:mending":1}}] [<count>]
Bedrock Edition/give <player> netherite_helmet [amount]
OP & God ItemsUniversalJava 1.21.x • Bedrock 1.21.x

Gives a player Netherite Leggings with Protection level 255, Swift Sneak level 3, Unbreaking level 255, and Mending.

Java Edition/give <targets> netherite_leggings[enchantments={levels:{"minecraft:protection":255,"minecraft:swift_sneak":3,"minecraft:unbreaking":255,"minecraft:mending":1}}] [<count>]
Bedrock Edition/give <player> netherite_leggings [amount]
OP & God ItemsUniversalJava 1.21.x • Bedrock 1.21.x

Gives a player Netherite Boots with Protection level 255, Feather Falling level 255, Depth Strider level 3, Soul Speed level 3, Unbreaking level 255, and Mending.

Java Edition/give <targets> netherite_boots[enchantments={levels:{"minecraft:protection":255,"minecraft:feather_falling":255,"minecraft:depth_strider":3,"minecraft:soul_speed":3,"minecraft:unbreaking":255,"minecraft:mending":1}}] [<count>]
Bedrock Edition/give <player> netherite_boots [amount]
OP & God ItemsUniversalJava 1.21.x • Bedrock 1.21.x

Gives a player a Trident with Impaling level 255, Loyalty level 10, Channeling, Unbreaking level 255, and Mending.

Java Edition/give <targets> trident[enchantments={levels:{"minecraft:impaling":255,"minecraft:loyalty":10,"minecraft:channeling":1,"minecraft:unbreaking":255,"minecraft:mending":1}}] [<count>]
Bedrock Edition/give <player> trident [amount]
OP & God ItemsUniversalJava 1.21.x • Bedrock 1.21.x

Gives a player an OP God Elixir potion that grants Strength 255, Resistance 255, Regeneration 255, Speed 10, Haste 10, and more for 10 minutes.

Java Edition/give <targets> potion[potion_contents={custom_effects:[{id:"minecraft:speed",amplifier:9,duration:12000},{id:"minecraft:haste",amplifier:9,duration:12000},{id:"minecraft:strength",amplifier:255,duration:12000},{id:"minecraft:regeneration",amplifier:255,duration:12000},{id:"minecraft:resistance",amplifier:255,duration:12000},{id:"minecraft:fire_resistance",duration:12000},{id:"minecraft:water_breathing",duration:12000},{id:"minecraft:night_vision",duration:12000}],custom_name:'{"text":"OP God Elixir","color":"gold","bold":true}'}] [<count>]
Bedrock Edition/give <player> potion [amount]
Server & UtilityUniversalJava 1.21.x • Bedrock 1.21.x

Manages the server player whitelist, allowing only approved players to join the server.

/whitelist <add|remove> <player> | /whitelist <on|off|list|reload>
Server & UtilityUniversalJava 1.21.x • Bedrock 1.21.x

Disconnects a specified player from the server immediately, optionally displaying a reason.

/kick <player> [reason]
Server & UtilityUniversalJava 1.21.x • Bedrock 1.21.x

Adds a player to the server's blacklist (ban list), preventing them from reconnecting.

/ban <player> [reason]
Server & UtilityUniversalJava 1.21.x • Bedrock 1.21.x

Removes a player from the server's ban list, permitting them to join the server again.

/pardon <player>
Advanced & DeveloperUniversalJava 1.21.x • Bedrock 1.21.x

Reloads all data packs, functions, advancements, and loot tables from disk.

/reload
Advanced & DeveloperJavaJava 1.21.x

Controls the server tick rate and flow, allowing developers to freeze, step, or sprint game execution for diagnostic testing.

Java Edition/tick rate <rate> | /tick freeze | /tick step <time> | /tick query
Advanced & DeveloperJavaJava 1.21.x

Starts or stops recording performance metrics, generating a diagnostic ZIP report in the server's debug folder.

Java Edition/perf start | /perf stop
Advanced & DeveloperJavaJava 1.21.x

Manages the server's loaded data packs, allowing creators to dynamically enable, disable, and order them.

Java Edition/datapack enable <name> [first|last|before|after] | /datapack disable <name> | /datapack list
Server & UtilityUniversalJava 1.21.x • Bedrock 1.21.x

Forces the server to save all pending chunks, player profiles, and world data to disk immediately.

/save-all [flush]
Advanced & DeveloperUniversalJava 1.21.x • Bedrock 1.21.x

Runs a function script file (.mcfunction) containing a sequence of commands in a single game tick.

/function <name>
OP & God ItemsUniversalJava 1.21.x • Bedrock 1.21.x

Generates overpowered 32k God weapons, armor, tools, and custom potion elixirs.

Java Edition/give <targets> <item>[enchantments={levels:{...}}] [<count>]
Bedrock Edition/give <player> <itemName> [amount]
Advertisement