Skip to main content

Modifying a vanilla screen

This task is a resource pack putting my controls into a vanilla JSON UI screen (hud_screen.json and others), hiding vanilla elements, or changing a few properties. Do not copy the whole vanilla file. The game merges the same-path files of the packs on top of the vanilla ui/ files in pack order, so write only what changes.

When to use it​

What you wantMethod in this guideWhen it does not fit
Add a fixed element (label, image, panel) to the HUD or a vanilla screenInsert into controls with modifications in a same-path file-
Hide a vanilla elementAppend a #visible view binding (MOD-06, MOD-08)If it already has a #visible binding, combine as in MOD-07
Change a few properties (color, shadow, size) of a vanilla elementWrite only the changed properties in a same-named definition or a path key (FILE-20, FILE-21)If you compete with another pack for the same property, wrap it (MOD-09)
Replace the content of a screen wholesaleRedeclare the screen definition at the same path and change $screen_content (MOD-11)Only one side remains against another pack that redeclares the same screen (MOD-12)
Draw values the server sent (title, actionbar) on the HUDThis guide is not enoughShowing server data on the HUD
Change the look of a server formThis guide is not enoughReskinning a server form
Change a screen moved to Ore UI (a screen with no JSON file in vanilla resource_pack/ui/)Not possible with JSON UI. From 26.64 a resource pack cannot replace Ore UI files (ALT-11)When JSON UI does not fit
An add-on for the MarketplaceIt cannot modify vanilla UI files (community report)A world template or a method outside JSON UI

Minimal example​

A resource pack that adds one label at the top left of the HUD and always hides the vanilla title. Each part is copied from a form measured in the wiki: hiding hud_title_text is the hide-without-remove example (measured 2026-11-27 on Windows 1.26.65), inserting my namespace panel into root_panel with insert_back and the manifest.json come from section 10 of HUD and title channels (measured the same day), and the full-size host panel is juc_hud.host of addons/json-ui-claims. A pack holding the four files below as they are worked on Windows 1.26.65 on 2026-12-04: Hello HUD showed at the top left and a title sent by the server was not drawn. With another pack that also edits root_panel in its own hud_screen.json turned on, the controls of both packs showed {measured}.

my_hud_pack/
manifest.json
ui/
_ui_defs.json
my_hud.json
hud_screen.json

manifest.json: one resources module only. Make two new UUIDs for each pack. Format 3 is reported to fail loading a local pack without metadata.authors, so it is included (manifest). The measured pack was sent by a server and loaded without authors.

{
"format_version": 3,
"header": {
"name": "My HUD pack",
"description": "Adds a HUD label and hides the vanilla title",
"uuid": "1eef3032-894e-4647-8f6b-ca86342f679f",
"version": "1.0.0",
"min_engine_version": "1.26.40"
},
"modules": [
{ "type": "resources", "uuid": "df987cf7-9104-440b-84ff-497cfd566a93", "version": "1.0.0" }
],
"metadata": { "authors": ["Example"] }
}

ui/_ui_defs.json: register only new files. Vanilla already registers hud_screen.json, so it is not listed (FILE-01).

{
"ui_defs": [
"ui/my_hud.json"
]
}

ui/my_hud.json: my controls go in a file with a new namespace. The entry point on the HUD is one panel of size 100%, and my elements go inside it (MOD-15).

{
"namespace": "my_hud",
"host": {
"type": "panel",
"size": [ "100%", "100%" ],
"controls": [
{
"hello_label": {
"type": "label",
"text": "Hello HUD",
"localize": false,
"color": [ 1, 1, 0.4 ],
"anchor_from": "top_left",
"anchor_to": "top_left",
"offset": [ 4, 4 ]
}
}
]
}
}

ui/hud_screen.json: it is at the same path as vanilla, so modifications apply to the vanilla definitions (MOD-02). It writes no new definitions, only modifications (MOD-13).

{
"root_panel": {
"modifications": [
{
"array_name": "controls",
"operation": "insert_back",
"value": [
{ "my_hud_host@my_hud.host": {} }
]
}
]
},
"hud_title_text": {
"modifications": [
{
"array_name": "bindings",
"operation": "insert_back",
"value": [
{ "binding_type": "global", "binding_name": "#hud_title_text_string" },
{
"binding_type": "view",
"source_property_name": "(not (#hud_title_text_string = #hud_title_text_string))",
"target_property_name": "#visible"
}
]
}
]
}
}
  • root_panel is the HUD panel that declares controls itself, so the vanilla content stays after the insert (MOD-04). Vanilla hud_title_text has no bindings to begin with, so insert_back is safe (MOD-04).
  • The hide expression is always false and contains a #property (BND-05). The vanilla control is hidden, not removed with remove (MOD-05, MOD-06).
  • The label text, color and position are example values. The label text is literal, so it has "localize": false (TXT-01).
  • hud_screen.json works with the vanilla namespace (hud) without writing a namespace (FILE-05). The example add-ons write "namespace": "hud", which also works.

Other forms written in a same-path file​

FormHow to writeCoexistence with other packs
Property overrideWrite only the changed properties in a definition with the vanilla name. Example: { "progress_text_label": { "shadow": false } } (Bedrock Wiki example)For the same property, the pack higher in the world's pack list wins (FILE-21)
Path keyChange only a deep child's properties with "parent/child": { "property": value }. Vanilla does not use this syntax (FILE-20)Same as a property override. If the child does not exist, an error is left in the Content Log (FILE-27) {unverified, inferred}
modifications operationsInsert, move, replace and remove in controls and bindings (MOD-14)Stack in pack order (MOD-13)
WrappingPut the vanilla definition into my wrapper's controls, like { "long_form@server_form.long_form": {} }, and put the condition on the wrapper (MOD-09) {working pack}The wrapper's condition survives even if another pack replaces that definition wholesale
RedeclarationRewrite the screen definition from @base at the same path and change $screen_content (MOD-11)Only one side remains against a pack that redeclares the same screen (MOD-12)

The keys of a modifications operation item are array_name, control_name, operation, where, target_control, target and value (MOD-24). An example that moves by binding reference (Bedrock Wiki example, MOD-14):

{
"array_name": "bindings",
"operation": "move_after",
"where": { "binding_name": "#example_binding_2" },
"target": { "binding_name": "#example_binding_1" }
}

To insert relative to a control, use "control_name": "reference_control_name"; if array_name is omitted then, it is filled with "controls" (MOD-25) {code (binary)}.

Must match​

  • The file path must match vanilla exactly (ui/hud_screen.json). Changes to vanilla definitions and modifications written in a file at another path are silently ignored (MOD-02, FILE-22).
  • Do not register a same-path file in _ui_defs.json; register a new file with its full path from the pack root including the extension (FILE-01, FILE-25).
  • A new file has one "namespace". A reference is "name@namespace.definition", and the namespace is that of the file holding the definition (FILE-05, FILE-06, FILE-07).
  • Do not put dots in control names. In a key without @, the part before the dot is read as a namespace (FILE-32).
  • The operation name must be exactly one of the 11: insert_back, insert_front, insert_after, insert_before, move_back, move_front, move_after, move_before, swap, replace, remove (MOD-14, MOD-23).
  • Use controls or bindings for array_name. Results for variables split, so do not use it (MOD-03, C-64).
  • value is an array of the items to insert (MOD-01).
  • The insert target is the definition that declares the array directly. Inserting into an array that is only inherited removes the inherited content wholesale. A definition that has no such array at all is fine (MOD-04).
  • Do not remove an inherited child control. All modifications of that file are dropped with no log (MOD-05).
  • A where object picks the first element where even one member is equal. Specify a binding to delete by a unique member such as binding_name (MOD-18) {code (source)}.
  • move_after, move_before and swap, which need a second reference, read target_control first and target if it is absent (MOD-24).
  • Within one modifications, a later operation cannot pick an element an earlier operation inserted (MOD-17) {code (source)}.
  • When only changing properties of a vanilla definition, do not write @ in the key. Writing a different @base discards the existing type, factory and bindings (MOD-19) {code (source)}.
  • A $variable is substituted only when it is the whole value ("text": "$title" works, "Title: $title" does not, FILE-10). "$x|default" is the default used when nothing is passed from above (FILE-09).
  • ignored is evaluated once at creation, in the parent scope, and cannot read #bindings. To hide by runtime values, use a #visible binding (FILE-16, FILE-34, FILE-45).
  • A view binding expression must contain at least one #property. Otherwise the whole bindings array of that control is discarded (BND-05, BND-42).
  • #visible accepts only JSON booleans. Integers and strings become the default true, so make a boolean with a comparison (BND-27).
  • For an element that already has a #visible binding, remove that binding with where, then insert the original value ANDed with your condition (MOD-07) {working pack}.
  • JSON follows jsoncpp rules. Comments work, but trailing commas and unquoted keys are errors, and definitions after the error are dropped (FILE-30, FILE-03).

Common mistakes​

SymptomCauseFix
None of my modifications applyThe file path or name differs from vanilla, or an inherited child was removed with removeUse the file name from vanilla resource_pack/ui/ as is, and hide with #visible instead of deleting (MOD-02, MOD-05, MOD-06)
Unknown property [modifications] or Type not specified in the logmodifications was written in my namespace file (a file not at a vanilla path)Move modifications that change vanilla definitions to the same-path file (MOD-02)
The vanilla screen content disappears wholesaleInserted into an array that is only inheritedInsert into the definition that declares the array directly (root_panel on the HUD) (MOD-04)
My element does not show and the log has UI control reference not foundThe new file is not registered in _ui_defs.json, or the namespace or definition name differsMatch the registered path and @namespace.definition (FILE-01, FILE-06, DBG-34)
The hide condition is ignored and the element always showsThe expression failed (missing operators such as >=, %), or a non-boolean went into #visibleRewrite with the existing operators (=, <, >, not, and, or, +, -, *, /) and make a boolean with a comparison (BND-09, BND-27, EXP-01, EXP-02, EXP-03)
No binding of one control works and the log has Must define a source property name in the binding!One view expression has no #propertyPut a #property into the expression (BND-05, BND-42)
My change disappears when another add-on is onA property override or redeclaration overlapped with another packUse only modifications without definitions, or wrap (MOD-13, MOD-09, FILE-21)
A vanilla element behaves completely differently (type and bindings gone)A same-path redeclaration wrote a different @baseWhen only changing properties, drop @ and write only the vanilla name (MOD-19)
Only the definitions later in the file are missingA trailing comma or an unquoted keyFix the JSON (FILE-30)
A label prints a variable name like $titleThe variable was put into only part of the textMake the whole value the variable, or use a variable expression (FILE-10, FILE-11)
The game freezes and Expected variable not found in ancestor tree piles up in the logrequires of variables reads an undefined $variableDeclare the read variable on that control or an ancestor, at least with a default declaration (FILE-46, FILE-09)
An error is left in the Content Log after using a path keyThe child it points to does not exist in that vanilla versionCheck the name again in the vanilla file, and override the definition itself when you can (FILE-27)
The file was edited but the game does not show the changeThe pack was not read againFollow the reload order in How to check below (DBG-18)

Version conditions​

  • JSON UI has no version field. When a vanilla screen changes the pack simply breaks, so first check the definition names you rely on (root_panel, hud_title_text and so on) in vanilla resource_pack/ui/ of the target version (DBG-12, DBG-15).
  • The screen you want to change must exist as a JSON file in the target version's vanilla. A resource pack cannot change the layout or behavior of a screen moved to Ore UI, and from 26.64 replacing Ore UI files is also blocked (DBG-16, ALT-11).
  • From 1.26.50 the HUD subtitles are made by subtitle_container_factory, and cursor_renderer at the HUD root moved to hud_crosshair_overlay.json. Modifications that rely on those places look at the new places (DBG-13).
  • The wiki has no fact that changes how to do this task on the 26.70 preview.

How to check​

  1. Put the pack in the development resource pack folder (development_resource_packs). The game reads this folder at startup, so restart the game if you placed the pack for the first time. Turn the pack on in the resource pack list of the world edit screen (DBG-18).

  2. Turn on the Content Log GUI in the creator section of the settings. File errors are left in the content log and in %APPDATA%/Minecraft Bedrock/logs/ContentLog<date>.txt (DBG-01, DBG-33).

  3. Enter the world and look at the result. For the example, Hello HUD shows at the top left, and a title sent with /title @s title test must not be drawn.

  4. If it does not work, look for these lines in the log (DBG-01, DBG-34).

    Log textMeaning
    UI control reference not found: '...'An @ reference was not found (registration, namespace, name)
    Type not specified (or @-base not found)The base definition does not exist, or a file not at a vanilla path made a new definition
    Unknown propertyThe property name does not exist
    Must define a source property name in the binding!A view expression without a #property
    Expected variable not found in ancestor tree: '...'An undefined $variable
    JSON UI parse failure - expected a ...The type of a property value is wrong
  5. Absence from the log does not mean it is right. Invalid expression of a % expression was not left in the log (DBG-33). If hiding does not work, check the expression first (BND-09).

  6. To tell where it fails, draw a border that is always drawn, a label that shows the same value, and the real target together (DBG-03). A control's area can be painted with "debug": "red" (DBG-36).

  7. If an edited file is not applied, use /reload all. By community report it rereads JSON UI without leaving the world but often failed after 1.21.130. If it still does not change, restart the game (MCPE-66773).

  8. Turn the pack on together with other UI packs and check that your change remains (MOD-13, FILE-21). The game reverted the pack order to its own order, so the reverse order was not measured; use modifications or wrapping, which do not depend on order.

  9. Before handing it over, go through items 1 to 4 (registration, path, JSON, expressions) of the output checklist.

Further reading​

Sources
idSourceLicenseCommitAccessed
repo-guideJSON UI comprehensive guide (this repository) (guide/)This project's material2026-11-13
repo-surveyJSON UI material survey (this repository) (survey/)This project's material2026-11-13
private-researchPrivate research (-)-2026-11-13
bedrock-wikiBedrock WikiCC BY 4.0 (docs/licenses/CC-BY-4.0.md in the repository)0930b392026-11-13
ms-learnMinecraft Creator documentation (Microsoft Learn)CC BY 4.0 (documentation), MIT (code)a9fd1c02026-11-13
bedrock-samplesMojang bedrock-samplesMinecraft EULA applies, (c) Mojang AB. All rights reserved15701fa9 (guide baseline 46ba6ea)2026-11-13
cinnabarCinnabar (json-ui crate)PolyForm Noncommercial License 1.0.0 (confirmed in the repository LICENSE). Used only to check behavior and as an implementation reference; the original text is not copiedceb0fb6 (analysis baseline, clone HEAD df826f5)2026-11-13
bedrock-corebedrock-core UI (@bedrock-core/ui)MIT (confirmed in the repository LICENSE, Copyright 2026 bedrock-core)aee2bbd (analysis baseline, clone HEAD 51d5cf2)2026-11-13
advancementpackAdvancementPack (r4isen1920)MIT (confirmed in the repository LICENSE, Copyright 2024 r4isen1920)0a79929 (analyzed v4.2, researched 2026-10-20)2026-11-13
chest-uiChest-UICC BY 4.0 (confirmed in the repository License file)115d95c2026-11-13
upgraderupgraderNo LICENSE file. Facts only, rewritten0119a5a2026-11-13
repo-small-packsCollection of six small packs, abbreviation SP (small-packs/)Varies by material (no license, or includes ND). Facts only, rewritten2026-11-13
mcbejsonuimasteraimcbejsonuimasterAINo LICENSE at the repository root (NOTICE.md contains only third-party MIT notices). Facts only, rewritten527276c2026-11-13
netease-docsNetEase developer documentation, UI chapter (mirror EaseCation/netease-modsdk-wiki)No LICENSE in the mirror repository, the original is NetEase's work. Facts only, rewritten6dd12332026-11-13
starlibv2StarLibV2GPL-3.0 (confirmed in the repository LICENSE)6bf78752026-11-13
jsonencryptorJsonEncryptorMIT (Copyright 2024 pipa_ngry)48e78372026-11-13
repo-tool-analysesJSON UI tool analysis (this repository) (jsonui-lsp/, jsonui-schemas/, jsonforge/, easyuibuilder/, jsonencryptor/, bedrock-json-ui-editor/)This project's material2026-11-13
jsonforgeJsonForgeMIT (Copyright (c) 2026 JsonForge)28748762026-11-13
bedrock-json-ui-editorbedrock-json-ui-editor (w1zardz)MIT is stated only in the README, no LICENSE file1f18f0d (tools research), 9cb4896 (cases research)2026-11-13
json-ui-examplesjson-ui-examplesMIT (confirmed in the repository LICENSE, Copyright 2025 LeGend)d4ff5002026-11-13
asajsAsaJSGPL-3.0 (confirmed in the repository LICENSE)9f884dc2026-11-13
repo-bedrock-corebedrock-core UI analysis (this repository) (bedrock-core/)This project's material2026-11-13
repo-testpackJSON UI test pack and Windows 1.26.52 measurements (this repository) [source abbreviation TP] (guide/_testpack/)This project's material2026-11-13
ore-ui-customizer-app8Crafter-Studios/Ore-UI-Customizer-AppMIT (Copyright (c) 2025-2026 8Crafter Studios). Font and WebKit-derived files are excepted69f6ebb2026-11-13
repo-multiselectModal form multiselect research (this repository) (server-form-multiselect/)This project's material2026-11-13
netease-mcdocsNetEase developer documentation (mc.163.com)NetEase's work. No redistribution, facts only, rewritten2026-11-13