/title
Controls the title display on players' screens. Can show titles, subtitles, action bar text, and configure display timing.
Syntax
/title <targets> <clear|reset|actionbar|subtitle|times|title> ...Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| targets | entity | Required | The player(s) to show the title to. |
| action | literal | Required | title = main title; subtitle = subtitle text; actionbar = action bar text; times = set timing; clear = remove; reset = reset to defaults. |
| text | component | Optional | JSON text component for title, subtitle, or actionbar actions. |
Examples
/title @a title {"text":"Welcome!","color":"gold","bold":true}Displays "Welcome!" in bold gold text as a title for all players.
/title @a subtitle {"text":"Enjoy your stay","color":"yellow"}Sets the subtitle text (displayed below the title).
/title @a times 20 60 20Sets title timing: 1 second fade in, 3 seconds stay, 1 second fade out.
Common Mistakes
- Sending a subtitle without a title, the subtitle is only shown when a title is displayed.
- Forgetting that title text uses JSON text components, not plain strings.
Notes
Set subtitle and times BEFORE sending the title, as the title command triggers the display. The actionbar action displays text above the hotbar. Times are in ticks (20 ticks = 1 second).
Related Commands
Need a Minecraft server?
Try these commands on Astroworld or host your own server.
Try Astroworld Hosting