This page documents important vanilla Minecraft commands, available on all standard Minecraft servers. Availability is marked for in-game usage and server console usage.
| Command | Example | In-game | Console | Description |
|---|---|---|---|---|
/op | /op Steve | Grants operator permissions to a player. | ||
/deop | /deop Steve | Removes operator permissions from a player. | ||
/kick | /kick Steve Spamming | Disconnects a player from the server. | ||
/ban | /ban Steve Griefing | Permanently bans a player. | ||
/ban-ip | /ban-ip 192.0.2.1 | Bans an IP address from the server. | ||
/pardon | /pardon Steve | Removes a player ban. | ||
/pardon-ip | /pardon-ip 192.0.2.1 | Removes an IP ban. | ||
/whitelist | /whitelist add Steve | Manages the server whitelist. | ||
/list | /list | Shows all online players. |
| Command | Example | In-game | Console | Description |
|---|---|---|---|---|
/gamemode | /gamemode creative Steve | Changes a player's game mode. | ||
/difficulty | /difficulty hard | Sets the server difficulty. | ||
/gamerule | /gamerule keepInventory true | Changes game rules. | ||
/defaultgamemode | /defaultgamemode survival | Sets default gamemode for new players. | ||
/team | /team add red | Manages teams for players. | ||
/scoreboard | /scoreboard objectives list | Manages scoreboards and objectives. |
| Command | Example | In-game | Console | Description |
|---|---|---|---|---|
/time | /time set day | Modifies world time. | ||
/weather | /weather clear 6000 | Changes the weather. | ||
/seed | /seed | Displays the world seed. | ||
/setworldspawn | /setworldspawn | Sets the world spawn point. | ||
/worldborder | /worldborder set 5000 | Manages the world border. | ||
/locate | /locate structure village | Locates nearby structures. | ||
/locatebiome | /locatebiome minecraft:plains | Finds specific biomes. | ||
/forceload | /forceload add ~ ~ | Forces chunks to stay loaded. |
| Command | Example | In-game | Console | Description |
|---|---|---|---|---|
/tp | /tp Steve Alex | Teleports players or entities. | ||
/teleport | /teleport Steve 0 80 0 | Alternative form of /tp. | ||
/spawnpoint | /spawnpoint Steve | Sets a player's spawn point. |
| Command | Example | In-game | Console | Description |
|---|---|---|---|---|
/give | /give Steve diamond 3 | Gives items to a player. | ||
/clear | /clear Steve | Clears a player's inventory. | ||
/effect | /effect give Steve speed 60 1 | Applies potion effects. | ||
/enchant | /enchant Steve sharpness 3 | Enchants the held item. | ||
/xp | /xp add Steve 10 levels | Gives experience points. | ||
/summon | /summon minecraft:zombie ~ ~ ~ | Spawns entities or mobs. | ||
/kill | /kill Steve | Kills players or entities. | ||
/attribute | /attribute Steve minecraft:generic.max_health base set 40 | Modifies entity attributes. | ||
/data | /data get entity Steve | Reads or modifies NBT data. |
| Command | Example | In-game | Console | Description |
|---|---|---|---|---|
/say | /say Server restart in 5 minutes | Broadcasts a message. | ||
/me | /me waves | Sends an action message. | ||
/help | /help ban | Displays help information. | ||
/stop | /stop | Safely shuts down the server. | ||
/reload | /reload | Reloads server resources (not recommended). | ||
/schedule | /schedule function test:tick 10t | Schedules function execution. |