/hud
< Commands
This article is about the command. For the system showing the player's conditions, see Heads-up display.
This feature is exclusive to Bedrock Edition and Minecraft Education.
/hud| Permission level required |
1 |
|---|---|
| Restrictions |
Cheat only |
{
"title": "<code>/hud</code>",
"rows": [
{
"field": "1",
"label": "(link to Permission level article, displayed as Permission level<br>required)"
},
{
"field": "(link to Option article, displayed as Cheat) only<br>",
"label": "(link to Commands#Restrictions article, displayed as Restrictions)"
}
],
"invimages": [],
"images": []
}
Changes the visibility of a HUD element.
Syntax
hud <target: target> <visible: HudVisibility> [hud_element: HudElement]
Arguments
target: target: CommandSelector<Player>
- Specifies the target(s) to change the HUD element(s) visibility for.
- Must be a player name or a target selector.
visible: HudVisibility: enum
- Whether
hideorresetthe HUD element(s) visibility. - Must be either
hideorreset.
hud_element: HudElement: enum
- The HUD element(s).
- Must be one of
air_bubbles,all,armor,crosshair,health,horse_health,hotbar,hunger,paperdoll,progress_bar,status_effects,tooltips, andtouch_controls.
Result
| Command | Trigger | Bedrock Edition |
|---|---|---|
| Any | The command is incomplete, or any argument is not specified correctly. | Unparseable |
target: target fails to resolve to one or more online players. | Failed | |
| Otherwise | Successful |
Output
| Command | Edition | Situation | Success Count |
|---|---|---|---|
| Any | Bedrock Edition | On fail | 0 |
| On success | 1 |
Examples
- To hide all HUD elements for all players:
/hud @a hide all
- To make the health bar visible again for the nearest player in Survival mode:
/hud @p[m=s] reset health
History
| Bedrock Edition | |||||||
|---|---|---|---|---|---|---|---|
| 1.20.60 Experiment | Preview 1.20.60.23 | Added /hud behind the "Upcoming Creator Features" experimental toggle. | |||||
| 1.20.80 | Preview 1.20.80.23 | Moved the /hud command out of "Upcoming Creator Features" experimental toggle. | |||||