Commands/hud

Minecraft Wiki article. Categories: Bedrock_Edition, Minecraft_Education, Commands

📌 Mirrored from Minecraft Wiki

This article is reproduced from Commands/hud on the Minecraft Wiki. Mirrored from revision 3285529. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.

This feature is exclusive to Bedrock Edition and Minecraft Education.
 
/hud

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,

item_text, 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.

Sources