
The action bar is a space just above the player's hotbar where text can be displayed. Some gameplay elements use this to give contextual hints to the player. Text can also be displayed here using the /title command.
Behavior
The action bar is displayed above where item names are shown when an item is selected in your hotbar, so an item name and action bar text can be shown on the screen at the same time.
When text is displayed here, it instantly appears and remains on the screen for approximately 1.5 seconds before fading out. If another action bar message is sent, it instantly replaces the previous text without any transition/animation and remains there for the usual 1.5 seconds it normally would if it was not replacing anything.
In Bedrock Edition, the opacity of the black background on the action bar can be adjusted in the accessibility settings.
Gameplay uses
Java Edition
| Displayed text | Cause |
|---|---|
| Now Playing: %s | When a music disc starts playing nearby. |
| Press %1$s to Dismount | When the player starts riding a vehicle or animal. |
| This bed is occupied | When another entity is already in a bed. |
| You can sleep only at night or during thunderstorms | When a player tries to sleep during the day and without a thunderstorm. |
| You may not rest now; the bed is too far away | When a player tries to sleep in a bed that is too far away. |
| This bed is obstructed | When a player tries to sleep in a bed that has suffocating blocks directly above. |
| You may not rest now; there are monsters nearby | When a player tries to sleep in a bed while there are hostile mobs within a 17×11×17 box centered around the bed. |
| %s/%s players sleeping | When a player starts sleeping but not enough players are sleeping to skip the night. Announced to all players. |
| Sleeping through this night | When enough players are sleeping to skip the night. Announced to all players. |
| No amount of rest can pass this night | When a player starts sleeping but the players_sleeping_percentage game rule is set above 100.
|
| %s is locked! | When a player attempts to open a chest that is locked. |
| Unable to open. Loot not generated yet. | When a player in Spectator tries to open a chest with loot that hasn't been opened yet. |
| Item hotbar saved (restore with %1$s+%2$s) | After saving a creative hotbar. |
| The height limit for building is 319 | Attempting to build past Y=319. |
| The minimum height for building is -64 | Attempting to build below Y=-64. |
| Social Interactions are only available in Multiplayer worlds | Attempting to open the social interactions screen in a Singleplayer world. |
| TNT explosions are disabled | When attempting to ignite a block of TNT or a sulfur cube with TNT, while the tnt_explodes game rule is set to false.
|
Bedrock Edition

Control hints for mounting entities are the only messages shown on the action bar in vanilla gameplay:
- Keyboard & mouse and controller controls (emojis are used for controller buttons):
- Touch controls:
- Minecarts: Tap dismount to exit the minecart
- Cushions: Get up
- Any other mount: Tap dismount to dismount
Boats do not have a dismount message on touch controls.
-
A dismount message with a custom keybind -
Dismount message for a cushion when using a controller -
Dismount message for a boat when using a controller -
Dismount message on touch controls
Other warnings that are shown on the action bar in Java Edition are shown in the chat. Playing and pausing music discs are not shown on the action bar but as item text messages in between the action bar and held item tooltip.
Commands

A custom text message can be displayed on the action bar using the /title command:
History
| Java Edition | |||||||
|---|---|---|---|---|---|---|---|
| 1.6.1 | 13w16a | Added text: "Press [key] to dismount", which is displayed when you are in a minecart or boat or riding a saddled pig, horse, donkey or mule. | |||||
| 1.11 | 16w32a | The warning "You can only sleep at night" is now displayed on the action bar instead of in chat. | |||||
| The warning "You may not rest now, there are monsters nearby" is now displayed on the action bar instead of in chat. | |||||||
| The warning "Height limit for building is 256 blocks" is now displayed on the action bar instead of in chat. | |||||||
| The warning "This bed is occupied" is now displayed on the action bar instead of in chat. | |||||||
| The warning "Unable to open. Loot not generated yet" is now displayed on the action bar instead of in chat. | |||||||
| 16w32b | Added the ability for /title to display text in the action bar position. | ||||||
| 16w33a | Added the warning "You may not rest now, the bed is too far away" when the player is close enough to click on the bed but too far to sleep in it. | ||||||
| 1.12 | 17w06a | Added saved hotbars which, when saved, display the text: "Item toolbar saved (restore with Shift+[key])" on the action bar. | |||||
| 17w16a | Saving hotbars now displays "Item toolbar saved (restore with X+[key])" on the action bar. X does not change according to what "Load Toolbar Activator" is bound to. | ||||||
| 1.13 | pre2 | The "You can only sleep at night" message when using a bed during the day has been changed to "You can sleep only at night and during thunderstorms." | |||||
| 1.16.4 | Pre-release 1 | With the addition of social interactions, a message was added when you try to open social interations in singleplayer: "Social Interactions are only available in Multiplayer worlds" | |||||
| 1.17 | 20w51a | After adding the playersSleepingPercentage gamerule, added message when trying to sleep when the gamerule is set to 100 or higher: "No amount of rest can pass this night" | |||||
| 1.21.5 | 25w10a | With the addition of the tntExplodes gamerule, added message when trying to ignite TNT blocks: "TNT explosions are disabled" | |||||
| 26.1 | 26.1-snapshot-7 | The chat restrictions messages have been removed:
| |||||
Issues
Issues relating to "Action bar" are maintained on the bug tracker. Issues should be reported and viewed there.