Control Screen Titles Using Raw JSON Messages
The /titleraw command lets you control the text and timing for on-screen titles in Minecraft Bedrock Edition using raw JSON messages. You can display messages across the middle of the screen as a main title, right below it as a subtitle, or above the hotbar using the actionbar location.
Map makers and server hosts use this command to show custom messages to players during events, minigames, or quests. To run this command, cheats must be enabled in your world and you need the Game Directors permission level.
/titleraw <player: target> clearClear raw title
/titleraw <player: target> resetReset raw title
/titleraw <player: target> <titleLocation: TitleRawSet> <raw json titleText: json>Add raw title
/titleraw <player: target> times <fadeIn: int> <stay: int> <fadeOut: int>Add raw title, fade in, fade out
| Argument | Type | What it means |
|---|---|---|
fadeIn | int | The number of gameticks for the raw title to fade in. Default: `0`. |
fadeOut | int | The number of gameticks for the raw title to fade out. Default: `0`. |
player | target | A player name `string` or `target selector` to identify the player. |
raw json titleText | json | A JSON `string` for the raw title text. |
stay | int | The number of gameticks for the raw title to stay. Default: `0`. |
titleLocation | TitleRawSet | The location where the raw title will display. Uses the `TitleRawSet` Enums `title`, `subtitle`, or `actionbar`. |
/titleraw @p title {"rawtext":[{"text":"Welcome"}]}Displays a main title saying Welcome in the center of the screen for the nearest player.
/titleraw @a subtitle {"rawtext":[{"text":"Round 1 Begins"}]}Sets the subtitle text to Round 1 Begins for all players in the world.
/titleraw @s actionbar {"rawtext":[{"text":"Checkpoint Reached"}]}Shows a small message above the hotbar for the player running the command.
/titleraw Steve times 20 60 10Sets the title timing for the player named Steve to a 20-tick fade-in, 60-tick stay, and 10-tick fade-out.
/titleraw @r clearImmediately removes any active title from the screen of one random player.
/titleraw Alex resetClears the subtitle text to blank and resets all fade and stay timings back to default for the player named Alex.
/titleraw @a[r=15] title {"rawtext":[{"text":"Boss Arena"}]}Displays a main title saying Boss Arena to every player within a 15-block radius.
/titleraw @p[m=a] times 40 100 30Changes the fade-in, stay, and fade-out durations for the closest player currently in Adventure mode.
Minecraft Java Edition does not have a command named /titleraw, as this command is exclusive to Bedrock Edition.
The clear option simply removes the active title currently showing on the player's screen, while reset sets the subtitle text to blank and restores the fadeIn, stay, and fadeOut times back to their default values.
You can display your JSON message in three different spots by setting the location argument to title, subtitle, or actionbar.
The command requires cheats to be enabled in your world settings and your player account must have the Game Directors permission level.