/hud

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

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 hide or reset the HUD element(s) visibility.
Must be either hide or reset.

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, and touch_controls.

Result

CommandTriggerBedrock Edition
AnyThe command is incomplete, or any argument is not specified correctly. Unparseable
target: target fails to resolve to one or more online players. Failed
OtherwiseSuccessful

Output

CommandEditionSituationSuccess Count
AnyBedrock EditionOn fail0
On success1

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
Upcoming Creator Features
Preview 1.20.60.23Added /hud behind the "Upcoming Creator Features" experimental toggle.
1.20.80Preview 1.20.80.23Moved the /hud command out of "Upcoming Creator Features" experimental toggle.


Navigation