New
Popular
Minecraft
Knowledgebase
Minecraft Java Edition Vanilla Commands List
Command | Description | OP Level Required | Multiplayer Only | Modify/Query Blocks | Modify/Query Entities | Modify/Query Players | Modify/Query World |
---|---|---|---|---|---|---|---|
/advancement | Gives, removes, or checks player advancements. | 2 | ❌ | ❌ | ❌ | ✔️ | ❌ |
/attribute | Queries, adds, removes or sets an entity attribute. | 2 | ❌ | ❌ | ✔️ | ✔️ | ❌ |
/ban | Adds player to banlist. | 3 | Yes | ❌ | ❌ | ✔️ | ❌ |
/ban-ip | Adds IP address to banlist. | 3 | Yes | ❌ | ❌ | ✔️ | ❌ |
/banlist | Displays banlist. | 3 | Yes | ❌ | ❌ | ✔️ | ❌ |
/bossbar | Creates and modifies bossbars. | 2 | ❌ | ❌ | ❌ | ✔️ | ✔️ |
/clear | Clears items from player inventory. | 2 | ❌ | ❌ | ❌ | ✔️ | ❌ |
/clone | Copies blocks from one place to another. | 2 | ❌ | ✔️ | ❌ | ❌ | ❌ |
/damage | Applies damage to the specified entities. | 2 | ❌ | ❌ | ✔️ | ✔️ | ❌ |
/data | Gets, merges, modifies, and removes block entity, entity, and command storage NBT data. | 2 | ❌ | ✔️ | ✔️ | ✔️ | ❌ |
/datapack | Controls loaded data packs. | 2 | ❌ | ❌ | ❌ | ❌ | ✔️ |
/debug | Starts or stops a debugging session. | 3 | ❌ | ❌ | ❌ | ❌ | ❌ |
/defaultgamemode | Sets the default game mode. | 2 | ❌ | ❌ | ❌ | ❌ | ✔️ |
/deop | Revokes operator status from a player. | 3 | Yes | ❌ | ❌ | ✔️ | ❌ |
/difficulty | Sets the difficulty level. | 2 | ❌ | ❌ | ❌ | ❌ | ✔️ |
/effect | Adds or removes status effects. | 2 | ❌ | ❌ | ✔️ | ✔️ | ❌ |
/enchant | Adds an enchantment to a player's selected item. | 2 | ❌ | ❌ | ❌ | ✔️ | ❌ |
/execute | Executes another command. | 2 | ❌ | ✔️ | ✔️ | ✔️ | ✔️ |
/experience | An alias of /xp. Adds or removes player experience. | 2 | ❌ | ❌ | ❌ | ✔️ | ❌ |
/fill | Fills a region with a specific block. | 2 | ❌ | ✔️ | ❌ | ❌ | ❌ |
/fillbiome | Fills a region with a specific biome. | 2 | ❌ | ❌ | ❌ | ❌ | ✔️ |
/forceload | Forces chunks to constantly be loaded or not. | 2 | ❌ | ❌ | ❌ | ❌ | ✔️ |
/function | Runs a function. | 2 | ❌ | ❌ | ❌ | ❌ | ✔️ |
/gamemode | Sets a player's game mode. | 2 | ❌ | ❌ | ❌ | ✔️ | ❌ |
/gamerule | Sets or queries a game rule value. | 2 | ❌ | ❌ | ❌ | ❌ | ✔️ |
/give | Gives an item to a player. | 2 | ❌ | ❌ | ❌ | ✔️ | ❌ |
/help | Provides help for commands. | 0 | ❌ | ❌ | ❌ | ❌ | ❌ |
/item | Manipulates items in inventories. | 2 | ❌ | ✔️ | ✔️ | ✔️ | ❌ |
/jfr | Starts or stops a JFR profiling. | 4 | ❌ | ❌ | ❌ | ❌ | ❌ |
/kick | Kicks a player off a server. | 3 | ❌ | ❌ | ❌ | ✔️ | ❌ |
/kill | Kills entities (players, mobs, items, etc.). | 2 | ❌ | ❌ | ✔️ | ✔️ | ❌ |
/list | Lists players on the server. | 0 | ❌ | ❌ | ❌ | ✔️ | ❌ |
/locate | Locates closest structure, biome, or point of interest. | 2 | ❌ | ✔️ | ✔️ | ❌ | ✔️ |
/loot | Drops items from an inventory slot onto the ground. | 2 | ❌ | ✔️ | ✔️ | ✔️ | ❌ |
/me | Displays a message about the sender. | 0 | ❌ | ❌ | ❌ | ✔️ | ❌ |
/msg | An alias of /tell and /w. Displays a private message to other players. | 0 | ❌ | ❌ | ❌ | ✔️ | ❌ |
/op | Grants operator status to a player. | 3 | Yes | ❌ | ❌ | ✔️ | ❌ |
/pardon | Removes entries from the banlist. | 3 | Yes | ❌ | ❌ | ✔️ | ❌ |
/pardon-ip | Removes entries from the banlist. | 3 | Yes | ❌ | ❌ | ✔️ | ❌ |
/particle | Creates particles. | 2 | ❌ | ❌ | ❌ | ✔️ | ❌ |
/perf | Captures info and metrics about the game for 10 seconds. | 4 | Yes | ❌ | ❌ | ❌ | ✔️ |
/place | Used to place a configured feature, jigsaw, template, or structure at a given location. | 2 | ❌ | ✔️ | ❌ | ❌ | ✔️ |
/playsound | Plays a sound. | 2 | ❌ | ❌ | ❌ | ✔️ | ❌ |
/publish | Opens single-player world to local network. | 4 | SP only | ❌ | ❌ | ❌ | ✔️ |
/random | Draw a random value or control the random number sequence. | 0 (without sequence) 2 | ❌ | ❌ | ❌ | ❌ | ❌ |
/recipe | Gives or takes player recipes. | 2 | ❌ | ❌ | ❌ | ✔️ | ❌ |
/reload | Reloads loot tables, advancements, and functions from disk. | 2 | ❌ | ❌ | ❌ | ❌ | ✔️ |
/return | Control execution flow inside functions and change their return value. | 2 | ❌ | ❌ | ❌ | ❌ | ❌ |
/ride | Used to make entities ride other entities, stop entities from riding, make rides evict their riders, or summon rides or riders. | 2 | ❌ | ❌ | ✔️ | ✔️ | ❌ |
/rotate | Changes the rotation of an entity. | 2 | ❌ | ❌ | ✔️ | ✔️ | ❌ |
/save-all | Saves the server to disk. | 4 | Yes | ❌ | ❌ | ❌ | ✔️ |
/save-off | Disables automatic server saves. | 4 | Yes | ❌ | ❌ | ❌ | ✔️ |
/save-on | Enables automatic server saves. | 4 | Yes | ❌ | ❌ | ❌ | ✔️ |
/say | Displays a message to multiple players. | 2 | ❌ | ❌ | ❌ | ✔️ | ❌ |
/schedule | Delays the execution of a function. | 2 | ❌ | ❌ | ❌ | ❌ | ❌ |
/scoreboard | Manages scoreboard objectives and players. | 2 | ❌ | ❌ | ✔️ | ✔️ | ❌ |
/seed | Displays the world seed. | 0 in singleplayer 2 in multiplayer | ❌ | ❌ | ❌ | ❌ | ✔️ |
/setblock | Changes a block to another block. | 2 | ❌ | ✔️ | ❌ | ❌ | ❌ |
/setidletimeout | Sets the time before idle players are kicked. | 3 | Yes | ❌ | ❌ | ✔️ | ❌ |
/setworldspawn | Sets the world spawn. | 2 | ❌ | ❌ | ❌ | ❌ | ✔️ |
/spawnpoint | Sets the spawn point for a player. | 2 | ❌ | ❌ | ❌ | ✔️ | ❌ |
/spectate | Make one player in spectator mode spectate an entity. | 2 | ❌ | ❌ | ❌ | ✔️ | ❌ |
/spreadplayers | Teleports entities to random locations. | 2 | ❌ | ❌ | ✔️ | ✔️ | ❌ |
/stop | Stops a server. | 4 | Yes | ❌ | ❌ | ❌ | ✔️ |
/stopsound | Stops a sound. | 2 | ❌ | ❌ | ❌ | ✔️ | ❌ |
/summon | Summons an entity. | 2 | ❌ | ❌ | ✔️ | ❌ | ❌ |
/tag | Controls entity tags. | 2 | ❌ | ❌ | ✔️ | ✔️ | ❌ |
/team | Controls teams. | 2 | ❌ | ❌ | ✔️ | ✔️ | ❌ |
/teammsg | An alias of /tm. Specifies the message to send to team. | 0 | ❌ | ❌ | ❌ | ✔️ | ❌ |
/teleport | An alias of /tp. Teleports entities. | 2 | ❌ | ❌ | ✔️ | ✔️ | ❌ |
/tell | An alias of /msg and /w. Displays a private message to other players. | 0 | ❌ | ❌ | ❌ | ✔️ | ❌ |
/tellraw | Displays a JSON message to players. | 2 | ❌ | ❌ | ❌ | ✔️ | ❌ |
/tick | Controls the tick rate of the game. | 3 | ❌ | ❌ | ❌ | ❌ | ✔️ |
/time | Changes or queries the world's game time. | 2 | ❌ | ❌ | ❌ | ❌ | ✔️ |
/title | Manages screen titles. | 2 | ❌ | ❌ | ❌ | ✔️ | ❌ |
/tm | An alias of /teammsg. Specifies the message to send to team. | 0 | ❌ | ❌ | ❌ | ✔️ | ❌ |
/tp | An alias of /teleport. Teleports entities. | 2 | ❌ | ❌ | ✔️ | ✔️ | ❌ |
/transfer | Triggers a transfer of a player to another server. | 3 | Yes | ❌ | ❌ | ✔️ | ❌ |
/trigger | Sets a trigger to be activated. | 0 | ❌ | ❌ | ❌ | ✔️ | ❌ |
/w | An alias of /tell and /msg. Displays a private message to other players. | 0 | ❌ | ❌ | ❌ | ✔️ | ❌ |
/weather | Sets the weather. | 2 | ❌ | ❌ | ❌ | ❌ | ✔️ |
/whitelist | Manages server whitelist. | 3 | Yes | ❌ | ❌ | ✔️ | ❌ |
/worldborder | Manages the world border. | 2 | ❌ | ❌ | ❌ | ❌ | ✔️ |
/xp | An alias of /experience. Adds or removes player experience. | 2 | ❌ | ❌ | ❌ | ✔️ | ❌ |