Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Action bar

From SAS Gaming Wiki

Template:Update

File:Action bar bed too far.png
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 Minecraft:hotbar where text can be displayed. Some gameplay elements, such as Minecraft:beds, use this to give contextual hints to the player. Text can also be displayed here using the Template:Cmd 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 secondsTemplate:Info needed 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.

Template:IN, the opacity of the black background on the action bar can be adjusted in the accessibility settings.

Gameplay uses

Template:IN, certain messages are shown in the Minecraft:chat instead of the action bar.

Displayed text Cause
Now Playing: %s When a Minecraft:music disc starts playing nearby.
Press %1$s to Dismount When the player starts riding a vehicle or animal.
This bed is occupiedTemplate:Only When another entity is already in a bed.
You can sleep only at night or during thunderstormsTemplate:Only When a player tries to sleep during the day and without a thunderstorm.
You may not rest now; the bed is too far awayTemplate:Only When a player tries to sleep in a bed that is too far away.
This bed is obstructedTemplate:Only When a player tries to sleep in a bed that has suffocating blocks directly above.
You may not rest now; there are monsters nearbyTemplate:Only 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 sleepingTemplate:Only When a player starts sleeping but not enough players are sleeping to skip the night. Announced to all players.
Sleeping through this nightTemplate:Only When enough players are sleeping to skip the night. Announced to all players.
No amount of rest can pass this nightTemplate:Only When a player starts sleeping but the Template:Gmr game rule is set above 100.
%s is locked!Template:Only When a player attempts to open a Minecraft:chest that is locked.
Unable to open. Loot not generated yet.Template:Only When a player in Minecraft:Spectator tries to open a chest with loot that hasn't been opened yet.
Item hotbar saved (restore with %1$s+%2$s)Template:Only After saving a creative hotbar.
Height limit for building is 319Template:Only Attempting to build past Y=319.
Social Interactions are only available in Multiplayer worldsTemplate:Only Attempting to open the Minecraft:social interactions screen in a Minecraft:Singleplayer world.
Chat disabled in client options.Template:Only Attempting to open the Minecraft:chat when it is disabled in the Minecraft:options.
Chat disabled by launcher option. Cannot send message.Template:Only Attempting to open the chat when it is disabled from the Minecraft:launcher.
Chat not allowed by account settings. Press '%s' again for more information.Template:Only Attempting to open the chat when it is disabled from the account.
Chat not allowed by account settings. Cannot send or view messages.Template:Only After pressing the chat keybind to get more information.
TNT explosions are disabledTemplate:Only When attempting to ignite a block of Minecraft:TNT or a Minecraft:sulfur cube with TNT, while the Template:Gmr game rule is set to false.

Commands

Template:Main

A custom text message can be displayed on the action bar using the Template:Cmd command:

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

History

Template:Missing info Template:HistoryTable

Issues

Template:Issue list

See also

Navigation

Template:Navbox gameplay

Minecraft:ja:アクションバー Minecraft:pt:Barra de ação Minecraft:zh:动作栏