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: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Sync: new page from Minecraft
 
SyncBot (talk | contribs)
Sync: updated from Minecraft
 
Line 1: Line 1:
{{Update|Message about trying to build at the minimum Y value, and the spectator teleport failing. Possibly others are missing.}}
[[File:Action_bar_bed_too_far.png|thumb|The message "You may not rest now; the bed is too far away" is shown on the action bar.]]
[[File:Action_bar_bed_too_far.png|thumb|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:bed]]s, use this to give contextual hints to the player. Text can also be displayed here using the {{cmd|title}} command.
The '''action bar''' is a space just above the player's [[Minecraft: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 {{cmd|title}} command.


== Behavior ==
== Behavior ==
Line 13: Line 11:


== Gameplay uses ==
== Gameplay uses ==
{{IN|be}}, certain messages are shown in the [[Minecraft:chat]] instead of the action bar.
 
=== ''Java Edition'' ===
{| class="wikitable"
{| class="wikitable"
! Displayed text
! Displayed text
Line 24: Line 23:
| When the player starts riding a vehicle or animal.
| When the player starts riding a vehicle or animal.
|-
|-
| This bed is occupied{{Only|je|short=1}}
| This bed is occupied
| When another entity is already in a bed.
| When another entity is already in a bed.
|-
|-
| You can sleep only at night or during thunderstorms{{Only|je|short=1}}
| You can sleep only at night or during thunderstorms
| When a player tries to sleep during the day and without a thunderstorm.
| When a player tries to sleep during the day and without a thunderstorm.
|-
|-
| You may not rest now; the bed is too far away{{Only|je|short=1}}
| 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.
| When a player tries to sleep in a bed that is too far away.
|-
|-
| This bed is obstructed{{Only|je|short=1}}
| This bed is obstructed
| When a player tries to sleep in a bed that has suffocating blocks directly above.
| When a player tries to sleep in a bed that has suffocating blocks directly above.
|-
|-
| You may not rest now; there are monsters nearby{{Only|je|short=1}}
| 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.
| 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{{Only|je|short=1}}
| %s/%s players sleeping
| When a player starts sleeping but not enough players are sleeping to skip the night. Announced to all players.
| When a player starts sleeping but not enough players are sleeping to skip the night. Announced to all players.
|-
|-
| Sleeping through this night{{Only|je|short=1}}
| Sleeping through this night
| When enough players are sleeping to skip the night. Announced to all players.
| When enough players are sleeping to skip the night. Announced to all players.
|-
|-
| No amount of rest can pass this night{{Only|je|short=1}}
| No amount of rest can pass this night
| When a player starts sleeping but the {{gmr|players_sleeping_percentage}} game rule is set above 100.
| When a player starts sleeping but the {{gmr|players_sleeping_percentage}} game rule is set above 100.
|-
|-
| %s is locked!{{Only|je|short=1}}
| %s is locked!
| When a player attempts to open a [[Minecraft:chest]] that is locked.
| When a player attempts to open a [[Minecraft:chest]] that is locked.
|-
|-
| Unable to open. Loot not generated yet.{{Only|je|short=1}}
| Unable to open. Loot not generated yet.
| When a player in [[Minecraft:Spectator]] tries to open a chest with loot that hasn't been opened yet.
| 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){{Only|je|short=1}}
| Item hotbar saved (restore with %1$s+%2$s)
| After saving a creative hotbar.
| After saving a creative hotbar.
|-
|-
| Height limit for building is 319{{Only|je|short=1}}
| The height limit for building is 319
| Attempting to build past Y=319.
| Attempting to build past Y=319.
|-
|-
| Social Interactions are only available in Multiplayer worlds{{Only|je|short=1}}
|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 [[Minecraft:social interactions]] screen in a [[Minecraft:Singleplayer]] world.
| Attempting to open the [[Minecraft:social interactions]] screen in a [[Minecraft:Singleplayer]] world.
|-
|-
| Chat disabled in client options.{{Only|je|short=1}}
| TNT explosions are disabled
| Attempting to open the [[Minecraft:chat]] when it is disabled in the [[Minecraft:options]].
|-
| Chat disabled by launcher option. Cannot send message.{{Only|je|short=1}}
| 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.{{Only|je|short=1}}
| Attempting to open the chat when it is disabled from the account.
|-
| Chat not allowed by account settings. Cannot send or view messages.{{Only|je|short=1}}
| After pressing the chat keybind to get more information.
|-
| TNT explosions are disabled{{Only|je|short=1}}
| When attempting to ignite a block of [[Minecraft:TNT]] or a [[Minecraft:sulfur cube]] with TNT, while the {{gmr|tnt_explodes}} game rule is set to false.
| When attempting to ignite a block of [[Minecraft:TNT]] or a [[Minecraft:sulfur cube]] with TNT, while the {{gmr|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. Most warnings that are shown on the action bar in ''Java Edition'' are shown in the [[Minecraft: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 ==
== Commands ==
{{Main|Commands/title}}
[[File:Styled action bar message.png|thumb|A custom action bar message with [[formatting codes]] and [[Minecraft:emojis]] applied]]
 
A custom text message can be displayed on the action bar using the {{cmd|title}} command:
A custom text message can be displayed on the action bar using the {{cmd|title}} command:
* {{JE|short=1}}: <code>title <targets> actionbar <title></code>
* {{JE|short=1}}: <code>title <targets> actionbar <title></code>
Line 87: Line 79:


== History ==
== History ==
{{missing info|When were other action bar messages listed above added and updated?}}
{{missing info|When were other action bar messages listed above added and updated?|section=1}}
{{HistoryTable
{{HistoryTable
|{{HistoryLine|java}}
|{{HistoryLine|java}}
Line 100: Line 92:
|{{HistoryLine||1.17|dev=20w51a|After adding the {{code|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"}}
|{{HistoryLine||1.17|dev=20w51a|After adding the {{code|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"}}
|{{HistoryLine||1.21.5|dev=25w10a|With the addition of the {{code|tntExplodes}} gamerule, added message when trying to ignite TNT blocks: "TNT explosions are disabled"}}
|{{HistoryLine||1.21.5|dev=25w10a|With the addition of the {{code|tntExplodes}} gamerule, added message when trying to ignite TNT blocks: "TNT explosions are disabled"}}
}}
|{{HistoryLine||26.1|dev=26.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 ==
{{issue list}}
{{issue list}}
== See also ==
* [[Minecraft:Chat]]
* [[Minecraft:Commands/title]]


== Navigation ==
== Navigation ==

Latest revision as of 11:21, 30 October 2026

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 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

Java Edition

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 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 Template:Gmr game rule is set above 100.
%s is locked! When a player attempts to open a Minecraft:chest that is locked.
Unable to open. Loot not generated yet. 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) 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 Minecraft:social interactions screen in a Minecraft:Singleplayer world.
TNT explosions are disabled 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.

Bedrock Edition

Control hints for mounting entities are the only messages shown on the action bar in vanilla gameplay. Most warnings that are shown on the action bar in Java Edition are shown in the Minecraft: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

File:Styled action bar message.png
A custom action bar message with formatting codes and Minecraft:emojis applied

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

Navigation

Template:Navbox gameplay

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