Skip to content
Minecraft Command List

All Minecraft Commands

✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026

Browse every command by category, or search below. Each one opens a dedicated page with a big Copy button, both editions, and step-by-step usage.

Get a command block (it isn't in the creative menu)

/give @p command_block

Get a pair of elytra wings

/give @p elytra

Get a diamond sword pre-enchanted with Sharpness V

/give @p diamond_sword[enchantments={sharpness:5}]

Get an enchanted book with Mending

/give @p enchanted_book[stored_enchantments={mending:1}]

Get a pickaxe that never breaks

/give @p diamond_pickaxe[unbreakable={}]

Get a totem that saves you from death

/give @p totem_of_undying

Strike lightning at your location

/summon lightning_bolt ~ ~ ~
Summon Zombie Wearing Armor
Summon Zombie Wearing Armor Awaiting in-game verification
Java

Spawn a zombie equipped with armor

/summon zombie ~ ~ ~ {equipment:{head:{id:"diamond_helmet",count:1}}}

Spawn the Wither immediately without placing skulls

/summon wither ~ ~5 ~

Spawn an ender dragon anywhere in your world

/summon ender_dragon ~ ~ ~

Spawn an armor stand for displaying equipment or decoration

/summon armor_stand ~ ~ ~

Spawn a warden without triggering sculk shriekers

/summon warden ~ ~ ~

See in the dark permanently

/effect give @p night_vision infinite

Move much faster

/effect give @p speed 999999 4 true

Remove every status effect currently on you

/effect clear @s

Massively increase your melee damage output

/effect give @p strength infinite 1 true

Jump much higher than normal

/effect give @p jump_boost infinite 4 true

Become immune to fire and lava

/effect give @p fire_resistance infinite 0 true

Keep your items when you die instead of dropping them

/gamerule keepInventory true

Freeze time so it's permanently daytime

/gamerule doDaylightCycle false

Stop rain and keep the weather clear

/gamerule doWeatherCycle false

Stop creepers, endermen, and other mobs from changing blocks

/gamerule mobGriefing false

Turn off fall damage

/gamerule fallDamage false

Stop fire from spreading to nearby blocks

/gamerule doFireTick false

Instantly move to a specific X Y Z location

/tp @s 100 64 -200

Instantly move to where another player is standing

/tp @s PlayerName

Set where you respawn after dying to your current location

/spawnpoint @s ~ ~ ~

Change where new players and players with no bed spawn

/setworldspawn ~ ~ ~

Pull every player in the world to your location instantly

/tp @a @s

Jump straight up 10 blocks without flying

/tp @s ~ ~10 ~

Place one block at a specific spot

/setblock ~ ~ ~ stone

Delete a region of blocks by filling it with air

/fill ~ ~ ~ ~10 ~10 ~10 air

Create a hollow room or box out of any block

/fill ~ ~ ~ ~10 ~6 ~10 stone hollow

Create a pool or lake by filling a region with water

/fill ~ ~ ~ ~10 ~ ~10 water

Swap every block of one type for another in a region

/fill ~ ~ ~ ~10 ~10 ~10 stone replace dirt

Instantly place a chest at a specific location

/setblock ~ ~ ~ chest

Add Sharpness V to the sword or axe you are holding

/enchant @s sharpness 5

Add maximum Protection to the armor piece you are holding

/enchant @s protection 4

Make your pickaxe, axe, or shovel mine much faster

/enchant @s efficiency 5

Make ores and crops drop more loot

/enchant @s fortune 3

Mine blocks and get the block itself instead of its drops

/enchant @s silk_touch 1

Make any item last much longer before it breaks

/enchant @s unbreaking 3

Utility Commands

All /misc commands →

Become nearly invincible

/effect give @p resistance 999999 255 true

Switch yourself into Creative mode

/gamemode creative

Instantly remove every mob from the world except players

/kill @e[type=!player]

Give yourself XP levels for enchanting

/experience add @p 30 levels

Switch to Peaceful mode so hostile mobs don't spawn

/difficulty peaceful
Find the Nearest Village
Find the Nearest Village Awaiting in-game verification
Both

Get coordinates of the nearest village structure

/locate structure village

Command builders

coming soon