Minecraft:Action bar: Difference between revisions
More actions
Sync: new page from Minecraft |
Sync: updated from Minecraft |
||
| Line 1: | Line 1: | ||
[[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 | 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 == | ||
=== ''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 | | 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 | | 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 | | 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 | | 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 | | 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 | | %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 | | 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 | | 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! | | %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. | | 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) | | Item hotbar saved (restore with %1$s+%2$s) | ||
| After saving a creative hotbar. | | After saving a creative hotbar. | ||
|- | |- | ||
| | | 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 | |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. | ||
|- | |- | ||
| TNT explosions are disabled | |||
| TNT explosions are disabled | |||
| 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 == | ||
[[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}} | ||
== Navigation == | == Navigation == | ||
Latest revision as of 11:21, 30 October 2026
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
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
Issues
Minecraft:ja:アクションバー Minecraft:pt:Barra de ação Minecraft:zh:动作栏