Mineuniverse
Action bar

Action bar

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…

6 min read Updated 14 views
Gameplay UI
Advertisement Remove ads with Premium →
Contents (7)
  1. Behavior
  2. Gameplay uses
  3. Java Edition
  4. Bedrock Edition
  5. Commands
  6. History
  7. Issues
The message "You may not rest now; the bed is too far away" is shown on the action bar.

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

An action bar dismount message

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):
    • Minecarts and boats: Press JUMP to exit the minecart/boat
    • Cushions: Press SNEAK to get up
    • Any other mount: Press SNEAK to dismount
  • 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.

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 action bar message with formatting codes and emojis applied

A custom text message can be displayed on the action bar using the /title command:

  • JE: title <targets> actionbar <title>
  • BE: title <player: target> actionbar <titleText: message>

History

Java Edition
1.6.113w16a 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.1116w32a 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.1217w06a 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.13pre2 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.4Pre-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.1720w51a 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.525w10a With the addition of the tntExplodes gamerule, added message when trying to ignite TNT blocks: "TNT explosions are disabled"
26.126.1-snapshot-7 The chat restrictions messages have been removed:
  • "Chat restricted in client options"
  • "Chat disabled by launcher option. Cannot send message.‌"
  • "Chat not allowed by account settings. Press '%s' again for more information."
  • "Chat not allowed by account settings. Cannot send or view messages."
Information about chat restrictions is now displayed on top of the chat box when it is open.

Issues

Issues relating to "Action bar" are maintained on the bug tracker. Issues should be reported and viewed there.

Advertisement Remove ads with Premium →

More in UI

View all 21 →
BossbarA bossbar is a bar at the top of the screen that can track health of a boss mob or the total health of raid mobs. The bossbar disappears when the ender…ChatChatThe chat is a built-in messaging system used to communicate with other players in multiplayer, or to execute commands. In Bedrock Edition, the chat is a…Creative inventoryThe Creative inventory is an interface in Creative mode that contains unlimited amounts of all blocks and items in the game, some of which are not…DamageDamageDamage is the reduction of an entity's health.DeathDeathDeath is a game mechanic related to health, which occurs when the health of an entity reaches 0HP.Debug screenDebug screenThe debug screen, debug overlay or F3 screen functions as a menu for accessing debugging information, but also provides useful in-game information like…DialogDialogs are simple modal windows that can display information and receive player input.Geared mobsGeared mobsSome mobs can spawn holding weapons and other items and/or wearing armor, both of which may be enchanted. In addition, some of them may also spawn with…
Advertisement Remove ads with Premium →

Related mods

Action Bar Health Plugin · 10.8K downloads Action Bar by Karl Karlmann Action Bar by Karl Karlmann Mod · 1.5K downloads My Action Bar My Action Bar Data Pack · 52 downloads
Explore the Minecraft Wiki
Blocks, items, mobs, biomes and game mechanics — all in one place.
Wiki home