Skip to main content

Bindings

Concept: a binding is the line that connects engine data to a control property​

A control's properties are set in two ways: a static value ("text": "Hello"), and a binding that pulls in data the engine computes (#property). A binding is written as an item of the bindings array, and one item is one line. There are five kinds.

binding_typeWhat it readsUse
global (default when omitted)Global properties the screen receives from the engineWhen taking a value as is
viewA property of another control (or itself), or an expressionWhen computing or copying
collectionAn item property of a collectionFactory and grid items
collection_detailsCollection item details (press counting, etc.)Server form buttons
noneReads nothingOnce in vanilla

Step-by-step examples​

  1. The simplest form: put the engine property #hardtext as is into a label's text.

    { "label": { "type": "label", "text": "#hardtext",
    "bindings": [ { "binding_name": "#hardtext" } ] } }
  2. binding_name_override: put the received value into a property name you choose. It is often used for #visible and #enabled.

    { "send_button": { "bindings": [
    { "binding_name": "#using_touch", "binding_name_override": "#visible" } ] } }
  3. A view binding: read a property of another control and write it to your own property. Make a panel visible only when a toggle is on.

    { "panel": { "bindings": [ {
    "binding_type": "view",
    "source_control_name": "my_toggle",
    "source_property_name": "#toggle_state",
    "target_property_name": "#visible" } ] },
    "my_toggle": { } }
  4. An expression: if you write a parenthesized expression in source_property_name, the computed result goes into target_property_name. At least one #property must be in it (BND-05).

    { "binding_type": "view", "source_control_name": "image", "resolve_sibling_scope": true,
    "source_property_name": "(not (#texture = ''))", "target_property_name": "#visible" }

(Steps 1~3 rewrite the explanation of the Bedrock Wiki Intro, and 4 has the same form as dynamic_button in vanilla server_form.json.)

The binding key table of the Bedrock Wiki​

Excerpt: JSON UI Documentation, Data Binding · docs/json-ui/json-ui-documentation.md · Bedrock Wiki · License CC BY 4.0 (docs/licenses/CC-BY-4.0.md in the repository) · Commit 0930b39
PropertyTypeDescription
ignoredbooleanIf binding should be ignored (default false)
binding_typeenumglobal, view, collection, collection_details, none
binding_namestringStores the value of the data binding name or condition with it
binding_name_overridestringName of the UI element property that will apply the stored value in binding_name
binding_collection_namestringName of the collection of items to be used
binding_conditionenumCondition for the data binding to happen: always, always_when_visible, visible, once, none, visibility_changed

Binding keys in Microsoft Learn​

The bindings entry of the MS Learn minecraft:ui_element document lists binding_collection_name (the collection name of a collection binding), binding_condition (when to evaluate), binding_name (the data source to bind, for example #player_name), binding_name_override (the property of the element to put the value into), binding_type, source_control_name (the source control of a view binding), source_property_name and target_property_name (Source: ms-learn). This document omits binding_collection_prefix, resolve_sibling_scope and others, and its enum values are empty, so use the tables below (keys of a binding item, binding_condition) as the reference.

Rules​

A binding moves engine data (#property) into a control property, or computes a new property with an expression. One item of the bindings array is one binding.

Evidence from Cinnabar (CN, Rust code that reconstructs the JSON UI parser of the 26.30 native client) has the level code, and CN-run is the result of this project running that evaluator directly. If it differs from game measurement, follow measurement. NB was read by analyzing the native library of the Android 1.26.52.3 client, and its level is code. DF was measured on Windows 1.26.52 while building the research server, in a structure that draws several screens with one server form.

Keys of a binding item​

KeyMeaning
binding_typeglobal, collection, collection_details, view, none
binding_nameThe property name the engine gives (#title_text, #form_button_text …)
binding_name_overrideThe name of your own property to put the received value into (#text, #visible, #collection_length …)
binding_collection_nameThe collection name (form_buttons, custom_form, container_items …)
binding_collection_prefixThe prefix of a collection that has a prefix (student_buttons, etc.)
binding_conditionWhen to re-evaluate
source_control_nameThe name of the other control to read the value from in a view binding
resolve_sibling_scopeIf true, looks up source_control_name in the sibling scope
source_property_nameThe expression or property to read in a view binding
target_property_nameThe property to write the view binding result to
  • [BND-01] Use the binding keys in the table above. resolve_ancestor_scope never appears in vanilla, so do not use it (resolve_sibling_scope has 53 uses). The engine reads this key (ancestor scope, BND-25 and BND-36). On Windows 1.26.65.1, resolve_ancestor_scope was accepted without an Unknown property log and read the ancestor, but a plain source_control_name read without any flag also found a sibling, a cousin, an ancestor and a distant control at the top of the window (measurement record). {vanilla, code (binary), measured} (Source: VN, MJ 4.2-1, NB-09)
  • [BND-02] An item that omits binding_type reads a global property (for example { "binding_name": "#title_text" }). {vanilla, code (source), inferred} (Source: VN server_form.json:138, BC 4.1, BA chapter 2, BW-intro, BW-dyn)
  • [BND-03] Counts of binding_type that vanilla uses: collection 787, collection_details 287, global 265, view 240, none 1. Templates often receive this value as a variable ($store_factory_binding_type, etc.). {vanilla} (Source: VN, value dictionary)
  • [BND-22] An unknown binding_type acts as global, and an unknown binding_condition is logged and acts as none. The Cinnabar reconstruction logs an unknown binding_type, but in the Android 1.26.52.3 and Windows 1.26.65.1 decompilation it becomes global without a log, and only a non-string value leaves JSON UI parse failure - expected a string. (code, not measured in game). A typo becomes "silently different behavior", so copy values from the table. {code (source), code (binary)} (Source: NB-09 (binding_condition), CN tests B07 and B13 (binding_type), 2026-11-20 decompilation)

binding_condition​

ValueVanillaMeaning
(omitted)manyEngine default
visible135When visible
once106Only the first time
always97Continuously
always_when_visible66Continuously while visible
visibility_changed7When visibility changes
none6Every time the data updates (BND-23). Not in the official schema enum
  • [BND-04] A bound property belongs to the control that has the binding. If you put a collection binding on a button and use #form_button_text in a label two levels down, it comes out blank. The value is bound directly by the control that draws it, or copied with a view binding (BND-08). {measured} (Source: BC-S7)
  • [BND-05] If a view binding expression has no #property at all, the error Must define a source property name in the binding! occurs, and the whole bindings array of that control is discarded. To use a constant, put in any property like ((#v = #v) * 40). The Cinnabar reconstruction discards only that one binding (conflict C-43). {measured} (Source: BC-S12, conflict C-43)
  • [BND-06] For a value that only needs to be decided once (for example whether a toast icon shows), "binding_condition": "once" reduces cost. It is re-evaluated when a factory recreates the control. {working pack} (Source: BA chapter 6, AP 4.5)
  • [BND-07] A binding inside a cell created by a factory can run too early and stay empty (it shows only after losing and regaining focus). Give it binding_condition: "always", or read it outside the factory and copy it in with source_control_name. If the visible inside a cell is also always, it applies immediately. A cell can read outside controls but the outside cannot read the cell (BND-19). A title check in a label inside the server form long_form, with both the #title_text binding and the view binding set to once, was right from the first open (measurement record). {measured} (Source: BC-S11, BW-dyn, 2026-11-19 Windows 1.26.65.1)
  • [BND-23] Meaning of binding_condition: none on every data update, once the first time, always every update, always_when_visible and visible only when visible, visibility_changed only when visibility changes. The six values match the engine's name table (BND-35). {code (source), code (binary)} (Source: NB-09 (value list), CN (meaning))
  • [BND-35] binding_condition must be a string (otherwise the error - expected a string.), and its values are six: none, once, always, always_when_visible, visible and visibility_changed. If omitted or an unknown value, it acts as none (the same as BND-22 and BND-23). {code (binary)} (Source: NB-09)
  • [BND-31] Keep the #visible of a layout chosen by title at binding_condition: "always". With once, a layout that briefly matched while the form switched to the next form stayed on over the next form. {measured} (Source: DF)
  • [BND-32] If you put binding_condition: "visible" on the length binding (from #form_button_contents to #collection_length) of a factory inside a layout that started with visible: false, a layout hidden because its title did not match did not create button cells (the "creation is not stopped" of COL-10 is about the layout control itself). When used on a layout that is visible from the start, even the hidden layout created cells on the first frame. Using always_when_visible or omitting in the same place left the bindings of cells created on the first frame unupdated, so text and markers were empty. {measured} (Source: DF)
  • [BND-37] In one control's bindings, putting the collection binding first and the view binding that reads its value after it filled the grid cells from the first frame with neither of them on always (100 and 2000 buttons, name and description labels and icon; the cell's collection_details and the grid length binding were always). With the list open it was about 0.07ms per frame lighter than the version with always on both bindings (VSync off, about 284 to about 290 fps), and the difference was the same from 100 up to 20000 buttons. The opening cost was the same for both and grew with the button count (Filling the first frame without always). In the reverse order the view is expected to read the still empty value first, but the reverse order was not measured (inferred, BND-07). A version of the same cell that wrote the expression straight into the collection binding's binding_name with binding_name_override instead of a view froze the client when the list opened; which expression caused it was not isolated. {measured} (Source: 2026-11-18, Windows 1.26.65)

View bindings and reading other controls​

// Take and use a value computed by a sibling
{ "binding_type": "view",
"source_control_name": "image", // The control to read
"resolve_sibling_scope": true, // Look it up in the sibling scope
"source_property_name": "(not (#texture = ''))",
"target_property_name": "#visible" }

(The same form as dynamic_button in vanilla server_form.json)

  • [BND-08] Read another control's property with source_control_name. When reading a sibling, also give resolve_sibling_scope: true. {vanilla, working pack} (Source: VN 236 and 53 uses, example server_form.json:156, BA chapter 6, BW-intro, BW-form)
  • [BND-09] The default of #visible is true. If an expression fails (an unsupported operator, etc.), the property stays at its default, so it becomes "always visible". If a hide condition does not take effect, suspect the expression first. In the Windows 1.26.65.1 code it is not "stays at its default" but "writes the default true": when the expression result is null, the #visible handling reads it as the default true and writes visible as true (the section on global binding names the engine answers). So a control with a static "visible": false becomes visible when a failing expression binding or a binding with no answer is attached. On Windows 1.26.65.1 a label with a static "visible": false was hidden with no binding, and the same label was shown when the nonexistent global binding #re9_nonexistent_binding was bound to #visible. A failing expression was not measured. {measured, code (binary)} (Source: BC-facts, BC 6.2-1, 2026-11-24 decompilation, 2026-11-25 Windows 1.26.65.1)
  • [BND-10] Do heavy calculations such as string parsing once in one place, the parent (or a data source), and have children take only the result with source_control_name. {working pack} (Source: BA chapter 6)
  • [BND-11] If several places must read the same value, put a size-0 "data source" control at the screen root and have each gate read that value with a view binding. It is also a way to read only the data without putting a native input (a radio, etc.) inside a collection item. {code (source), measured} (Source: BC 4.1-(5), BC-rules)
  • [BND-19] A control created by a factory or grid can read properties of an outside control with source_control_name, but outside controls cannot read the properties of created controls. Put values to share in a data source outside the factory (BND-11). {unverified} (Source: BW-dyn "Useful Information")
  • [BND-20] resolve_sibling_scope: true limits the source_control_name search to the sibling scope, but if the parent and a sibling have the same name, the parent takes priority. Name the control to read so that it does not collide with ancestors. Cause: the sibling search starts breadth-first from the parent itself (BND-25). {code (source)} (Source: BW-doc Data Binding table, CN)
  • [BND-24] A view binding without source_control_name reads its own bag, and a property not there is read from the screen controller (global). A named view does not fall through to global. In game, a label in the server form long_form_scrolling_content that read #form_text through source_control_name from a sibling panel without bindings showed the form body. With a control name that does not exist it was empty, and the same setup in a custom window under main_screen_content was empty (measurement record). {vanilla, code (source), code (binary), measured, conflict} (Source: VN 27 uses, NB-09 (own control), CN tests B26 and B27 (global fallback), CN Zeqa regression, 2026-11-19 Windows 1.26.65.1)
  • [BND-25] source_control_name lookup: by default breadth-first first match from the screen root, resolve_sibling_scope breadth-first from the parent (including the parent itself, the cause of BND-20), and resolve_ancestor_scope the nearest ancestor of the same name. Hidden subtrees are searched too. If names collide, the one closer to the root wins. {code (source), code (binary)} (Source: NB-09 (the three scopes), CN tests B20 and B25 (search order))
  • [BND-36] A view binding reads its own control when source_control_name is empty (BND-24), and otherwise looks up in one of the default, sibling (resolve_sibling_scope) and ancestor (resolve_ancestor_scope) scopes (BND-25). Turning both scopes on leaves an error and acts as the sibling scope. If source_property_name or target_property_name is missing, each gives a Must define a … property name in the binding! error. A collection binding without binding_collection_name gives the error Must define a collection name for the binding!. {code (binary)} (Source: NB-09)
  • [BND-34] Comparing a subtraction result directly in the same expression like (not ((A - B) = 'z')) flipped true and false. Putting it first in a #variable with a view binding and comparing with (not (#variable = 'z')) was correct. Split the steps as in EXP-06. {measured} (Source: DF)

Bindings and variables​

  • [BND-12] In definitions the pack owns directly (definitions of a new namespace, redeclared definitions), a $variable can be used in source_property_name. Example: "source_property_name": "$visible_binding". {working pack, measured} (Source: AP 4.2, BC-facts)
  • [BND-13] Inside a subtree inserted into a vanilla tree with modifications, a $variable cannot be used in a binding's source_property_name (all 6 variants gave Must define a source property name). Ordinary property substitution such as $caption in text works in the same place. So for inserted trees, make a separate definition with the binding names hardcoded as literals. {measured} (Source: BC-facts)
  • [BND-14] There is a record that passing a value such as a factory row index to a derived definition as a $variable and using it in the base's binding broke the binding and discarded the whole array. Whether vanilla's factory_variables (COL-15 in the collections and factories chapter) solves this problem was not measured. {measured, inferred} (Source: BC-S9, VN)
  • [BND-21] Inside a button state control, state variables can decide creation itself: "ignored": "$default_state" on a child that should show only on hover. Vanilla also uses "ignored": "$hover_state" (2), "visible": "$default_state" (3) and "visible": "($hover_state or $pressed_state)" (5). It means the variable expression of INP-09 works for ignored too. {vanilla, unverified} (Source: BW-btn, VN)
  • [BND-33] A $variable put in as part of a source_property_name expression is substituted. The value goes in as one string and is not parsed again as an expression. Unquoted values (('#' + $v) with "$v": "hover_text", ($skip * #hud_subtitle_text_string) with "$skip": "%.20s") worked on the chest screen and in the HUD (HXC). With quotes inside the value, (#form_button_text - $m) with "$m": "'§0§3§r'" left the marker buttons hidden (DF), most likely because the quotes went in as characters and did not match (inference). So put only unquoted values in variables, and do not write an expression with no # property. For using one expression in every cell, see Binding expression caching. "$bt": "#v" put into an expression as ($bt) was read as the property #v and gave its value, and a variable whose value is an expression ("$us": "('%' + $tid + '%')") gave empty when used in an expression (measurement record). That empty value may be the rule that drops an expression without a # property at load (BND-42); the log of that test was not checked. {measured} (Source: HXC, DF, BW-title, 2026-11-19 Windows 1.26.65.1)
  • [BND-42] A view binding expression without a # property is dropped at load even if it contains $ variables. When source_property_name is an expression made only of constants and $ variables, the error JSON UI parse failure: Must define a source property name in the binding! is logged and the binding does not work. (.25), (1 * .5), ('R' + $cut) concatenating "$cut", and the form ((20.0 - 15) / $max) using only "$max": 20.0 all did this, and the target stayed at its default (#alpha opaque, label text empty). Adding one # property made it work: with "#z": "R" in property_bag, (#z + $cut) gave Rabc, and with "#z": 0, (((20.0 - 15) / $max) + #z) on #clip_ratio clipped by 0.25. To compute from variable values only, put "#z": 0 for a numeric expression or "#z": "" for a string expression in property_bag and add + #z. When the expression is passed as a variable value ("$cexpr": "((20.0 - 15) / $max)" received and used in source_property_name), the $max inside that expression was not found, Expected variable not found in ancestor tree: '$max' was logged first, and the binding was dropped with the same error. The "expression without #" of BND-05 includes expressions that contain $ variables. {measured} (Source: 2026-11-24 Windows 1.26.65.1)

BND-42 was measured with probe labels inserted into the Windows 1.26.65.1 HUD.

Engine properties: commonly used binding targets​

PropertyMeaningEvidence
#visibleVisibility (default true)VN, all sources
#textLabel text ("text": "#text")VN
#texture, #texture_file_systemImage texture pathVN server_form.json:173
#clip_ratioImage clip ratio (0~1)VN 33 uses, BA
#collection_lengthNumber of cells a factory or collection createsVN 89 uses, BC-S11
#size_binding_x/y, #anchored_offset_value_x/ySize and position (table in chapter 3)VN, BC-S12
#item_id_auxItem renderer input (id x 65536 + aux)VN, AP, BC-facts
#toggle_stateToggle stateBC 4.2
#propagateAlphaWhether to propagate the parent's alpha to childrenVN hud_screen.json:3568, AP
  • [BND-15] propagate_alpha can also be changed with the binding #propagateAlpha. The vanilla HUD root receives the global #hud_propagate_alpha as #propagateAlpha. With parent alpha: 0 + conditional propagation you can make "only a particular message transparent". alpha itself is not propagated to children by default (LAY-33). {vanilla, working pack} (Source: VN hud_screen.json:3567, AP 4.5, BW-doc)
  • [BND-16] binding_name_override moves an engine name into your own property. Examples: #hud_title_text_string to #text, #form_button_contents to #collection_length. {vanilla} (Source: VN hud_screen.json, server_form.json:138, BW-intro)
  • [BND-17] Vanilla builds the binding name itself as a variable expression: "$toggle_state_binding_name": "('#' + $dropdown_name)". It is a way to read various data with one template. {vanilla} (Source: VN ui_common.json:1126, storage_management.json:1325)
  • [BND-18] Value preservation (latch). Put "#saved": "" in the property_bag of a size-0 panel, and copy the source only at the moment visibility changes with { "binding_name": "#src", "binding_name_override": "#saved", "binding_condition": "visibility_changed" }. If you set the #visible of this panel to "when the new value contains the keyword (EXP-07) and differs from the saved value", it shows for one frame at the moment the condition matches and hides again because the condition turns false right after saving. An outside label reads #saved with source_control_name. property_bag is separate per instance, so several of the same component do not mix. It is used to keep "the last title containing my keyword" in the HUD title channel (HOST-14) even when other titles arrive. In a chest slot it worked in game: with collection_index on the latch panel, #hover_text copied to #saved by a collection binding, and #visible set to "the new value is not empty and differs from the saved value", the latch followed name changes and kept the last name when the slot became empty. It also worked on the HUD title channel: with #hud_title_text_string copied and #visible set to "contains JUC and differs from #saved", the titles JUC one, other, JUC two, plain again in that order gave the saved values JUC one, JUC one, JUC two, JUC two (measurement record). Use this latch also to show data slots of a chest (label text, a live_horse_renderer id and so on). #hover_text is emptied for a moment on every slot press (HOST-50); the latch does not store the empty value, so titles and models stopped flickering (measured 2026-11-28 on Windows 1.26.65). A visibility_changed latch, however, kept the old name when its ancestor page was hidden at the moment the slot name changed, even after the page was shown again. A latch that did not freeze under a hidden ancestor sets #visible to (not ((#hover_text = '') and (#item_id_aux > 0))) and then copies #hover_text to #saved with a collection binding using binding_condition: visible. It hides only while the name is empty and an item is there, and reads again every time it is shown. A latch placed under a control that hides by the name (an icon whose #visible comes from the name) is never shown and never reads the name, so put the latch beside the reading control. resolve_sibling_scope starts searching at the reading control's parent, so copies of one definition under one parent all found the first copy's latch. Passing the latch name in a variable named per definition ($sg_latch_<definition>) made each copy find the latch beside it; a shared variable name let an outer copy's value override the latch names of inner definitions (SG, 2026-12-02 Windows 1.26.65.1). This latch does not remove the brief window disappearance on a drop press (INP-46). {measured} (Source: BW-title, VN visibility_changed 7 uses, CPR, SG, 2026-11-18 Windows 1.26.65.1, 2026-11-28 Windows 1.26.65, 2026-12-02 Windows 1.26.65.1)
  • [BND-27] Boolean targets (#visible, #enabled, #toggle_state, etc.) accept only JSON booleans. Binding the global string 'false' as is to #visible does not hide it. Going through an expression ((#flag = 'false')) makes it a boolean. The boolean read in the Windows 1.26.65.1 code uses the value only when its type is boolean, and for null, integer, float or string it uses the property's default. It does no truthiness conversion (asBool). So integer 0 and float 0.0 also cannot hide #visible or turn off #enabled. In the Windows 1.26.65.1 HUD, a label with "#z": 0 in property_bag and the view (#z * 1) on #visible was shown, and a label with (#z = 1) was hidden. Float 0.0 and #enabled were not measured. Make an integer value boolean with a comparison such as (#n > 0). {measured, code (source), code (binary)} (Source: CN, 2026-11-24 decompilation, 2026-11-25 Windows 1.26.65.1)
  • [BND-28] Constant expressions in a property_bag literal are computed ("#n": "(1 + 2)" becomes 3). A parent's property_bag_for_children is merged into descendants' bags but does not overwrite values the descendants have. The Windows 1.26.65.1 code is the same: for each member value of property_bag and property_bag_for_children it calls the property value resolver, which computes a constant expression starting with (, looks up and inserts a $name value, and unwraps a __string object such as $container_title into its value string (HOST-19). {code (source), code (binary)} (Source: CN tests B32 and B33, 2026-11-24 decompilation)
  • [BND-29] Text that starts with ##, like "text": "##text", is a literal, not a binding. An unbound "text": "#name" is drawn as empty text. {code (source)} (Source: CN test L08)

Passing values to renderers and the HUD title factory​

The rules of this section and BND-41 were measured on Windows 1.26.65.1 on 2026-11-19~2026-11-20. The HUD title factory tests are recorded in actor_portrait_renderer section 4, and the rest were measured in the test window juc_tester.json of the measurement add-on json-ui-claims (measurement add-on). The code evidence is the Android 1.26.52.3 and Windows 1.26.65.1 decompilation.

  • [BND-38] Bindings cut integers to 32 bits. When a binding expression reads an integer, only the low 32 bits remain: -8589934591 in the property_bag was read as 1, and 2147483648 as -2147483648. A view binding that copies a value without any expression ("source_property_name": "#src", or from another control with source_control_name) also delivered a 64-bit integer truncated, so actor_portrait_renderer did not draw that entity, while 90 copied the same way worked. Do not move 64-bit integers such as entity ids through bindings; write them as JSON integers in the property_bag (FILE-47). {measured, code (binary)} (Source: 2026-11-20 Windows 1.26.65.1, 2026-11-20 decompilation)
  • [BND-39] A view binding target written without # ("target_property_name": "rotate_y", "scale_x", "translate_x") is written to that key of the control's property_bag, and custom renderers read the value. Writing to "#rotate_y" had no effect on actor_portrait_renderer. Use a renderer key as the target exactly as it is written in the property_bag. {measured} (Source: 2026-11-20 Windows 1.26.65.1)
  • [BND-40] Script API ScreenDisplay.updateSubtitle updates the #hud_subtitle_text_string bindings of the controls made by hud_title_text_factory without the title being sent again. When the subtitle changed to 0, 45 and 90, the rotation, translation and scale bound to it followed. Sending the title again creates the control anew (ANI-12), so send values that change often in the subtitle. {measured} (Source: 2026-11-20 Windows 1.26.65.1)

Expressions in binding_name​

  • [BND-26] An expression binding {"binding_name": "(expression)", "binding_name_override": "#t"} gives the controller's original answer to #t in the bag and the expression result to the component. If another view reads #t, it sees the original answer, not the expression result. To share the result, compute it with a view binding and put it in a new property. The Windows 1.26.65.1 code confirms only the first half: in the binding update loop, for a global entry the controller writes the original value to the target name key and the apply function reads that key. Inside this loop there is no call that computes the expression of a global entry (expression evaluation exists only for view entries), and where the expression result is used was not found in the code. {code (source), code (binary)} (Source: CN test B08, 2026-11-24 decompilation)
  • [BND-41] A constant expression in binding_name is computed at parse time. "binding_name": "('#title' + '_text')" with "binding_name_override": "#text" showed the title (it becomes a simple binding of the result #title_text). If the result is not text starting with #, nothing is registered and Must define a binding name! is logged (code). An expression containing # makes one entry for each #name in it, and without an override that #name itself is the target (code). "binding_name": "(not #title_text)" without an override, drawn with "text": "#title_text", still showed the title: the original value is written to #title_text (BND-26). {measured, code (binary)} (Source: 2026-11-20 Windows 1.26.65.1, 2026-11-20 decompilation)

Global binding names the engine answers​

These are from the Windows 1.26.65.1 client code ({code}) and HUD label measurements ({measured}). For the measurements labels were inserted with insert_back into the root_panel of ui/hud_screen.json, and whether a name exists was told with the property_bag pair below. Function addresses are in native-notes/.

  • A screen controller answers by running a switch on the hash of the binding name. With no matching entry it asks the base controller, the binding map the controller registered, and the child controllers in that order, and if nobody answers it returns false and writes no log {code}.
  • A binding that gets no answer writes nothing to its target. The binding update loop asks the controller for each entry and, regardless of the answer, calls the apply function with the target name (the override if there is one). The apply function takes that key from the control's bag, and a missing key is null. If the target is an engine property it uses that property's default: the boolean read of #visible returns true when the value is not a boolean or is missing. #enabled and #focus_enabled are also true and #alpha is 1.0. If the target is a name that is not an engine property (#probe and so on), the apply function does nothing and the key keeps the value written in property_bag {code}.
  • So a binding that gets no answer, bound directly with binding_name_override: "#visible", looks true, and a missing name cannot be told from a true one. The nonexistent name #re8_nonexistent_binding was shown when bound this way {measured, code}. For the same reason, a control with a static "visible": false becomes visible when a binding with no answer is bound to #visible. The measurement with #re9_nonexistent_binding gave this (BND-09) {measured, code}.

Whether a name exists is told with two labels that differ only in their property_bag default. The candidate binding (the #cand slot below) is received into #probe, a key that is not an engine property, and a view binding copies #probe to #visible. Put the global entry first and the view entry after it (the loop runs in array order).

"probe_f": {
"type": "label", "text": "F",
"property_bag": { "#probe": false },
"bindings": [
{ "binding_name": "#cand", "binding_name_override": "#probe" },
{ "binding_type": "view", "source_property_name": "#probe", "target_property_name": "#visible" }
]
},
"probe_t": { "...": "same as probe_f, only property_bag is { \"#probe\": true }" }
Candidate stateF (default false)T (default true)
No such name (the controller does not know it)hiddenshown
Exists, value trueshownshown
Exists, value falsehiddenhidden
  • With a missing name #probe keeps the property_bag value, and with an existing one the controller writes a boolean into #probe. To see the value itself, give a third label "#probe": "M" in property_bag and copy ('V' + #probe) to #text: a missing name shows VM, an existing one Vtrue or Vfalse {measured, code}.
  • For an integer or string binding, put "#probe": -12345 in property_bag and copy (not (#probe = -12345)) to #visible. A missing name hides and an existing one shows (unless the value happens to be -12345). A non-boolean value copied to #visible as is becomes the default true, so the comparison is needed {code}.
  • A name inside a collection (#shield_is_active and so on) is always missing as a global. Build the same pair with a collection binding {code}.

Values measured in the HUD (Windows 1.26.65.1, 2026-11-24, #is_not_riding and #descend_description on 2026-11-25, keyboard, standing in a world). The first three are calibration {measured}.

BindingFT('V' + #probe)Verdict
#is_using_gamepadhiddenhiddenVfalseexists, false (keyboard)
#is_ridinghiddenhiddenVfalseexists, false (standing)
#re9_nonexistent_bindinghiddenshownVMmissing
#vrhiddenhiddenVfalseexists, false
#show_cursorshownshownVtrueexists, true
#inventory_button_enabledshownshownVtrueexists, true
#hud_visible_centeredshownshownVtrueexists, true
#tts_enabledhiddenhiddenVfalseexists, false
#focus_wrap_enabledhiddenshownVMmissing in the HUD
#safezone_inner_tophiddenhiddenVfalseresolves (the M is gone), but it concatenated as false instead of a number, and the meaning is unknown
#is_not_ridingshownshownVtrueexists, true (standing). Vfalse in a boat
#descend_description--DM (prefix D)does not resolve in the HUD (both on the ground and on scaffolding). See below

Values measured with the same pair inside a server form (Windows 1.26.65.1, 2026-11-25, inserted before long_form_scrolling_content of server_form.json, screen name third_party_server_screen, keyboard) {measured}.

BindingFT('V' + #probe)Verdict
#is_using_gamepadhiddenhiddenVfalseexists, false
#re9_nonexistent_binding (calibration)hiddenshownVMmissing
#safezone_inner_tophiddenhiddenVfalseresolves, but concatenates as false as in the HUD (meaning unknown)
#tts_enabledhiddenhiddenVfalseexists, false
#gamepad_helper_visiblehiddenhiddenVfalseexists, false
  • In the code #focus_wrap_enabled is not a binding name a controller answers but a target property handled by the apply function (default true on a control that has a focus part). The HUD controller and the base controller have no case for this name, so bound as a global it is missing {code, measured}.
  • There are 53 base bindings that every screen inherits: about 30 controller icon strings (#controller_face_down_icon and others), 6 button descriptions (#button_a_description and others), input state (#is_using_gamepad, #gamepad_helper_visible, #keyboard_helper_visible, #gamepad_cursor_visible, #gesture_control_enabled, #init_selection_wheel_input_mode), 8 safe zone values (#safezone_inner_top, #safezone_outer_left and others), reading helpers (#tts_enabled, #tts_dialog_title, #tts_dialog_body), #close_button_visible and #service_image_*. The wiki lists only #gesture_control_enabled. The server form, HUD, chat, sign and trading controllers use this base, so a server form can read them too. Inside a server form #is_using_gamepad, #tts_enabled and #gamepad_helper_visible existed and were false, and #safezone_inner_top concatenated as false as in the HUD (table above). In the HUD #is_using_gamepad was hidden (false) with a keyboard {code, measured}.
  • There are 139 HUD global bindings, of which 71 are specific to the HUD. The wiki lists a little over 20, and about 50 are used by vanilla but are not in the wiki (#is_armor_visible, #paper_doll_visible, #is_riding_bubbles, #survival_horse_hearts, #hotbar_grid_dimensions, #interact_visible, #is_spectator_mode, #scoreboard_sidebar_visible, 14 #layout_customization_* and others). Only the installed vanilla has #editor_chat_visible, #editor_chat_offset and #editor_chat_layout_active for the editor chat {code}.
  • Names were found for five of the hashes whose names were unknown, by combining identifier pieces from the executable. For #descend_description (HUD global, string) and #is_not_riding (HUD global, boolean) the behavior of the case code matches the name: the first writes hudScreen.tooltip.scaffoldingDescend (English "Hold to Descend") when its condition holds and an empty string otherwise, and the second writes the inverse of the same mount query as #is_riding {code}. #controller_select_icon (base, string) and the HUD collection names right_helper_collection and left_helper_collection were adopted to fit their neighbors (the icon group such as #controller_start_icon, and the pairs with the HUD globals #right_helper_count and #left_helper_count) {code, inferred}. Vanilla UI does not use the first two. In the Windows 1.26.65.1 HUD #is_not_riding existed and was true while standing and false in a boat (#is_riding was false and true at the same times) {measured}. #descend_description drawn with text was empty, and the property_bag pair ("#probe": "M", ('D' + #probe)) gave DM both on the ground and on scaffolding, so it did not resolve in the HUD. But on the screen where the player crouched down onto scaffolding the vanilla descend hint did not show either, so it is not certain that the "standing on scaffolding" condition held, and whether the name is used only on other screens or with touch input is unknown {measured}. #controller_select_icon and the two collection names were not measured in game. The condition of #descend_description looks like standing on scaffolding {inferred}. One more HUD global hash (constant false) has the candidate #vr_riding only at chance-match level and is on hold.
  • There are 36 HUD collection bindings, and the collection names include hotbar_items, boss_bars, controls_toggle and option_items. Most are item slot names (#item_id_aux, #item_durability_* and others), and the HUD-specific ones are #bossName, #bar_visible, #bar_color, #progress_percentage, #hotbar_hint_visible, #slot_selected and others {code}.

There are 6 names that vanilla UI never uses.

NameKindValue read
#vrHUD globalConstant false. Hidden while standing, and the property_bag pair also gave exists, false {code, measured}
#is_ridingHUD globalWhether the player is riding a mount. Hidden while standing and shown while riding after /ride @s start_riding. Usable {measured}
#show_cursor, #inventory_button_enabledHUD globalThe code says boolean (a HUD field, the inverse of a model query). Measured with the property_bag pair, both exist and were true while standing in a world. Opening chat hides the HUD, so a state in which they become false was not seen {code, measured}
#shield_is_activeHUD collection (hotbar_items)The code says true when the item in the slot is a shield and the player is using that same item. Bound as an ordinary global binding it looked like a nonexistent name. Bound as a hotbar collection binding with a shield in slot 1, the cell was shown while slot 1 was selected, both while blocking with right click and while not. It was hidden when slot 2 was selected. It was closer to whether the selected slot holds a shield than to whether the player is blocking {measured}
#show_item_pickupHUD collection (hotbar_items)The value differed per slot. A cell appeared only for slots with content and stayed shown for over a minute on the bread and emerald slots. The shield slot was shown right after the first /give but hidden after the world was reopened. Whether it means the duration of the pickup display was not settled {measured}

A collection binding is bound with binding_type: "collection" and binding_collection_name: "hotbar_items" and read in the cell label of the grid that is built for each slot.

Proposed rules

The rules below lack evidence or are not adopted yet. Check the evidence before using them.

  • [BND-30] (proposal) There is a generator (AsaJS) that does repeated calculation (counting string length, a Newton square root) by attaching two view bindings to the same target, "initialize" and "itself + increment". The method relies on the premise that a view binding rewrites only when its source changes and the chain loops until it converges (the Cinnabar finding CN-36). The iteration limit and per-frame processing are not checked, so it is not used as a recipe. Self-reference itself worked on Windows 1.26.65.1. On a zero-size HUD panel, a view binding writing ((#st * (1 - (#on + #off))) + #on) back into #st held the state 1, 1, 1, 0, 0, 1, 1 for the titles XON a, other, plain, XOFF b, other2, XON c, other3, with no hang and no log error (record). Not checked: whether the iterative calculation that increments by 1 (string length, square root) reaches the final value, and how many frames it takes. {code (source), measured, unverified} (Source: ASJ, CN, 2026-11-19 Windows 1.26.65.1)

Facts added by community reports (community)​

(Source: private research) All are at the report level.

  • Principle: global to take as is, view to compute.
  • If you attach several bindings to the same target, they are not merged. Merge them into one expression. A binding that reads and writes the same name works for a numeric toggle state: a view binding that reads #st from the property_bag and writes it back into #st held its state on the HUD, with no hang and no log error (Windows 1.26.65.1, BND-30, record). A form that keeps appending to a string (from #len to #len) is reported to loop and grow memory, and was not measured. Which entry wins is set by the code (Windows 1.26.65.1): the update loop writes and applies each entry in array order, so within one update the last entry that actually wrote a value wins. A later entry the controller does not answer writes nothing and only re-applies the earlier value, so it does not win (global binding names the engine answers).
  • resolve_ancestor_scope appeared in 1.21.130. On Windows 1.26.65.1 it read the ancestor without an error (BND-01). resolve_sibling_scope: true restricts the search: the sibling was read and the cousin was empty.
  • Putting once on the factory and grid length bindings of a big form reduces lag and ghost buttons. But keep the #visible of a layout chosen by title at always (BND-31). The always and visible conditions were also effective on the view binding of a layout #visible (BND-31, BND-32).
  • The preserved title (latch) pattern works. Value preservation of BND-18 is the usual method for the HUD title channel and it also worked on Windows 1.26.65.1 (BND-18). The data_control usually goes at the root. In the measurement, a latch inside a parent hidden via the action bar still recorded a title sent while hidden (measurement record).
  • property_bag_for_children entered the stable release around 2026-05 (BND-28).
  • A nonexistent binding name (#item_aux_id, the correct one is #item_id_aux) returns the property_bag default without an error. The code is the same: when no controller answers, nothing is written to the target and no log is written. The target key keeps the property_bag value, and if property_bag has no such key the engine property's default is used (#visible and #enabled true, #alpha 1.0) (global binding names the engine answers). In a Windows 1.26.65.1 measurement the key that received the nonexistent name #re9_nonexistent_binding kept its property_bag value M. Bound directly to #visible it looks true, so being shown does not prove that the name exists. Tell whether a name exists with the property_bag pair of "Global binding names the engine answers" above. Copy binding names from vanilla files or the JSON UI Dumper.
  • A mobile crash report: writing and inline inside binding_name killed mobile. Do calculations in a view binding.
IDTopicClaim and evidenceVerdict
C-43A binding expression without #Measurement discards the whole bindings array, Cinnabar only that one bindingOpen: follow BND-05

Items that need measurement​

  • Whether variables can be passed to cells with factory_variables (COL-15, BND-14).
  • How many frames the initialize and self-increment bindings take to count string length (BND-30).
  • Why #safezone_inner_top concatenates as false instead of a number. It was the same in a server form.
  • Whether #descend_description resolves while standing on scaffolding (it did not resolve in the HUD, but it is not certain that the condition held), and whether #controller_select_icon exists.
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
asajsAsaJSGPL-3.0 (confirmed in the repository LICENSE)9f884dc2026-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