Skip to content
[/craft]

Show an Action Bar Message

Display text just above the hotbar

✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026

Shows a short line of text in the action bar — the space just above the hotbar where item names and status messages appear. It fades on its own after a couple of seconds and does not block the screen, so it is ideal for live status like scores, timers, or hints. On Java it takes an SNBT text component; on Bedrock it takes plain text (or /titleraw for JSON).

/title @a actionbar {text:"Objective updated",color:aqua}
57 characters

How to use

  1. Open chat (T on Java, / on Bedrock).
  2. Paste the command, editing the message text.
  3. Press Enter — the message flashes above the hotbar.
  4. Re-run it (e.g. from a repeating command block) to keep a value updated.

Related commands

Display big center-screen text to a player

/title @a title {text:"Welcome!",color:gold,bold:true}

Show a smaller second line under a screen title

/title @a subtitle {text:"Good luck out there",color:yellow}

Broadcast a custom colored message in chat

/tellraw @a {text:"Server restarting soon",color:red,bold:true}

Make chat text a clickable button that runs a command

/tellraw @a {text:"[Click to teleport to spawn]",color:green,click_event:{action:run_command,command:"/spawn"}}

Display an objective's scores on the right side of the screen

/scoreboard objectives setdisplay sidebar points

Show a custom boss health bar at the top of the screen

/bossbar add event {text:"Event Timer"} /bossbar set minecraft:event color red /bossbar set minecraft:event players @a