/title
/title| Permission level required |
|
|---|---|
| Restrictions |
Cheat only |
{
"title": "<code>/title</code>",
"rows": [
{
"field": "\n* 2 <sup class=\"noprint nowrap Inline-Template \" title=\"\">[<i><span title=\"This statement only applies to Java Edition\">(link to Java Edition article, displayed as JE) only</span></i>]</sup>\n* 1 <sup class=\"noprint nowrap Inline-Template \" title=\"\">[<i><span title=\"This statement only applies to Bedrock Edition\">(link to Bedrock Edition article, displayed as BE) only</span></i>]</sup>",
"label": "(link to Permission level article, displayed as Permission level<br>required)"
},
{
"field": "(link to Options article, displayed as Cheat) only<sup class=\"noprint nowrap Inline-Template \" title=\"\">[<i><span title=\"This statement only applies to Bedrock Edition\">(link to Bedrock Edition article, displayed as BE) only</span></i>]</sup>",
"label": "(link to Commands#Restrictions article, displayed as Restrictions)"
}
],
"invimages": [],
"images": []
}
Controls text displayed on the screen.
Usage

A screen title is displayed to players as a single line of large center-aligned text in the middle of their displays, and can include a subtitle; a second, separate line of text displayed just below the title. Text can also be printed to the action bar, the space just above the player's hotbar.
In Java Edition, all of them are specified using text components. In Bedrock Edition, the /title command uses plain text while /titleraw uses raw JSON text components.
Screen titles can be set to fade in and fade out, and the duration they are displayed can also be specified. Screen titles scale in size with the GUI Scale, and screen titles that are too big to fit on the screen are not line-wrapped (they just overflow off the screen on both sides). Note that the "fadeIn", "stay", and "fadeOut" values of each player are only sent to their own client side rather than stored in the server side. For a client, these values are cross-save and cross-server. These values are reset only when the client restarts, and the default is 10 game ticks (0.5 seconds), 70 game ticks (3.5 seconds), and 20 game ticks (1 second).
In Bedrock Edition, the opacity of the black background of the title can be adjusted with the "Text Background Opacity" option in the accessibility settings.
Syntax
- Java Edition
title <targets> (clear|reset)title <targets> (title|subtitle|actionbar) <title>title <targets> times <fadeIn> <stay> <fadeOut>
- Bedrock Edition (plain text)
title <player: target> <clear|reset>title <player: target> <title|subtitle|actionbar> <titleText: message>title <player: target> times <fadeIn: int> <stay: int> <fadeOut: int>
- Bedrock Edition (JSON)
titleraw <player: target> <clear|reset>titleraw <player: target> <titleLocation: TileRawSet> <raw json titleText: json>titleraw <player: target> times <fadeIn: int> <stay: int> <fadeOut: int>
Detail
... clear- Clears the screen title from the screens of the specified player(s).
... reset- Resets the subtitle text for the specified player(s) to blank text, and the fade-in, stay and fade-out times to their default values (defaults to 10 gt, 70 gt, and 20 gt).
... subtitle ...- If a screen title is currently being displayed to the specified player(s), changes the current subtitle to the specified text; otherwise, specifies the subtitle for the next screen title to be displayed to the specified player(s).
... title ...- Displays a screen title to the specified player(s), or changes the current screen title to the specified text. After fading out, resets the subtitle back to blank text, but does not reset fade-in, stay, and fade-out times.
... actionbar ...- Displays text on the action bar to the specified player(s), or changes the current action bar title.
... times ...- Changes the fade-in, stay, and fade-out times (measured in time durations) of all current and future screen titles for the specified player(s).
Arguments
JE: <targets>: entity
BE: target: target: CommandSelector<Player>
- Specifies the player(s) to display a screen title to.
- Must be a player name, a target selector or a UUID. And the target selector must/should be of player type. In Bedrock Edition, the target selector should be of player type.
JE: <title>: component
BE: titleText: message: CommandMessage or raw json titleText: json: Json::Value
- Specifies the text to display as a title, subtitle, or on the action bar.
- In Java Edition, it must be a valid text component.
- In Bedrock Edition,
- For
titleText: message, it is a greedy phrase string argument (taking the rest of the command as the string argument). Can include spaces as well as target selectors. The game replaces entity selectors in the message with the list of selected entities' names, which is formatted as "name1 and name2" for two entities, or "name1, name2, ... and namen" for n entities.@<player name>can be used to mention a player;@herecan be used to mention all players. - for
raw json titleText: json, it must be a JSON [NBT Compound / JSON Object]Object.
- For
JE: <fadeIn>: time, <stay>: time and <fadeOut>: time
BE: fadeIn: int: int, stay: int: int, and fadeOut: int: int
- Specifies the time for the screen title to fade in, stay, and fade out. In Bedrock Edition, it's specified in game ticks (1/20ths of a second), and values below 0 are treated as 0.
- In Java Edition, it must be a single-precision floating-point number suffixed with a unit. It must be not less than 0 gameticks. Units include:
d: an in-game day, 24000 gameticks;s: a second, 20 gameticks;t(default and omitable): a single gametick; the default unit.
.5dis same as 12000 gameticks.
In Bedrock Edition it must be a [Int] 32-bit integer number.
Result
| Command | Trigger | Java Edition | Bedrock Edition |
|---|---|---|---|
| Any | The command is incomplete, or any argument is not specified correctly. | Unparseable | Unparseable |
raw json message: json is not a raw JSON text. | N/A | Failed | |
player: target is a target selector that is not in player type. | |||
<targets> or player: target fails to resolve to one or more online players. | Failed | ||
| Otherwise | Successful | ||
Output
| Command | Edition | Situation | Success Count | /execute store success ... | /execute store result ... |
|---|---|---|---|---|---|
| Any | Java Edition | On fail | 0 | 0 | 0 |
| On success | 1 | 1 | the number of targeted players | ||
| Bedrock Edition | On fail | 0 | N/A | N/A | |
| On success | the number of targeted players | N/A | N/A |
Examples
All of the following displays a bold screen title "Chapter I" with a gray italic subtitle "The story begins…" to all players.
- In Java Edition:
/title @a subtitle {"text": "The story begins...", "color": "gray", "italic": true}/title @a title {"text": "Chapter I", "bold": true}
- In Bedrock Edition using plain text:
/title @a subtitle §7§oThe story begins.../title @a title §lChapter I
- In Bedrock Edition with raw text variants:
/titleraw @a subtitle {"rawtext": [{"text":"§7§oThe story begins..."}]}/titleraw @a title {"rawtext": [{"translate":"§lChapter %%s","with":["I"]}]}
History
| Java Edition | |||||||
|---|---|---|---|---|---|---|---|
| 1.8 | 14w20a | Added /title. | |||||
| 1.11 | 16w32b | Added the ability for /title to display text in the action bar position. | |||||
| 1.19.4 | 22w03a | Now /title uses time argument types rather than integer.
| |||||
| Before this snapshot, these integer arguments specifies a time in game ticks. | |||||||
| 1.21.5 | 25w02a | Text Components are now specified with SNBT instead of JSON. | |||||
| Pocket Edition | |||||||
| 1.0.5 | alpha 1.0.5.0 | Added /title. | |||||
-
First image of the title command.