Skip to main content

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 knowContents
StructureOne 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
LimitsDisplays 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)
VersionsJSON UI has no versions. If Mojang changes vanilla, packs can break, so keep the modified parts minimal
OutlookThe 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​

PageWhat it coversRule ID
Files and definitionsFile registration, namespaces, @ inheritance, $ variables, variables, ignored, path keys, property_bagFILE
Modifying vanilla screensThe 11 modifications operations, overriding properties, redeclaring, wrapping, coexisting with other packsMOD
Controls and layoutControl types, size keywords, anchors, stacks, layers, clipping, grids, scrolling, 9-sliceLAY
BindingsBinding kinds and conditions, view bindings, reading other controls, engine propertiesBND
Expressions and operatorsThe operator table, string truncation, type conversion, dangerous expressions, evaluator run resultsEXP
Collections and factoriesCollection addressing, the two factory forms, form row numbers, gridsCOL
Factory synthesis and StarLibV2 key layoutFactory information synthesis, key gates and 2D layout, how evidence is markedCOL
Input, buttons and togglesbutton_mappings, button IDs, the 8 toggle states, radio tabs, focus, chest inputINP
Text and localizationLabel properties, lang files, assembling translation keys, color codes, fontsTXT
Images and animationimage properties, progress bars, texture keys, anim_type and easing, flipbooksANI
RenderersThe custom renderer list, the item renderer, player and entity renderers, gradients, progress bars, URL imagesANI
Screen hosts and data channelsRules for how server forms, modal forms, chests, NPC dialogue and the HUD receive script dataHOST
Pattern recipesRecipes 1~6: minimal server form setup, data sources, fixed-width records and morePAT
Pattern recipes (2)Recipes 7~12 for tabs, toasts, progress bars, icons and hover, and proposed rulesPAT
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 fitA comparison of the four UI technologies and how to choose, and options outside JSON UI such as particle glyphs and Ore UIALT
Output checklistWeight of evidence, things easy to invent, the 12-item verification checklist, report formatSynthesis
Debugging, verification and version managementReading logs, a symptom table, schema pitfalls, vanilla comparison, 1.26.50 changesDBG
Value dictionaryUsage counts of literal values per property in vanilla UI files and a comparison with official enumsTable
Conflict tableItems where sources disagree and that are not settled yet, and the list of items that need measurementC
Community reportsFacts confirmed from community reports, and community UI notesD
Community notes: data channels, HUD, expressions, layoutCommunity report details: workflow, bindings, expressions, HUD, layoutD
Community notes: by screenCommunity report details: server forms, chests, vanilla screens, DDUI, Ore UID
Community notes: limits, version timeline, tools, open questionsCommunity report details: restrictions and workarounds, the timeline, open questionsD

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 example FILE-06). When quoting a rule, write the ID with it. For rules whose verification level is conflict or unverified, do not assert them as is in your work and mark them "needs verification".
  • A C-number is 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.

  1. When editing a vanilla file, use only modifications in the same-path file. A modifications written at a different path is ignored or replaces the definition. (MOD-02)
  2. Do not delete vanilla controls; hide them with a binding. If you remove an inherited child, all modifications of that file silently disappear. (MOD-05)
  3. If you insert into an array that is only inherited, the inherited content is hidden wholesale. Put it into a definition that declares the array directly. (MOD-04)
  4. 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 .3 to be a real number (0.3 is the integer 0). Write a range as ((a < #v) and (#v < b)), not (a < #v < b). (EXP-01) (EXP-27) (EXP-28)
  5. '%.Ns' * #string cuts the first N bytes (UTF-8). A Hangul character is 3 bytes. (EXP-09)
  6. If an expression has no #property at all, all bindings of that control are discarded. Write a constant like ((#v = #v) * 40). (BND-05)
  7. #visible defaults to true, so if an expression fails it becomes "always visible". (BND-09)
  8. visible: false only stops drawing. It does not stop creation and layout. To stop creation, use ignored (a variable at creation time) or a factory with length 0. ignored is evaluated in the parent scope, not in its own $ declarations, so pass the gate variable to the parent and put ignored on the child. (COL-10) (FILE-34)
  9. collection_name goes only on stack_panel, grid and collection_panel, and collection_index only on a reference point inside the parent's controls. (COL-01) (COL-02)
  10. For a server form button to count as pressed, the button itself needs a collection_details binding. Otherwise the script receives canceled. (COL-04)
  11. Send every action form entry with button(). Mixing in label() shifts the collection index and the selection number. (COL-19)
  12. 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)
  13. 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)
  14. A toggle defines all 8 state controls. If it enters a missing state, the control disappears. (INP-10)
  15. A stack panel gives no space to hidden children. Conditional rows and bit spacer coordinates use this property. (LAY-04)
  16. 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 #offset with a view binding. (LAY-05)
  17. 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)
  18. 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)
  19. 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)
  20. 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​

  • measured is 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 at conflict and unverified are 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 is unverified.
  • 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.zipe in 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.
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
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
mcbejsonuimasteraimcbejsonuimasterAINo LICENSE at the repository root (NOTICE.md contains only third-party MIT notices). Facts only, rewritten527276c2026-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
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