Minecraft commands, copy & paste
Java and Bedrock syntax, verified for the latest version.
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026
/
Browse by type
/give
Spawn any item, tool, or enchanted gear straight into your inventory.
/summon
Spawn mobs, bosses, and entities exactly where you want them.
/effect
Apply status effects like night vision, speed, or resistance.
/gamerule
Toggle world rules: keep inventory, mob griefing, daylight, and more.
/teleport
Jump to coordinates, players, or relative positions instantly.
/setblock
Place or clear single blocks and fill regions with one line.
/enchant
Enchant the item you are holding without an enchanting table.
/misc
Gamemode, difficulty, kill, and other utility commands that don't fit one category.
Popular commands
View all →Keep your items when you die instead of dropping them
/gamerule keepInventory trueGet a diamond sword pre-enchanted with Sharpness V
/give @p diamond_sword[enchantments={sharpness:5}]Get a netherite sword pre-enchanted with Sharpness V
/give @p netherite_sword[enchantments={sharpness:5}]Get a netherite pickaxe pre-enchanted with Fortune III
/give @p netherite_pickaxe[enchantments={fortune:3}]