Pick a command above to open its generator here.
Every Minecraft command
Minecraft Java 26.3 has 89 commands, plus 5 short aliases (/xp, /tell, /w, /tm, /tp). This is every one of them, what it does, and where to build it here. The Bedrock-only commands with a generator are at the end.
| Command | What it does | Generator |
|---|---|---|
| Players | ||
| /advancement | Grant or revoke advancements. | Open |
| /attribute | Read or change an entity's attributes, such as max health or movement speed. | Full page |
| /clear | Remove items from a player's inventory. | Open |
| /damage | Deal damage of a chosen type to entities. | Open |
| /defaultgamemode | Set the game mode new players join with. | Open |
| /effect | Give or clear status effects. | Full page |
| /enchant | Add an enchantment to the item a player is holding. | Full page |
| /experiencealso /xp | Add, set or check experience points and levels. | Full page |
| /gamemode | Change a player's game mode. | Open |
| /give | Give items to players. | Full page |
| /item | Replace or modify items in inventory and container slots. | Open |
| /kill | Remove entities. | Full page |
| /posteffect | Add, remove or list screen post effects on players. | - |
| /recipe | Unlock or lock recipes for players. | Open |
| /ride | Mount or dismount entities. | Open |
| /rotate | Turn an entity to a rotation or to face a target. | Open |
| /spawnpoint | Set a player's respawn point. | Open |
| /spectate | Watch through another entity's eyes in spectator mode. | Open |
| /spreadplayers | Spread players or entities randomly across an area. | Open |
| /swing | Play the arm swing animation on entities. | Open |
| /teleportalso /tp | Teleport entities. | Open |
| World | ||
| /clone | Copy a region of blocks to another place. | Open |
| /difficulty | Set or check the world difficulty. | Open |
| /fill | Fill a region with a block. | Full page |
| /fillbiome | Change the biome of a region. | Open |
| /forceload | Keep chunks loaded at all times. | Open |
| /gamerule | Check or change game rules. | Open |
| /locate | Find the nearest structure, biome or point of interest. | Full page |
| /place | Place a feature, jigsaw, structure or template. | Full page |
| /setblock | Place a single block. | Open |
| /setworldspawn | Set the world spawn point. | Open |
| /summon | Spawn an entity. | Full page |
| /time | Set, add or check the time of day. | Open |
| /weather | Set the weather. | Open |
| /worldborder | Change the world border. | Open |
| Chat & text | ||
| /bossbar | Create and edit custom boss bars. | Full page |
| /dialog | Show or clear a dialog screen for players. | Open |
| /me | Send an action message in chat. | - |
| /msgalso /tell, /w | Send a private message to a player. | Open |
| /say | Broadcast a message to everyone. | Tellraw page |
| /teammsgalso /tm | Send a message to your team. | Open |
| /tellraw | Send a formatted JSON text message. | Full page |
| /title | Show a title, subtitle or action bar text. | Full page |
| /waypoint | Change how waypoints look on the locator bar. | Open |
| Data & logic | ||
| /compute | Evaluate a number provider at a block, an entity or the default context, and return the result. | - |
| /data | Read and change NBT data on blocks, entities and storage. | Open |
| /execute | Run another command with a changed context, conditions or stored results. | Full page |
| /function | Run a function from a data pack. | Open |
| /loot | Drop or give the loot from a loot table, a block or an entity. | Open |
| /random | Roll a random number or manage random sequences. | Open |
| /return | Set the return value of a function and stop running it. | Open |
| /schedule | Run a function after a delay. | Open |
| /scoreboard | Manage objectives and scores. | Full page |
| /stopwatch | Create, query, restart and remove named stopwatches. | Open |
| /tag | Add, remove and list entity tags. | Open |
| /team | Create teams and change their settings. | Open |
| /trigger | Change a trigger objective, without operator status. | Open |
| Sound & particles | ||
| /particle | Spawn particles. | Full page |
| /playsound | Play a sound to players. | Full page |
| /stopsound | Stop sounds playing for players. | Open |
| Server & admin | ||
| /ban | Ban a player from the server. | Open |
| /ban-ip | Ban an IP address from the server. | Open |
| /banlist | List banned players and IP addresses. | Open |
| /datapack | Enable, disable and list data packs. | Open |
| /debug | Start or stop a debug profiling session, or trace a function. | Open |
| /deop | Remove operator status from a player. | Open |
| /fetchprofile | Look up a player profile by name, UUID or entity. | Open |
| /help | List commands, or show how one is used. | - |
| /jfr | Start or stop a Java Flight Recorder profile. | - |
| /kick | Remove a player from the server. | Open |
| /list | List the players online. | - |
| /op | Give a player operator status. | Open |
| /pardon | Unban a player. | Open |
| /pardon-ip | Unban an IP address. | Open |
| /perf | Start or stop a performance profile. | - |
| /publish | Open a singleplayer world to LAN. | Open |
| /reload | Reload data packs. | - |
| /save-all | Save the world to disk. | - |
| /save-off | Turn off automatic world saving. | - |
| /save-on | Turn automatic world saving back on. | - |
| /seed | Show the world seed. | - |
| /setidletimeout | Set how long idle players can stay before they are kicked. | Open |
| /stop | Stop the server. | - |
| /test | Run and manage GameTest tests. | Open |
| /tick | Freeze, step or change the game tick rate. | Open |
| /transfer | Send a player to another server. | Open |
| /unpublish | Close a world opened to LAN. | - |
| /version | Show the game version. | - |
| /whitelist | Manage the server whitelist. | Open |
| Bedrock only | ||
| /camera | Move and ease the player camera with presets. | Open |
| /fog | Push or remove fog settings for a player. | Open |
| /playanimation | Play an animation on an entity. | Open |
How to run a command
1. Turn commands on: Allow Commands for a singleplayer world, operator status on a server, or cheats on Bedrock.
2. Build the command above and copy it.
3. Press T to open chat and paste it, or paste it into a command block if it is longer than 256 characters.
Frequently Asked Questions
How do I turn on commands in Minecraft?
In singleplayer Java, turn on Allow Commands when you create the world, or open a world to LAN with Allow Commands on, which lasts until you quit. On a server you need operator status, given from the console or by another operator with /op. On Bedrock, turn on cheats in the world settings.
How many commands are there in Minecraft?
Minecraft Java 26.3 has 89 commands. 5 more names are aliases that run the same command: /xp for /experience, /tell for /msg, /w for /msg, /tm for /teammsg, /tp for /teleport.
Why is my command too long for chat?
Java chat takes at most 256 characters. Longer commands, which give and summon commands with a lot of item or entity data often are, have to go in a command block, which holds up to 32,500 characters.
Do these generators make Bedrock commands?
Many of them have a Java and Bedrock switch and print the Bedrock syntax when you pick it. /camera, /fog and /playanimation only exist on Bedrock and have their own generators in the Bedrock only group.
Browse more Minecraft tools: