Wiki ArticleBedrock Edition specific informationMinecraft Education specific informationInformation neededJava Edition specific information

Commands

Commands (also known as console commands or slash commands) are a game mechanic that execute specific actions when entered as text or triggered by blocks or certain entities.

In the client, commands are entered via the chat window, which is displayed by pressing the T / ↵ Enter / ‌[BE only] / ‌[BE only] or / key. Using the / key also enters the forward-slash that commands require as a prefix, so it is a useful shortcut. The ↑ Up / and ↓ Down / keys can be used to view previously entered text, including all previously executed commands.

When the cursor is at a location corresponding to some types of argument (such as an entity ID), a list of applicable values appears above the text box. If the argument already contains characters, the list displays only those values containing the typed text. Pressing ↹ Tab while entering commands cycles through possible commands or arguments, and can be used to auto-enter them.

Complete article available

This cached Wiki page is unusually large, so it is loaded on demand to keep the initial page fast.