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 want | Method in this guide | When it does not fit |
|---|---|---|
| Add a fixed element (label, image, panel) to the HUD or a vanilla screen | Insert into controls with modifications in a same-path file | - |
| Hide a vanilla element | Append 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 element | Write 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 wholesale | Redeclare 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 HUD | This guide is not enough | Showing server data on the HUD |
| Change the look of a server form | This guide is not enough | Reskinning 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 Marketplace | It 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_panelis the HUD panel that declarescontrolsitself, so the vanilla content stays after the insert (MOD-04). Vanillahud_title_texthas nobindingsto begin with, soinsert_backis safe (MOD-04).- The hide expression is always false and contains a
#property(BND-05). The vanilla control is hidden, not removed withremove(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.jsonworks 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
| Form | How to write | Coexistence with other packs |
|---|---|---|
| Property override | Write 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 key | Change 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 operations | Insert, move, replace and remove in controls and bindings (MOD-14) | Stack in pack order (MOD-13) |
| Wrapping | Put 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 |
| Redeclaration | Rewrite 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 andmodificationswritten 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
operationname 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
controlsorbindingsforarray_name. Results forvariablessplit, so do not use it (MOD-03, C-64). valueis 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
removean inherited child control. All modifications of that file are dropped with no log (MOD-05). - A
whereobject picks the first element where even one member is equal. Specify a binding to delete by a unique member such asbinding_name(MOD-18){code (source)}. move_after,move_beforeandswap, which need a second reference, readtarget_controlfirst andtargetif 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@basediscards the existing type, factory and bindings (MOD-19){code (source)}. - A
$variableis 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). ignoredis evaluated once at creation, in the parent scope, and cannot read#bindings. To hide by runtime values, use a#visiblebinding (FILE-16, FILE-34, FILE-45).- A view binding expression must contain at least one
#property. Otherwise the wholebindingsarray of that control is discarded (BND-05, BND-42). #visibleaccepts 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
#visiblebinding,removethat binding withwhere, 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
| Symptom | Cause | Fix |
|---|---|---|
None of my modifications apply | The file path or name differs from vanilla, or an inherited child was removed with remove | Use 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 log | modifications 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 wholesale | Inserted into an array that is only inherited | Insert 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 found | The new file is not registered in _ui_defs.json, or the namespace or definition name differs | Match the registered path and @namespace.definition (FILE-01, FILE-06, DBG-34) |
| The hide condition is ignored and the element always shows | The expression failed (missing operators such as >=, %), or a non-boolean went into #visible | Rewrite 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 #property | Put a #property into the expression (BND-05, BND-42) |
| My change disappears when another add-on is on | A property override or redeclaration overlapped with another pack | Use 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 @base | When only changing properties, drop @ and write only the vanilla name (MOD-19) |
| Only the definitions later in the file are missing | A trailing comma or an unquoted key | Fix the JSON (FILE-30) |
A label prints a variable name like $title | The variable was put into only part of the text | Make 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 log | requires of variables reads an undefined $variable | Declare 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 key | The child it points to does not exist in that vanilla version | Check 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 change | The pack was not read again | Follow 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_textand so on) in vanillaresource_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, andcursor_rendererat the HUD root moved tohud_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
-
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). -
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). -
Enter the world and look at the result. For the example,
Hello HUDshows at the top left, and a title sent with/title @s title testmust not be drawn. -
If it does not work, look for these lines in the log (DBG-01, DBG-34).
Log text Meaning 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 #propertyExpected variable not found in ancestor tree: '...'An undefined $variableJSON UI parse failure - expected a ...The type of a property value is wrong -
Absence from the log does not mean it is right.
Invalid expressionof a%expression was not left in the log (DBG-33). If hiding does not work, check the expression first (BND-09). -
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). -
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). -
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
modificationsor wrapping, which do not depend on order. -
Before handing it over, go through items 1 to 4 (registration, path, JSON, expressions) of the output checklist.
Further reading
- Modifying vanilla screens: the
modificationssyntax, adding a visibility condition, wrapping, redeclaration. MOD-01~MOD-25 - Files and definitions: file registration and loading, variables, path keys and merging same-path files. FILE-01, FILE-05, FILE-06, FILE-09, FILE-10, FILE-16, FILE-20, FILE-21, FILE-22, FILE-27, FILE-30, FILE-34
- Bindings: BND-05, BND-09, BND-27, BND-42
- Controls and layout: anchors and position of your elements (LAY-16, LAY-17), layers (LAY-18)
- Debugging, verification and version management: DBG-01, DBG-03, DBG-12, DBG-13, DBG-15, DBG-16, DBG-18, DBG-33, DBG-34, DBG-36
- Output checklist
- HUD and title channels: another example of adding elements to the HUD
- Conflict table: C-64
| id | Source | License | Commit | Accessed |
|---|---|---|---|---|
repo-guide | JSON UI comprehensive guide (this repository) (guide/) | This project's material | 2026-11-13 | |
repo-survey | JSON UI material survey (this repository) (survey/) | This project's material | 2026-11-13 | |
private-research | Private research (-) | - | 2026-11-13 | |
bedrock-wiki | Bedrock Wiki | CC BY 4.0 (docs/licenses/CC-BY-4.0.md in the repository) | 0930b39 | 2026-11-13 |
ms-learn | Minecraft Creator documentation (Microsoft Learn) | CC BY 4.0 (documentation), MIT (code) | a9fd1c0 | 2026-11-13 |
bedrock-samples | Mojang bedrock-samples | Minecraft EULA applies, (c) Mojang AB. All rights reserved | 15701fa9 (guide baseline 46ba6ea) | 2026-11-13 |
cinnabar | Cinnabar (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 copied | ceb0fb6 (analysis baseline, clone HEAD df826f5) | 2026-11-13 |
bedrock-core | bedrock-core UI (@bedrock-core/ui) | MIT (confirmed in the repository LICENSE, Copyright 2026 bedrock-core) | aee2bbd (analysis baseline, clone HEAD 51d5cf2) | 2026-11-13 |
advancementpack | AdvancementPack (r4isen1920) | MIT (confirmed in the repository LICENSE, Copyright 2024 r4isen1920) | 0a79929 (analyzed v4.2, researched 2026-10-20) | 2026-11-13 |
chest-ui | Chest-UI | CC BY 4.0 (confirmed in the repository License file) | 115d95c | 2026-11-13 |
upgrader | upgrader | No LICENSE file. Facts only, rewritten | 0119a5a | 2026-11-13 |
repo-small-packs | Collection of six small packs, abbreviation SP (small-packs/) | Varies by material (no license, or includes ND). Facts only, rewritten | 2026-11-13 | |
mcbejsonuimasterai | mcbejsonuimasterAI | No LICENSE at the repository root (NOTICE.md contains only third-party MIT notices). Facts only, rewritten | 527276c | 2026-11-13 |
netease-docs | NetEase developer documentation, UI chapter (mirror EaseCation/netease-modsdk-wiki) | No LICENSE in the mirror repository, the original is NetEase's work. Facts only, rewritten | 6dd1233 | 2026-11-13 |
starlibv2 | StarLibV2 | GPL-3.0 (confirmed in the repository LICENSE) | 6bf7875 | 2026-11-13 |
jsonencryptor | JsonEncryptor | MIT (Copyright 2024 pipa_ngry) | 48e7837 | 2026-11-13 |
repo-tool-analyses | JSON UI tool analysis (this repository) (jsonui-lsp/, jsonui-schemas/, jsonforge/, easyuibuilder/, jsonencryptor/, bedrock-json-ui-editor/) | This project's material | 2026-11-13 | |
jsonforge | JsonForge | MIT (Copyright (c) 2026 JsonForge) | 2874876 | 2026-11-13 |
bedrock-json-ui-editor | bedrock-json-ui-editor (w1zardz) | MIT is stated only in the README, no LICENSE file | 1f18f0d (tools research), 9cb4896 (cases research) | 2026-11-13 |
json-ui-examples | json-ui-examples | MIT (confirmed in the repository LICENSE, Copyright 2025 LeGend) | d4ff500 | 2026-11-13 |
asajs | AsaJS | GPL-3.0 (confirmed in the repository LICENSE) | 9f884dc | 2026-11-13 |
repo-bedrock-core | bedrock-core UI analysis (this repository) (bedrock-core/) | This project's material | 2026-11-13 | |
repo-testpack | JSON UI test pack and Windows 1.26.52 measurements (this repository) [source abbreviation TP] (guide/_testpack/) | This project's material | 2026-11-13 | |
ore-ui-customizer-app | 8Crafter-Studios/Ore-UI-Customizer-App | MIT (Copyright (c) 2025-2026 8Crafter Studios). Font and WebKit-derived files are excepted | 69f6ebb | 2026-11-13 |
repo-multiselect | Modal form multiselect research (this repository) (server-form-multiselect/) | This project's material | 2026-11-13 | |
netease-mcdocs | NetEase developer documentation (mc.163.com) | NetEase's work. No redistribution, facts only, rewritten | 2026-11-13 |