JSON UI overview
Baseline version: vanilla resource pack v1.26.50.4 (Mojang bedrock-samples commit 46ba6ea, 2026-09-16). Most rules in this section were checked by an exhaustive search of the 207 vanilla ui/ files of this version (Source: repo-guide, bedrock-samples).
What JSON UI is
JSON UI is a data-driven UI that describes game screens (HUD, inventory, server forms, chests, NPC dialogue, and so on) with the JSON files in the ui/ folder of a Minecraft Bedrock resource pack. If a pack adds a file at the same path as a vanilla file or registers a new file, it can change the look and some of the behavior of a screen (Source: bedrock-wiki, ms-learn).
| Things to know | Contents |
|---|---|
| Structure | One file is one namespace and one key is one control definition. Definitions inherit with @ and take variables with $ |
| Data | #property values the engine provides are connected to control properties with bindings and computed with expressions |
| Limits | Displays that follow a 3D position, and screens that have moved to Ore UI, cannot be built or fixed with JSON UI (ALT-01, ALT-11) |
| Versions | JSON UI has no versions. If Mojang changes vanilla, packs can break, so keep the modified parts minimal |
| Outlook | The Bedrock Wiki warns that JSON UI is being replaced by Ore UI, so add-ons that use JSON UI may break in the future (Source: bedrock-wiki) |
The shortest start: make a new file and register it in ui/_ui_defs.json (FILE-01), and splice into vanilla screens with modifications (MOD-01). Step-by-step examples are in Files and definitions and Modifying vanilla screens. Example add-ons you can turn on in game right away are in Design docs and example add-ons.
Page map
| Page | What it covers | Rule ID |
|---|---|---|
| Files and definitions | File registration, namespaces, @ inheritance, $ variables, variables, ignored, path keys, property_bag | FILE |
| Modifying vanilla screens | The 11 modifications operations, overriding properties, redeclaring, wrapping, coexisting with other packs | MOD |
| Controls and layout | Control types, size keywords, anchors, stacks, layers, clipping, grids, scrolling, 9-slice | LAY |
| Bindings | Binding kinds and conditions, view bindings, reading other controls, engine properties | BND |
| Expressions and operators | The operator table, string truncation, type conversion, dangerous expressions, evaluator run results | EXP |
| Collections and factories | Collection addressing, the two factory forms, form row numbers, grids | COL |
| Factory synthesis and StarLibV2 key layout | Factory information synthesis, key gates and 2D layout, how evidence is marked | COL |
| Input, buttons and toggles | button_mappings, button IDs, the 8 toggle states, radio tabs, focus, chest input | INP |
| Text and localization | Label properties, lang files, assembling translation keys, color codes, fonts | TXT |
| Images and animation | image properties, progress bars, texture keys, anim_type and easing, flipbooks | ANI |
| Renderers | The custom renderer list, the item renderer, player and entity renderers, gradients, progress bars, URL images | ANI |
| Screen hosts and data channels | Rules for how server forms, modal forms, chests, NPC dialogue and the HUD receive script data | HOST |
| Pattern recipes | Recipes 1~6: minimal server form setup, data sources, fixed-width records and more | PAT |
| Pattern recipes (2) | Recipes 7~12 for tabs, toasts, progress bars, icons and hover, and proposed rules | PAT |
| JSON UI optimization (planning document) | Creation gates (ignored, computed length factory, dictionary lookup), binding cost, choosing between grid and factory, screen open speed, checking order, sub-plans (grid button list, filling the first frame without always) | Synthesis |
| When JSON UI does not fit | A comparison of the four UI technologies and how to choose, and options outside JSON UI such as particle glyphs and Ore UI | ALT |
| Output checklist | Weight of evidence, things easy to invent, the 12-item verification checklist, report format | Synthesis |
| Debugging, verification and version management | Reading logs, a symptom table, schema pitfalls, vanilla comparison, 1.26.50 changes | DBG |
| Value dictionary | Usage counts of literal values per property in vanilla UI files and a comparison with official enums | Table |
| Conflict table | Items where sources disagree and that are not settled yet, and the list of items that need measurement | C |
| Community reports | Facts confirmed from community reports, and community UI notes | D |
| Community notes: data channels, HUD, expressions, layout | Community report details: workflow, bindings, expressions, HUD, layout | D |
| Community notes: by screen | Community report details: server forms, chests, vanilla screens, DDUI, Ore UI | D |
| Community notes: limits, version timeline, tools, open questions | Community report details: restrictions and workarounds, the timeline, open questions | D |
When a rule on a page points to a rule on another page, only the ID is written.
Rule IDs and conflict and reproduction numbers
- A rule ID is
English chapter abbreviation-number(for exampleFILE-06). When quoting a rule, write the ID with it. For rules whose verification level isconflictorunverified, do not assert them as is in your work and mark them "needs verification". - A
C-numberis an item where sources disagree and no measurement or code has settled it yet. They are in the conflict table and at the end of the related pages. - Community reports are not put directly into rules and are written separately in the "Community reports" section of each page.
- "(proposal)" in a rule bullet marks a rule that lacks evidence or is not adopted yet. Check the evidence before using it.
Verification levels
The {…} at the end of every rule is the verification level and (Source: …) is the evidence. Several levels can be attached together. The meaning of the marks and the priority of judgments are in Verification level marks on the wiki home page. Vanilla counts come from an exhaustive search of the 207 ui/ files of the 1.26.50.4 resource pack. What NB, which read the engine binary directly, confirmed is written with the source NB only, and for expression and variable rules NB could not read, Cinnabar (CN) is the most direct code evidence.
Note: the binding expressions of vanilla 1.26.50.4 use only not, and, or, = and +. String truncation, string subtraction, arithmetic and ordering comparisons never appear in vanilla, so the expression rules cannot be judged by vanilla and rest on measurement and working packs.
Source abbreviations
The material and registry id behind each abbreviation in (Source: …) at the end of a rule (VN, BC, BW, CN, NB, etc.) are in Source abbreviations. The word "Source" in each rule bullet links to that page too.
The 20 most important rules
These are what you must know before making anything first. The parentheses are rule IDs, and the evidence is on the page where each rule is.
- When editing a vanilla file, use only
modificationsin the same-path file. Amodificationswritten at a different path is ignored or replaces the definition. (MOD-02) - Do not delete vanilla controls; hide them with a binding. If you
removean inherited child, all modifications of that file silently disappear. (MOD-05) - If you
insertinto an array that is only inherited, the inherited content is hidden wholesale. Put it into a definition that declares the array directly. (MOD-04) - Expressions do not have
%,>=and<=(there is no basis for!=either, so use(not (a = b))). Use only=,<,>,not,and,or,+,-,*and/. A decimal literal must start with a dot like.3to be a real number (0.3is the integer 0). Write a range as((a < #v) and (#v < b)), not(a < #v < b). (EXP-01) (EXP-27) (EXP-28) '%.Ns' * #stringcuts the first N bytes (UTF-8). A Hangul character is 3 bytes. (EXP-09)- If an expression has no
#propertyat all, all bindings of that control are discarded. Write a constant like((#v = #v) * 40). (BND-05) #visibledefaults totrue, so if an expression fails it becomes "always visible". (BND-09)visible: falseonly stops drawing. It does not stop creation and layout. To stop creation, useignored(a variable at creation time) or a factory with length 0.ignoredis evaluated in the parent scope, not in its own$declarations, so pass the gate variable to the parent and putignoredon the child. (COL-10) (FILE-34)collection_namegoes only onstack_panel,gridandcollection_panel, andcollection_indexonly on a reference point inside the parent'scontrols. (COL-01) (COL-02)- For a server form button to count as pressed, the button itself needs a
collection_detailsbinding. Otherwise the script receivescanceled. (COL-04) - Send every action form entry with
button(). Mixing inlabel()shifts the collection index and theselectionnumber. (COL-19) - A bound value belongs to the control that bound it. For a child to use it, the child binds it itself or copies it with a view binding. (BND-04)
- Labels are localized by default. For a literal, use
"localize": false. A numeric binding shows only when joined to a string, and string + decimal outputs nothing. (TXT-01) (TXT-06) - A toggle defines all 8 state controls. If it enters a missing state, the control disappears. (INP-10)
- A stack panel gives no space to hidden children. Conditional rows and bit spacer coordinates use this property. (LAY-04)
- The position of a static control cannot be computed by an expression. To push it by a value, bind the size of a spacer placed before it. A fixed array can be given by copying a property bag key to
#offsetwith a view binding. (LAY-05) - When using the title, titles and chat as data channels, add a long unique prefix, and with the same prefix hide the vanilla display and turn on the custom display. (HOST-15)
- The HUD title is a single channel, so it is overwritten by other add-ons'
setTitle. For notifications that can overlap, use the chat factory. (HOST-14) - Displays that must follow a 3D position (a number above a head, etc.) cannot be built with JSON UI. Use particles or entities. (ALT-01)
- In experiments, change one thing at a time, and first check in the log that the screen actually opened. Copy "what works" rather than "what seems like it will work". (DBG-02)
Scope and limits
measuredis a measurement record of the original source or a record measured with this wiki's design docs and test add-ons. The environment of each measurement is in the evidence environment cell of the rule tables. Items atconflictandunverifiedare collected in "Items that need measurement" at the end of each page.- Bedrock Wiki (
BW) documents were included after checking against vanilla. A rule that has only a wiki sentence isunverified. - The Cinnabar (
CN) evidence is reconstructed code of the 26.30 client, not the game. Where it differs from measurement, measurement is followed. - A resource pack cannot fix Ore UI screens. Up to 26.63 a pack with an empty
content.zipein its root (local, without a server) or a pack the server sent encrypted changed the in-game Ore UI pages, but this is blocked from 26.64 for a security reason (ALT-11). - When the version changes, compare against vanilla again (the DBG rules). The baseline version for each rule is 1.26.50.4 at the top of this overview.
| 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 |
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 |
mcbejsonuimasterai | mcbejsonuimasterAI | No LICENSE at the repository root (NOTICE.md contains only third-party MIT notices). Facts only, rewritten | 527276c | 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 |
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 |