Java 1.21

Minecraft Commands Guide

Full reference of Minecraft Java Edition 1.21 commands with syntax and examples. Enable cheats first, then type / in chat to run any command below.

Player & Movement

CommandDescriptionExample
/tpTeleport a player to coordinates or another entity./tp @s 100 64 -200
/gamemodeChange gamemode (survival, creative, adventure, spectator)./gamemode creative
/killInstantly kill the target entity./kill @e[type=zombie]
/spawnpointSet the spawn point of a player./spawnpoint @s ~ ~ ~

Items & Inventory

CommandDescriptionExample
/giveGive any item to a player, with optional NBT/components./give @s diamond_sword 1
/clearClear a player's inventory or specific items./clear @s cobblestone
/enchantApply an enchantment to the item in hand./enchant @s sharpness 5

World & Environment

CommandDescriptionExample
/time setSet the world time (day, night, noon, midnight or ticks)./time set day
/weatherChange the weather (clear, rain, thunder)./weather clear
/setblockPlace a block at specific coordinates./setblock ~ ~1 ~ stone
/fillFill a cuboid region with a block./fill ~ ~ ~ ~10 ~10 ~10 glass
/difficultySet world difficulty (peaceful, easy, normal, hard)./difficulty hard

Effects & Combat

CommandDescriptionExample
/effect giveApply a status effect to a target./effect give @s speed 60 2
/effect clearRemove all effects from a target./effect clear @s
/summonSpawn any entity with optional NBT./summon creeper ~ ~ ~

Server & Operator

CommandDescriptionExample
/opGrant operator privileges to a player./op Notch
/deopRevoke operator privileges./deop Notch
/banBan a player from the server./ban Griefer griefing
/whitelistManage the server whitelist./whitelist add Notch
/gameruleToggle a gamerule (keepInventory, doDaylightCycle, etc.)./gamerule keepInventory true

Want more than commands?

Utility clients like Vape V4, Krypton and Novoline add features vanilla commands can't — KillAura, X-Ray, Fly and server-specific bypasses.

Browse cheat clients