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 in Java Edition. 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 "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[]
title <targets> (clear|reset) title <targets> (title|subtitle|actionbar) <title> title <targets> times <fadeIn> <stay> <fadeOut>- Bedrock Edition (plain text)
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 game ticks) of all current and future screen titles for the specified player(s).Arguments[]
JE: <targets>: entity
BE: target: target: CommandSelector<Player>
JE: <title>: component
BE: titleText: message: CommandMessage or raw json titleText: json: Json::Value
- For titleText: message, must be a plain text. 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.@here can be used to mention all players.
- for raw json titleText: json, must be a JSON Object.
JE: <fadeIn>: integer, <stay>: integer and <fadeOut>: integer
BE: fadeIn: int: int, stay: int: int, and fadeOut: int: int
Result[]
Example result of the title command.
any | the arguments are not specified correctly | Unparseable | Unparseable |
player: target is not in player type | N/A | Failed | |
<targets> or player: target fails to resolve to one or more online players | Failed | ||
On success | Displays the title. |
Output[]
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[]
Notes[]
Commands
So, recently, I spent hours trying to find a way to make screen pop up in the chat or across the screen. When I finally did, It was confusing.... but, I decided to make a blog to show you how.
You Need:
Command Block (/give ("player name") minecraft:command_block )To be in Gamemode One (/gamemode 1)Lever/Button - Way to activate Open up command block screen and type the code.To make the text pop up across a player's screen, do this:
/title @a title {"text":"","extra":[{"text":"YOUR-TEXT-HERE","color":"YOUR-COLOR-HERE","bold":"true"}]}
/title @a title {"text":"","extra":[{"text":"YOUR-TEXT-HERE","color":"YOUR-COLOR-HERE","bold":"true"},"italic":"true"]}
You can also add: bold, underline, strike-through, or italic.You might be wondering: What if text is TOO long to fit on the screen?Easy: Change the /title @a title to /tellraw @a.Then the text will appear in the chat. If you want to ONLY give the text to one person, you can replace @a with @p (nearest person) or a player's name, such as SharkStew (my username).COLORS:red, dark_red, yellow, gold, green, dark_green, blue, dark_blue, aqua, dark_aqua, light_purple, dark_purple, gray, dark_gray, white, blackThese are all the colors that will show up in this command. If you type something like "purple", the text will show up white.TAGS/FORMATS:
You can also use the following tags to style the text:• bold
• italic
• underlined:
• strikethrough
• obfuscatedIf you want to send a command to a friend to troll them, just use this command:/title (Player's Name or @a/@p) title {"text":"","extra":[{"text":"The End Is Near!!","color":"red","bold":"true"}]} This command can be issued from the chat (T) or a command block. If the text is very long and in /tellraw format, using a command block is best idea, so the whole command shows up.Thanks for reading this post on MC Screen Text and have a great day!Please give me a diamond or comment if this helped/didn't help you, and why!! Love ya guys!!
-Puppi Dog (SharkStew)