Commands/title

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. All of them are specified using raw JSON text components $$. $$, the  command uses plain text while   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 "fadeIn", "stay", and "fadeOut" values of each player are only stored on their own client side, and these values can be changed only when executing this command.

Syntax

 * Java Edition


 * Bedrock Edition (plain text)


 * Bedrock Edition (JSON)

Detail

 * Clears the screen title from the screens of the specified player(s).
 * 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).
 * 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).
 * 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.
 * Displays text on the action bar to the specified player(s), or changes the current action bar title.
 * Changes the fade-in, stay, and fade-out times (measured in game ticks) of all current and future screen titles for the specified player(s).
 * 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.
 * Displays text on the action bar to the specified player(s), or changes the current action bar title.
 * Changes the fade-in, stay, and fade-out times (measured in game ticks) of all current and future screen titles for the specified player(s).
 * Displays text on the action bar to the specified player(s), or changes the current action bar title.
 * Changes the fade-in, stay, and fade-out times (measured in game ticks) of all current and future screen titles for the specified player(s).
 * Changes the fade-in, stay, and fade-out times (measured in game ticks) of all current and future screen titles for the specified player(s).

Arguments

 * Specifies the player(s) to display a screen title to.


 * or
 * Specifies the text to display as a title, subtitle, or on the action bar.
 * For ,
 * for ,
 * For ,
 * for ,
 * for ,


 * , and
 * ,, and
 * Specifies the time in game ticks (1/20ths of a second) for the screen title to fade in, stay, and fade out. $$, values below 0 are treated as 0. If not specified, defaults to 10 (0.5 seconds), 70 (3.5 seconds), and 20 (1 second).
 * And $$ it must be between -2147483648 and 2147483647 (inclusive).

Examples
All of the following displays a bold screen title "Chapter I" with a gray italic subtitle "The story begins…" to all players.


 * $$ using plain text:
 * $$ with raw text variants:
 * $$ using plain text:
 * $$ with raw text variants:
 * $$ with raw text variants:
 * ⇭⇭⇭⇭⇭ with raw text variants:
 * ⇭⇭⇭⇭⇭ with raw text variants: