Commands
Open chat with T or /, type one, and press Enter. Tab completes names, items, creatures and players as you type, and the line above chat shows what comes next.
In your own worlds every command works. On a server, the ones marked for operators need the server's say-so: an operator gives it with /op, or the server can allow them for everyone.
For everyone
| Command | After it | What it does |
|---|---|---|
/help | [command|page] | Lists the commands, or explains one. |
/spawn | Takes you back to your spawn point. | |
/seed | Says the world's seed. | |
/coords | Says where you are and which way you face. Also /pos, /where. | |
/day | Says which day it is. | |
/name | [new name] | Says or changes your name. |
/me | <action> | Tells everyone what you're doing. |
/msg | <player> <message> | Whispers to one player. Also /tell, /w, /whisper. |
/r | <message> | Whispers back to whoever whispered last. Also /reply. |
/list | Says who's playing. Also /online, /who. | |
/ping | Says how quick your connection is. | |
/clearchat | Clears the chat. Also /cls. |
Changing the game (operators on servers)
| Command | After it | What it does |
|---|---|---|
/season | [spring|summer|autumn|winter] | Tells the season and day, or moves on to the start of a season. |
/time | <set|add|query> <value> | Sets, moves on or tells the time. |
/gamemode | <mode> [player] | Changes game mode. Also /mode, /gm. |
/give | <item> [count] [player] | Gives an item. |
/clear | [item] [player] | Empties your inventory, or takes away one kind of item. |
/kill | [player] | Makes you faint. |
/heal | [player] | Fills your hearts, hunger, breath and mana. |
/xp | <add|set> <amount>[L] [player] | Gives you experience points, or levels with an L (/xp add 5L). Also /experience. |
/feed | [player] | Fills your hunger. |
/effect | <effect|clear> [seconds] [player] | Gives you a potion's effect. |
/enchant | <enchantment> [level] | Enchants what you're holding. |
/summon | <creature> [count] | Brings a creature in front of you. |
/tp | <x y z|player> [player] | Takes you somewhere, or to someone. Also /teleport. |
/spawnpoint | Makes where you stand your spawn point. | |
/setworldspawn | Makes where you stand the world's spawn. | |
/setblock | <x y z> <block> | Puts a block somewhere. |
/fill | <x1 y1 z1> <x2 y2 z2> <block> | Fills a box with a block (air empties it). |
/locate | <biome|cave> <name> | Finds the nearest biome or cave, without going there. |
/biome | <name> | Takes you to the nearest of a biome. |
/cave | <kind> | Takes you to the nearest of a kind of cave. |
/weather | <kind> | Shows or changes the weather. |
/sky | <mood> | Shows or changes the sky's mood. |
/dim | <overworld|skyland> | Goes to another dimension, at the same place. |
/gamerule | <rule> [true|false] | Shows or changes one of the world's rules. |
/fly | Flying on or off, in creative. | |
/dragon | Calls the dragon. | |
/say | <message> | Says something to everyone, in your name. |
Running a server
Only on servers, for operators, and in the server's own console without the slash.
| Command | After it | What it does |
|---|---|---|
/kick | <player> [reason] | Sends someone off the server. |
/ban | <player> [reason] | Bans someone from the server. |
/ban-ip | <player|address> [reason] | Bans a player's address. |
/pardon | <player> | Lifts a ban. Also /unban. |
/pardon-ip | <address> | Lifts a ban on an address. |
/banlist | [players|ips] | Shows who is banned. |
/op | <player> | Makes someone an operator. |
/deop | <player> | Takes away someone's operator powers. |
/whitelist | <on|off|add|remove|list|reload> [player] | Who may join the server. |
/save-all | Saves the server's world now. | |
/stop | Saves and shuts the server down. | |
/motd | [message] | Shows or changes the server's message. |
