MC CommanderUnofficial Minecraft command tools
Minecraft guide

Minecraft command generator guides

Start with the command you want to run, then check the example and common mistakes. Each guide links to the corresponding generator.

Updated:

Start here

Minecraft commands list

61 common commands by category, with syntax and a link to each guide.

Open guide

How to use commands on Java

Allow cheats, Open to LAN, chat keys and the 256 character limit.

Open guide

How to use commands on Bedrock

Turn on cheats and open chat on Switch, mobile and consoles.

Open guide

15 useful survival commands

Copy-ready commands for coordinates, keep inventory, weather, villages and more.

Open guide

12 useful building commands

Clear land, lay floors, build hollow boxes and copy builds.

Open guide

How to make a minigame

Setup, start, scoring and reset commands in order.

Open guide

12 fun commands

Giants, TNT rain, a knockback stick and more to copy and paste.

Open guide

Command block tutorial

Test one block, then build chains and repeat loops safely.

Open guide

Execute command basics

as, at, if and run explained with short examples.

Open guide

Items, weapons and armor

Give command generator

Make item, weapon, custom name and enchantment commands.

Open guide

Enchant command generator

Build enchanted items with /give and /enchant, and check level limits for Java and Bedrock.

Open guide

Strongest sword

God sword commands for every Java format, plus what Bedrock allows.

Open guide

Strongest armor

A fully enchanted netherite set for every Java format, and the protection cap.

Open guide

Item replace command

Equip armor, fill a hotbar slot, put a block on a player's head or clear a slot.

Open guide

Recipes and advancements

Unlock every recipe, grant or revoke advancements, or pick parts of the tree.

Open guide

Player head

Get any player's head with the 1.20.5+ or older format, and wear it.

Open guide

Firework command

Custom shapes and colors, launching on the spot, and elytra rockets.

Open guide

Enchanted book command

Mending and other books in the 1.21.5+, 1.20.5 and older formats.

Open guide

Knockback stick

Knockback 10 stick with /give and a simple knockback arena.

Open guide

Shulker box with items

Packed shulker boxes and filled chests in 1.20.5+ and older formats.

Open guide

Colored item names

Gold, bold, multi-color names and lore without italics.

Open guide

Strongest bow

Power 255 bow and a fast crossbow that stays under Quick Charge 5.

Open guide

Hidden items

Barrier, light block levels, debug stick, command and structure blocks.

Open guide

Give weapon commands

Enchanted bow, crossbow, trident and mace, and which enchantments clash.

Open guide

Give potion command

Potion IDs, custom effects, splash and tipped arrows, Bedrock data values.

Open guide

Find item IDs

Tab suggestions, F3+H, debug screen, SelectedItem and ID search.

Open guide

Enchantment ID list

Every enchantment ID and max level for weapons, armor and tools.

Open guide

Armor trim command

Every trim pattern and material, templates and older formats.

Open guide

Banner and shield patterns

Pattern IDs, colors, layering and shields with base_color.

Open guide

Custom item command

Name, lore, glint, stack size and custom_data checks.

Open guide

Summon item command

Drop items that float, wait or never despawn.

Open guide

Written book command

Title, author, pages, colors and clickable menus by version.

Open guide

Adventure mode items

can_break and can_place_on for Java and Bedrock.

Open guide

Loot command

Chest loot, mob drops and mining drops on demand.

Open guide

Elytra command

Unbreakable elytra, wear it directly, and flight rockets.

Open guide

Strongest pickaxe and tools

Efficiency, Fortune, unbreakable tools and the best fishing rod.

Open guide

Trial chamber commands

Locate trial chambers, give keys, heavy core and a mace.

Open guide

Item frame commands

Invisible, fixed and pre-filled item frames.

Open guide

Dyed leather armor

Leather armor in any color for teams and builds.

Open guide

Strongest mace command

Density, breach and wind burst on one mace.

Open guide

Totem of undying command

Offhand totems that refill themselves.

Open guide

Strongest spear command

A fully enchanted netherite spear.

Open guide

Strongest trident command

Loyalty, Riptide and Channeling tridents.

Open guide

Custom food command

Make any item edible, with effects.

Open guide

Compass to coordinates

A compass that points anywhere.

Open guide

Hide tooltip command

Hide enchantments and change the glint.

Open guide

Item model command

Make an item look like another.

Open guide

Stack size and durability

Stack items to 99 or set durability.

Open guide

Equippable and glider

Wear any item or glide without an elytra.

Open guide

Level 30 enchanting setup

Build the bookshelf room instantly.

Open guide

Mobs and entities

Summon / mob generator

Create mob spawn commands, named mobs and equipped mobs.

Open guide

Mob spawn command

Use summon commands to spawn mobs, villagers, named mobs and boss-style enemies.

Open guide

Ride command

Mount players and mobs on other entities, build jockeys and dismount.

Open guide

TNT command

Summon lit TNT, change the fuse, make TNT rain and protect terrain.

Open guide

Data command

Read and change mob and block data: NoAI, Invulnerable, copying items and more.

Open guide

Kill command

Clear dropped items or one mob type without wiping armor stands and pets.

Open guide

Armor stand command

Arms, poses, gear and floating text with the current and older formats.

Open guide

Villager shop command

Custom trades, unlimited stock and fixed prices with one /summon.

Open guide

Baby mob command

Age for animals, IsBaby for zombies, permanent babies and Bedrock events.

Open guide

Lightning command

Strike players, mobs or where you look, and what lightning transforms.

Open guide

Custom boss mob

Named boss with extra health, gear, no drops and a bossbar.

Open guide

Spawner command

Choose the mob, delay, count and range, or give a filled spawner.

Open guide

Best horse command

A tamed, saddled horse with max speed, jump and health.

Open guide

NoAI command

Make mobs stand still on Java, with Bedrock alternatives.

Open guide

Villager profession command

Every profession ID, job block, level and type, plus Bedrock.

Open guide

Ender dragon command

Summon, make it fly, respawn it and give a dragon egg.

Open guide

Cure a zombie villager

Summon, Weakness and a golden apple, plus timing and tips.

Open guide

Golem summon command

Iron golems that never attack you, snow golems and copper golems.

Open guide

Floating text (text_display)

Hologram signs with color, background, size, editing and removal.

Open guide

Spawn egg command

Dragon and wither eggs, plus named or NoAI custom eggs.

Open guide

Warden command

Summon, freeze as a statue, darkness effects and stop spawning.

Open guide

Wither command

Summon, spawn explosion, statue and no block damage.

Open guide

Name a mob

Named summons, renaming with /data, colors and special names.

Open guide

Raid commands

Start or stop raids, clear Bad Omen and remove raiders.

Open guide

Tame pet command

Make wolves, cats and parrots yours with /data.

Open guide

Creeper commands

Charged creepers, blast size and fuse time.

Open guide

Zombie commands

Giants, huge zombies and zombies that do not burn.

Open guide

Giant slime command

Slime and magma cube sizes with Size.

Open guide

Happy ghast commands

Summon, harness and ride a happy ghast.

Open guide

Creaking command

Summon the mob that freezes when watched.

Open guide

Rare mob commands

Blue axolotl, brown panda and more.

Open guide

Mob kill counter

Track kills and run bounty quests.

Open guide

Minecarts

Chest, command block and riding.

Open guide

Players and effects

Effect command generator

Invisibility, night vision, speed, strength and other effects.

Open guide

Invisibility command

Hide players and mobs, remove particles, and show teammates to each other.

Open guide

Fly command

Ways to fly with commands: game modes, levitation, elytra and Bedrock mayfly.

Open guide

Attribute command

Change size, jump strength, walking speed, step height and gravity, with defaults.

Open guide

Damage command

Deal exact damage, ignore armor with magic damage and set the attacker.

Open guide

TP command

Teleport players, use coordinates and avoid common mistakes.

Open guide

Playsound command

Play sounds for players with /playsound: sound IDs, sources, volume and pitch.

Open guide

Particle command

Flames, hearts, colored dust and trails that follow players.

Open guide

Gamemode command

Switch modes on Java and Bedrock, and set the mode for new players.

Open guide

XP command

Add levels or points on Java and Bedrock without mixing them up.

Open guide

Spawnpoint command

Respawn points vs world spawn, beds, and the random offset rule.

Open guide

Clear command

Empty inventories, remove or count items, and build a shop payment.

Open guide

Max health command

More hearts with /attribute or Health Boost, and filling them.

Open guide

Show coordinates

F3 on Java, Show Coordinates on Bedrock, and reading X, Y, Z.

Open guide

Effect ID list

Every common effect ID, amplifier levels and clearing effects.

Open guide

Glowing commands

Item glint without enchantments and outlines through walls.

Open guide

Is there a /home command?

Get back to base with /tp, /spawnpoint, a /trigger warp or a plugin.

Open guide

Invincibility command

Resistance V, damage game rules and Invulnerable mobs.

Open guide

Find where you died

Death coordinates on Java, teleport back, and the recovery compass.

Open guide

Heal command

Instant full health, hunger refill and a healing zone.

Open guide

Speed command

Speed levels, permanent speed, Jump Boost and swimming faster.

Open guide

Show health

Health under names, hearts in the Tab list and other live stats.

Open guide

Underwater commands

Water Breathing, Conduit Power, faster swimming and underwater gear.

Open guide

Rotate command

Face a direction, a point or a mob with /rotate or /tp.

Open guide

Spectate command

Watch from a player or mob view and build fixed cameras.

Open guide

Night vision command

Permanent night vision, locked daytime and light blocks.

Open guide

Play time command

Show hours and minutes played.

Open guide

Locator bar commands

Hide the locator bar or add waypoints.

Open guide

Death counter

Show how many times players died.

Open guide

Minigames and command logic

Scoreboard helper

Objectives, sidebars, timers, points and minigame scoreboards.

Open guide

Command block commands

Beginner commands for command blocks: give, tp, fill, summon, effect and execute.

Open guide

Trigger command

Let players without operator permission run actions and clickable menus.

Open guide

Team command

Create teams, color names, stop friendly fire and split players at random.

Open guide

Bossbar command

Create custom bars, show them to players and drive a countdown from a scoreboard.

Open guide

Spreadplayers command

Place players at random start points, keep teams together and avoid the Nether roof.

Open guide

Schedule command

Run datapack functions after a delay, build loops and cancel schedules.

Open guide

Tag command

Mark players and mobs, select them, and run things once per player.

Open guide

~ and ^ coordinates

Absolute, relative and local coordinates, with command block tips.

Open guide

First datapack

Folder layout, pack.mcmeta, functions, load and tick tags.

Open guide

Target selectors

@p, @a, @r, @e, @s and @n, safe filters and common arguments.

Open guide

execute as vs at

Who runs the command, where it runs, and why order matters.

Open guide

Title and tellraw

Title, subtitle, actionbar, scores in text and clickable messages.

Open guide

Scoreboard minigames

Points, kill counts, countdown timers, winners and resets.

Open guide

Msg, tell and w commands

Private messages, team chat and /me.

Open guide

Bedrock camera command

Fixed views, smooth cutscenes and fades on Bedrock.

Open guide

How to make a minigame

Setup, start, scoring and reset commands in order.

Open guide

Tellraw command

Colored chat, player names, scores and click text on Java and Bedrock.

Open guide

Execute command basics

as, at, if, unless, positioned and store with Java and Bedrock examples.

Open guide

Command block tutorial

Get a block, test one command, then build chains and repeat loops safely.

Open guide

Random command

Dice rolls, odds and draws on Java, and the Bedrock scoreboard alternative.

Open guide

12 fun commands

Giants, TNT rain, a knockback stick, lightning pigs and more.

Open guide

Parkour course

Checkpoints, send fallen players back, a finish message and a timer.

Open guide

Hide and seek

Hidden name tags, a blinded seeker, a timer and glowing hiders.

Open guide

PvP team battle

No friendly fire, equal kits, a kill counter and a win message.

Open guide

Infection tag

Glowing taggers, one-hit tags and caught runners joining the taggers.

Open guide

Effects while holding an item

Feather jump, speed boots and a flaming wand with execute if items.

Open guide

Right-click detection

A lightning wand, a blink stick and cooldowns.

Open guide

Falling anvil command

Drop anvils and blocks from the sky.

Open guide

Music command

Play music disc songs for every player.

Open guide

Walk trail command

Blocks that change where you walk.

Open guide

Jump pad command

Jump, speed, warp and healing pads.

Open guide

Red Light, Green Light

Catch anyone who moves and send them back.

Open guide

Spleef with commands

Dig the floor out from under other players.

Open guide

Treasure hunt with commands

A random chest with hot and cold hints.

Open guide

TNT Run with commands

A floor that vanishes behind you.

Open guide

Dropper game with commands

Land in water to reach the next stage.

Open guide

Zombie wave defense

Waves of zombies that restart when cleared.

Open guide

Capture the flag

Steal the enemy banner and bring it home.

Open guide

Ice boat race

Checkpoints, laps and a timer for boat racing.

Open guide

Archery target game

Points for hitting a target block with arrows.

Open guide

Blocks mined leaderboard

Count mined blocks and rank players.

Open guide

Gacha machine

Pay emeralds for a random prize.

Open guide

Key door

An iron door that opens for key holders.

Open guide

UHC

Survival with no natural regeneration.

Open guide

Area detection

Run commands when players enter or leave.

Open guide

Starter kit command

Give new players items once.

Open guide

Sneak detection command

Run commands when players crouch.

Open guide

Join message command

Welcome new and returning players.

Open guide

Drop item detection

Altars and items that come back.

Open guide

Escape room commands

Keys, hints and a timer.

Open guide

True or false quiz

Answer by standing on a floor.

Open guide

Countdown

A 3, 2, 1, go timer with command blocks.

Open guide

execute store

Save command results to scores.

Open guide

Lucky block

Random rewards when a block breaks.

Open guide

Traps

Pitfalls, arrows, lightning and poison.

Open guide

Horror map

Darkness, sounds and jump scares.

Open guide

Worlds, servers and game rules

Gamerule list

Old camelCase names, the new 1.21.11 names and Bedrock names for the most-used game rules.

Open guide

Keep inventory

Keep items on death: the 1.21.11 name, the old name and the Bedrock name.

Open guide

One player sleep

Let one player skip the night with players sleeping percentage.

Open guide

Worldborder command

Set and shrink the world border, and use the 1.21.11 tick-based timing correctly.

Open guide

Server properties

Understand server.properties and choose safe values.

Open guide

Locate command

Find the nearest village, stronghold, ancient city or biome.

Open guide

Clone command

Copy or move a building, reset an arena, and stay under the block limit.

Open guide

Time command

Day, night, tick values, stopping the clock and the 26.1 changes.

Open guide

Weather command

Clear, rain and thunder, keeping it clear, and summoning lightning.

Open guide

Setblock command

Place single blocks with facing, modes and chests full of items.

Open guide

Difficulty command

Peaceful to Hard, what changes, and server settings.

Open guide

Tick command

Speed up, slow down, freeze and step the game in Java 1.20.3+.

Open guide

Nether and End teleport

Travel between dimensions with /execute in, land safely, convert coordinates.

Open guide

Whitelist

Turn on the whitelist, add players and fix not white-listed errors.

Open guide

Server lag

Find the cause: TPS, entities, redstone, distance, chunks and RAM.

Open guide

online-mode=false

Name spoofing, whitelist bypass, UUID changes and proxy setups.

Open guide

Fill command

Floors, walls, hollow rooms, replace filters and the size limit.

Open guide

view vs simulation distance

What each setting controls, chunk counts and values by player count.

Open guide

Test world setup

Keep inventory, frozen day and weather, no mob spawning.

Open guide

Sign command

Signs with text, colors, glowing and wax, plus clickable warp signs.

Open guide

Op, kick and ban commands

Operator levels, kicking, banning and IP bans for Java servers.

Open guide

Fillbiome command

Change the biome of an area on Java, with limits and replace filters.

Open guide

Place structure command

Spawn villages, temples and trees on Java with /place.

Open guide

Forceload command

Keep chunks loaded on Java, and tickingarea on Bedrock.

Open guide

Seed command

Find your world seed on Java, servers and Bedrock.

Open guide

15 useful survival commands

Copy-ready commands for coordinates, keep inventory, weather and more.

Open guide

12 useful building commands

Clear land, floors, hollow boxes, copies and invisible light.

Open guide

Stop mobs spawning

Peaceful, the spawning and phantom game rules, and mob-free areas.

Open guide

mobGriefing game rule

Stop creepers and endermen breaking blocks, and what else it switches off.

Open guide

All common commands

61 commands in one list with syntax and links to full guides.

Open guide

Structure block guide

Save a build and load it rotated or mirrored.

Open guide

Lobby commands

Unbreakable, damage-free lobby with warps and a welcome sign.

Open guide

Check player inventory

Read inventories and ender chests, and count items.

Open guide

Find diamonds command

Clear stone with /fill so only ores remain.

Open guide

Day counter and clock

Show the day number and time on screen.

Open guide

Skyblock

Build the floating starter island with commands.

Open guide

Turn off PvP

Game rule, teams and server settings.

Open guide

Beacon command

Build a full beacon pyramid in seconds.

Open guide

Remove water command

Drain water or lava with fill.

Open guide

Clear trees command

Remove trees and grass with fill.

Open guide

When a command does not work

Command generator tools

Choose the right generator for /give, /summon, /effect, scoreboard and execute commands.

Open guide

Unknown or incomplete command

Fix common Minecraft command syntax errors.

Open guide

Give command not working

Fix /give errors, old NBT examples, components and Java/Bedrock syntax mistakes.

Open guide

Command Error Doctor

Paste a command and detect common syntax mistakes in the browser.

Open tool

NBT vs components

Why item commands changed in 1.20.5 and how to convert them.

Open guide

Summon not working

Wrong IDs, Peaceful, NBT case and types, 1.21.5 changes.

Open guide

Execute not working

Missing run, as vs at, old Bedrock syntax and condition mistakes.

Open guide

No entity was found

Why a selector matches nothing and how to narrow it down.

Open guide

Command block not working

Previous Output, server setting, redstone, chains and @s.

Open guide

Java vs Bedrock commands

Selector arguments, effect and give syntax, IDs and edition-only commands.

Open guide

Commands not working

Permission, edition, target and coordinates, then fixes by symptom.

Open guide

Command syntax basics

Arguments, bracket notation, typing rules, permission and errors.

Open guide

How to use commands on Bedrock

Cheats, opening chat on each device, and typing tips.

Open guide

How to use commands on Java

Allow cheats, Open to LAN, chat keys and the 256 character limit.

Open guide

How to check your version

Find your version and the updates that changed command syntax.

Open guide

Item ID turns red in /give

What the red part means and how to fix the ID or item data.

Open guide

How to use these guides

If you are new to commands, first try /give @p minecraft:stone 1 in a Java Edition test world with permission to run commands. Then choose a guide based on your goal: items, entities, effects, or scores. Each guide provides examples, explains command arguments and describes common version or permission problems. Commands involving custom data should always be checked against the exact edition and version before use on a live server.