Skip to main content

Measuring unverified JSON UI claims

This page records rules in the JSON UI chapter that came from community reports and code reading, measured on Windows with one add-on. Each rule entry carries a short form of its result; the numbers and conditions are here.

  • Target: Windows 1.26.65.1, a single-player world, GUI 480x253 (client 1920x1009, scale 4). Measured on 2026-11-18.
  • Anything the vanilla files of the official samples preview branch (1.26.70.24) already show (for example an expression in a collection binding_name, a state variable expression in ignored) was not measured.
  • Other platforms, Ore UI and DDUI internals, anything that needs multiplayer, Marketplace policy and rumours about future versions were left out.

1. Method​

  • The add-on picks a window by the server form title §b§wjc:N. A router (collection_panel) goes into main_screen_content of server_form.json with insert_back, and the first 10 bytes of the title are looked up as a property_bag key. This is the same scheme as the other server form examples, and they work together in one world.
  • The script sends the input strings as button texts. The cells of a window are stack_panel cells with a fixed collection_index; a label receives #form_button_text as #v and draws the result of a view expression into #text.
  • Measurement used MCP tools: edit the JSON, reload the UI (ui_reload), then read control tree rects, the content log and the text in screen captures. Rects are client pixels; one GUI unit is 4 pixels.
  • A label whose result is only a number showed nothing (section 2.4), so numbers and booleans were read wrapped as ('R' + expression).

2. Expressions​

2.1 Operators​

ExpressionInputResultRelated
('R' + (#v != '5'))5R (no value)EXP-02
('R' + ((#v - 0) >= 10))10R (no value)EXP-03
('R' + (not ((#v - 0) < 10)))10RtrueEXP-03
('R' + ((#v - 0) % 5))17R (no value)EXP-02
('R' + ((#v - 0) - (((#v - 0) / 5) * 5)))17R2EXP-38
same expression, divisor 3-7R-1 (-7 / 3 is R-2)EXP-38
('R' + (5 < (#v - 0) < 7))10Rtrue (wrong true)EXP-28
('R' + (((#v - 0) > 5) and ((#v - 0) < 17)))10RtrueEXP-04
('R' + ((5 < (#v - 0)) and ((#v - 0) < 7)))10whole label emptysee below
('R' + (#v < 'c')), >, < 'a'bRtrue, Rfalse, Rfalse-
('R' + ((#v - 0) + 1))2147483647R-2147483648-
(translate('gui.ok', #v))bempty-
  • Every time the window loaded, the content log printed JSON UI parse failure: Invalid expression. 6 times. Six rows also gave no value (!=, >=, % twice, the and comparison with a literal on the left, translate). The log has no control path, so lines and rows were not matched one by one.
  • Only the expression that joins a comparison with the literal on the left ((5 < x)) through and failed; writing the same thing as (x > 5) worked. The cause was not separated.

2.2 String minus and leading characters​

Input and expressionResult
abab - 'ab'empty string
xaxbx - 'x'ab
' x' - 'zz' x (leading space kept)
':x' - 'zz':x
'-x', '+x', '1x', '#x', '/x', '<x' - 'zz'empty
'Info: a', 'nancy', '0x12', 'inf' - 'zz'empty
'' + '1x', '' + 'Info: a', '' + '0x12'empty
'§r' + '1x', 'z' + '1x', 'z' + '/x'1x, z1x, z/x
  • String - removes every occurrence (EXP-12).
  • A label was empty when the result started with -, +, a digit, #, /, <, inf, nan or 0x (EXP-48). Results starting with a space or : showed as they were. A / in the middle showed without doubling. \ was not measured.

2.3 '%.Ns' cuts​

InputNResult
§cAB1, 2, 3, 4broken, broken, §c (blank), §cA
가나다2, 3, 4, 6broken, 가, 가 + broken, 가나
😀xy2, 4, 5broken, emoji box, emoji + x
abcdef%7.4s, %-7.4s, %9s, %-9s, %09s, %4.2sall abcdef unchanged
abcdef%.4sabcd
  • § cuts as 2 bytes, Hangul as 3 bytes, emoji as 4 bytes (EXP-24). Cutting in the middle of a character dropped that piece and also the character concatenated right after it (']').
  • Formats with a width or padding neither cut nor pad; they returned the input unchanged. The only working format was '%.Ns' (EXP-25).
  • (('%.3s' * 'abcdef') + (#v - #v)) was abc: a literal is cut too. With no # property in the same expression, the binding failed with Must define a source property name in the binding! (BND-05).
  • A format built at run time worked. (('%.' + #v + 's') * 'abcdef') (#v is 3), ('%.' + $n + 's') ($n is 3) and ('%.' + '3' + 's') all gave abc (EXP-43).

2.4 Numbers​

ExpressionInputResult
((#v - 0) * 2), ((#v - 0) * $two)48, 8
(#v * 1)4empty string
((#v * 1) + 1), ((#v * 1) = 4)41, false
(#v - 0), ((#v - 0) = 4)44, true
(#v + 1)441 (concatenated)
(#v + $zero), ((#v + $zero) + 1), $zero is JSON 0.044, 5
((#v - 0) * 0.3), * 1.5100, 10
(((#v - 0) * .3) = 3)10true
((#v - 0) * .3), (((#v - 0) * .5) * 2)10no value in the label
((#v - 0) / 4)102
  • Multiplying by a literal worked.
  • * 1 does not convert to a number; it makes an empty string. - 0 converts (EXP-16).
  • (#v + $zero) with the JSON variable 0.0 became a number, so + 1 gave 5. Adding an integer to a string concatenates (41). Even so, the content log printed Expected variable not found in ancestor tree: '$zero' for those rows.
  • A decimal literal with a leading digit becomes an integer (0.3 is 0, 1.5 is 1, 100.0 is 100). .3 computes as a decimal (EXP-27).
  • A float result did not show in a label even after 'R' +. Integers and booleans showed when concatenated; a number alone in #text showed nothing.
  • A parenthesized string value in property_bag is evaluated. Reading "#pb": "('A' + 'B')" through a label with text: "#pb" showed AB, "plain" showed plain, and "(1 + 2)" was a number and stayed empty.

3. Layout​

The parent is a 100x40 box.

ItemResult (GUI units)Related
size: "default" and no sizesame: panel 100x40, label Hello 24x10, vertical stack_panel 100x10 (width of parent, height sum of children), grid of 2x2 10x10 cells 20x20LAY-03
panel with no size (siblings 30x10, 50x20)100x40, the parent sizecommunity single report
"50%"-wide child in a 100%c parent (sibling 40x10)parent width 0, % child width 0, fixed sibling drawn at 40x10LAY cycle
#size_binding_x = .5 (declared 10x10)width 50 (0.5 x parent). 50 with use_anchored_offset tooLAY-10
#size_binding_x = 2width 200 (exceeds the parent, no clamp)LAY-10
#size_binding_x_absolute = 20width 20LAY-10
static #anchored_offset_value_x = 10, use_anchored_offset, top_leftx moved 1000 (10 x parent width)LAY-49
same value, centerno moveLAY-49
same value, no use_anchored_offsetno moveLAY-49
#anchored_offset_value_x = .1, bottom_leftx moved 10LAY-49
#anchored_offset_value_x_absolute = 10, top_leftno moveLAY-49
grid [4,1], cell 1 #visible falsecells 2 and 3 stay at x 40, 60LAY-31
same cells in a horizontal stack_panelcell 2 moves to x 20LAY-04
top-level "ignored": "$hide" in the definition, "$hide": true at the referencethe control was created in all three cases (true, false, omitted) and the log printed Expected variable not found in ancestor tree: '$hide'A.3 #22
  • On a static control, #anchored_offset_value_x moved by a multiple of the parent size and only with a corner anchor.
  • collection_name on a panel logged Unknown property [collection_name], and collection_index on its children logged Unknown property [collection_index] (same as COL-38).

4. Files and modifications​

ItemResultRelated
In the same-path vanilla file thanks_for_testing_screen.json, on text_panel (children title, desc, desc2): insert_after (title), insert_before (desc2), insert_back with an object valueinserted in the order title, after, desc, before, desc2, objectMOD-14, MOD-01
move_front (desc2) + move_back (title)desc2, desc, titleMOD-14
swap (title, target_control desc2)desc2, desc, titleMOD-14
replace (desc, new panel)title, new panel, desc2MOD-14
move_after (title, target_control desc2)desc, desc2, titleMOD-14
move_before (desc2, target title)desc2, title, descMOD-24
insert_back into array_name: "variables" with { "requires": "$multiline_description", "$description_text_line_2": "FROM_VARIABLES" } (a definition without its own variables array)the second line changed to FROM_VARIABLESMOD-03, C-64
three packs (json-ui-performance, collection-expr-probe, this add-on) insert_back into the same main_screen_contentjup_router, jcx_router and juc_router all presentMOD-02
a definition with an unknown type (no_such_type) in the middledefinitions before and after were created; log Type 'no_such_type' not ...FILE-30
a JSON syntax error (trailing comma inside an object) in the middlethe definitions before the error and the erroring one were created; the one after logged UI control reference not found: 'b'FILE-30
two controls named dup in one controls arrayboth created, no logFILE-39
one namespace split over two files (juc_split.outer references juc_split.inner in the other file)child createdfile split
  • A modifications entry on variables took effect when the target definition had no variables array of its own. A definition with its own array was not measured here (MOD-03).
  • A same-path vanilla file newly added to the pack and a file newly registered in _ui_defs.json were not read by ui_reload (Ctrl+R); the world had to be re-entered. Edits to files that were already loaded were picked up by ui_reload.

5. Server forms and bindings​

ItemResultRelated
#form_button_length of an action form with 35 buttons + 4 label + 3 divider + 2 header44 (every row counted)COL-31
collection_index: 1 and a collection binding on a label right under a collection_name stack_panelread b1COL-02
fixed cells inside the router window, bindings with default conditionsempty on the first open (both when opened straight from the HUD and when coming from a menu form)COL-47
same cells with always on both bindingsfilled from the first openCOL-47
four radio toggles with the same toggle_name in two different parentspressing a toggle in the other parent turned off the one that was onINP-32, INP-35
three radio toggles made by a gridpressing 1 then 3 left only 3 onINP-35
((#title_text - 'formA:' - 'formB:') = #title_text)false for the titles formA:x and formB:y, true for plainHOST-33
MessageFormDatadrawn by popup_dialog_factory of third_party_server_screen (1 root, 72 controls, the modal in popup_dialog.json); server_form_factory had 0 rootscommunity unverified
source_control_name view binding (no flag)read a sibling, a cousin, an ancestor and a distant control at the top of the windowBND-01
same binding with resolve_sibling_scope: trueread the sibling, the cousin stayed emptyBND-20
ancestor read with resolve_ancestor_scope: trueread it; no Unknown property log (it also reads without the flag)BND-25

6. Additional items​

These were measured separately after sections 1 to 5, on the same day and version. The windows are §b§wjc:5 (expressions, lengths, buttons) and §b§wjc:6 (structure renderer).

ItemResultRelated
stack_panel factory (control_name) inside the router window, 6 buttons, length binding condition visible0 controls for all four (even the vanilla-style #form_button_contents)COL-48
same factories, condition always#form_button_contents 6, #form_button_length 6, (#form_button_length - 1) 5, ((#form_button_length * 0) + 1) 1COL-36
grid (grid_rescaling_type: "horizontal") #maximum_grid_items, always_when_visible#form_button_length 6 cells, (#form_button_length - 1) 5 cellsCOL-36
common.button with locked_control and a view binding to #enabled (false for one button)that button drew its locked control and pressing it twice left the form open; pressing the other button closed the form with selection 1disabling a server form button
((not (#v = 'a')) or (#v = 'b')), the swapped order, three termsno valueEXP-29
(not ((#v = 'a') and (#v = 'c')))no valueEXP-29
(not (#v = 'a') or (#v = 'b')) (not term without parentheses)false (correct)EXP-29
(((#v = 'a') = false) or (#v = 'b'))false (correct)EXP-29
((#v = 'b') or (#v = 'c') or (#v = 'a'))trueEXP-29
text: "#form_text" on a control under main_screen_contentemptyreading the form body
((#form_text - '~x') = #form_text) on a control inside long_form, body first line, newline, second line ~xfalse (marker found). Two lines without the marker gave true, one line with the marker falsemulti-line marker
  • A parenthesized (not ...) used as an operand of and/or, or a not over a parenthesized and group, made the whole expression give no value regardless of the number of terms. The report that the first term goes wrong with three or more terms was not reproduced in this form. Write the not term without the parentheses or as (... = false).
  • Factory and grid lengths computed from an expression worked. This is a different structure from the earlier record (COL-36), and the cause of that record was not separated. Inside the router window the length binding needed always (same as COL-48).

6.1 3d_structure_renderer​

A "type": "custom", "renderer": "3d_structure_renderer" control was placed outside the structure block screen (in the server form window) with only property_bag values and none of the structure editor bindings. The world had 3x3x3 gold blocks from (3,-60,3), with a diamond block and a redstone block on two top corners.

SettingResult
#bottom_left_block [3,-60,3], #top_right_block [5,-57,5]only 2x3x2 gold blocks drawn
[3,-60,3]..[6,-56,6]the 3x3x3 and the two blocks on top drawn
same corners, #block_position [0,0,0] and [40,0,40]same image
#block_position [3,-60,3], corners [0,0,0]..[2,3,2]nothing
player more than 17 blocks awaydrawn
[-32,-64,-32]..[32,-58,32], 64x6x64drawn scaled to fit the box, F3 60 fps (vsync cap)
near x, z 5000 (not loaded)nothing
wrapped in an input_panel (gesture_tracking_button: "button.turn_structure") with view bindings of that panel's #gesture_delta_source, #gesture_mouse_delta_x, #gesture_mouse_delta_y into the rendererrotates when dragged
same wrapper without the view bindingsno rotation
region [0,-60,0]..[10,-55,10], #include_entities truethe armor stand inside the region is drawn
same region, #include_entities and #include_players truethe armor stand and the player standing in the region are drawn
same region, both falseblocks only, no entities
with the form open, a script moves the armor stand and switches the block at (4,-57,4) between diamond and air every secondthe renderer image follows the entity movement and the block change (checked on screen by the user)
renderer enlarged to 160x160 so its top right reaches past a 120x120 parent with clips_children: truethe top-right axis is not visible; the structure shifts toward the top left by the same amount
#remove_blocks true, entities and players ononly the armor stand and the player are drawn, no blocks
#has_focus trueno difference in the still image
  • The two corners are absolute world coordinates and the upper corner is exclusive. #block_position had no visible effect on the image.
  • The renderer draws the current world in the region. Entities and players are added with their flags, and movement and block changes show while the form is open.
  • The vanilla files have no property_bag key that turns off the top-right axis. Making the renderer larger than its box and cutting it with the parent's clips_children hid it. All properties and how to use them are collected in the structure renderer plan.
  • Coordinates from a $variable per instance worked. Building arrays from server text, the HUD and the chest screen were not measured.

6.2 HUD title​

Measured in a panel inserted into hud.root_panel with insert_front. In the first round, entering the world with ui/hud_screen.json in the pack crashed the game. That crash came from the packet capture module of the measurement tool (DLL injection). After the tool was fixed, re-entering the world did not crash with the latch alone, one title factory, an added destroy_at_end animation, and finally three factories plus the latch. So no link between the HUD file contents and the crash was confirmed.

ItemResultRelated
a zero-size panel copies #hud_title_text_string into property_bag #saved with visibility_changed; #visible is "contains JUC and differs from #saved"for the titles JUC one, other, JUC two, plain again, saved read JUC one, JUC one, JUC two, JUC twoBND-18
the same latch inside a parent hidden by the action bar (off); while hidden, JUC cc then otherJUC cc once the parent was shown again; it recorded while hiddenBND-18
four panels with the hud_title_text_factory factory, control_ids hud_title_text renamed like juc_d_inst_a@...every created control was named hud_title_text (the instance name is ignored)-
alpha animation inside with destroy_at_end: instance name / definition name / hud_title_textthe first two were not destroyed; only hud_title_text was destroyed about 1 second later-
factory control without a destroying animationstays after the title endsHOST-27
only the alpha of hud_title_text set to constant 1.0the title still disappears when it endsHOST-41
alpha of hud_title_text, hud_title_text/title_frame/title_background and hud_title_text/subtitle_frame/subtitle_background all 1.0stays until the next titleHOST-41
default, open a server form and set a title by script 3 seconds laterthe HUD (hotbar, title, latch labels) is not drawnHOST-44
only "force_render_below": true on third_party_server_screenthe HUD is drawn behind the form; titles and latch values that arrive while the form is open updateHOST-44
plus "screen_draws_last": true on hud_screenthe HUD is drawn on top of the formHOST-44
only "screen_draws_last": true on hud_screennot drawnHOST-44
  • destroy_at_end must match the name of the control the factory made, and that name is the control_ids key.
  • To keep the vanilla title, the alpha of all three controls that carry a destroying animation had to be overridden.
  • Inserting with insert_front into long_form, which only inherits controls, removed the whole form body (same as MOD-04). The measurement add-on inserts into long_form_scrolling_content, which declares controls itself.

6.3 State holding, lazy roots, pack order, rendering​

2026-11-19, same version. Rows that are not about JSON UI are in Content and rendering claim measurements.

ItemSetupResultRelated
Self-referencing statezero-size HUD panel, property_bag #st 0, a view binding writing ((#st * (1 - (#on + #off))) + #on) back into #st; #on and #off are whether the title contains XON or XOFFfor the titles XON a, other, plain, XOFF b, other2, XON c, other3 the state was 1, 1, 1, 0, 0, 1, 1. It held through other titles, with no hang and no log errorBND-30
$touch in a server formpanels with "ignored": "$touch" and "ignored": "(not $touch)" in a server form windowonly the first was created ($touch is false on Windows). No Expected variable not found logLAY-48
1x1 grid lazy rootgrid [1,1] in the router window, #maximum_grid_items set to the button count with once and to a title check expression (1 or 0) with visible; fixed collection_index 0, 4, 5 on a stack_panel inside the cellcells with the default (none) condition and with always both filled from the first open (same on a second open)COL-40, COL-47
Two packs, same propertyin the same-path hud_screen.json, size of chat_grid_item/chat_background is "50%" in this add-on and "75%" in a helper pack; the helper pack is higher in the world pack listchat background width 570 (75% of the 760 parent), the higher pack's value. With this add-on alone it was 380 (50%)FILE-21
  • The reverse pack order could not be measured. Reordering the world pack list file was undone by the game on world entry, so "the higher pack wins" is the result of one order.
  • On the day the self-referencing state was first added, entering the world showed an "An error occurred (Block)" screen once. Adding the same panel again and re-entering did not repeat it, so it was not taken as the cause.
  • The helper pack was used only for the measurement and is not in the add-on. To measure again, turn on one more resource pack whose same-path ui/hud_screen.json sets the same property to another value.

6.4 Named bindings, empty global length, division, texture count, particle counter​

2026-11-19, same version. Expression rows read a button text of window 1 (P1) or window 5 (P5) as #v. Rows that are not about JSON UI are in Content and rendering claim measurements.

ItemSetupResultRelated
Named view, target without the propertya label in long_form_scrolling_content reads #form_text through source_control_name from a sibling panel without bindings (juc_src_empty)the form body showedBND-24
Same, missing control namesource_control_name: "juc_no_such_control"emptyBND-24
Same, router windowa label of window 5 under main_screen_content reads #form_text from a panel without bindings (touch_true)emptyBND-24
#collection_length only in property_bag"#collection_length": ["m"] on a collection_panel control_ids factory, 3 on a stack_panel control_name factory. Each with and without a global binding that does not exist (#juc_no_such_global to #collection_length)0 controls in all fourCOL-22
Fixed front cut with '@'(('§_' + ('@' + #v)) - ('@' + ('%.3s' * #v))) on abcabcabc. Only the first three characters went. The plain cut (#v - ('%.3s' * #v)) removed both abc and gave emptyEXP-13
Real literal starting with a dot(((#v - 0) * .01) = 1) and ((#v - 0) * 0.01) on 100true, 0EXP-27
Divisionin P1, ((#v - 0) / 5) (100), ((#v - 0) / 16) (-37), and ((x - 0) / 16) where x is -37 taken out by ('x: ' + #v) - 'x: '20, -2, -2. Integers cut toward 0EXP-20, EXP-49
Minimap chunk expression((x - ((x < 0) * 15)) / 16) on the same x, for -37 and 100empty for both. No freezeEXP-49
Add a comparison product, then divide((#v - 0) - (15 * ((#v - 0) < 0))) / 16, + (((#v - 0) < 0) * -15), - ((((#v - 0) < 0) * 15) - 0)all empty. (((#v - 0) < 0) * 15) alone gave 15, and ((#v - 0) - 15) / 16 gave -3EXP-19, EXP-49
Division in window 5one of ((#v - 0) / 16), ((#v - 0) / 5), ((x - 0) / 16) in a row of the P5 windowthe client froze the moment the window opened or the UI was reloaded (not responding, CPU near 0). The same expressions did not freeze in P1EXP-49
  • The minimap expression does not freeze on this build, but it does not give a value either. Adding or subtracting a term that multiplies a comparison and then dividing gives empty, so the negative correction needs another expression. Without the comparison term, ((#v - 0) - 15) / 16 was right.
  • The cause of the window 5 freeze was not separated. The same expression with the same value was normal in window 1, so the expression alone is not the cause. Window 5 also holds other experiments: a 1x1 lazy grid, a global binding that does not exist, $touch panels and named views.

6.5 Decimal literals, alpha, string division, HUD, rendering queries​

2026-11-19, same version. Expression rows were measured in window 7 (§b§wjc:7, buttons 50, 7abc, a-b-a, abc|UI|def). Bars are an 80x5 textures/ui/White image with clip_direction: "left" and a bound #clip_ratio. Division expressions did not freeze in this window. Rows that are not about JSON UI are in Content and rendering claim measurements.

ItemSetupResultRelated
100.0 literal((#v - 0) / 100.0) and (((#v - 0) / 100.0) > 0) on 500, falseEXP-27
4.5 literal(((#v - 0) * 4.5) > 210)false (multiplied by 4)EXP-27
JSON variable 100.0"$hm": 100.0, (((#v - 0) / $hm) > 0)true. The bar ((#v - 0) / $hm) was halfEXP-27
Bar ratio((#v - 0) / 100.0), * .01, * 0.01full (0), half, full (0)ANI-03
Multiply a cut string by 1, then divide((1 * ('%.2s' * #v)) / $hm) on a barhalf (0.5), no freeze. Rows that concatenated the same value as text or compared it with = 50 or > 0 were emptyEXP-49
Bound #alpha, no declarationonly the view binding target is #alpha, no "alpha" on the image. Values .5, 1.0, integer 1, true, $half (0.5)all invisibleLAY-13
Bound #alpha, declared"alpha": "#alpha" on the image. Values .2, .5, .9, integer 1drawn with a different transparency for each valueLAY-13
('#if_' + boolean) lookuplabel property_bag {"#if_true": "YES", "#if_false": "NO"}, #text from ('#if_' + ((#v - 0) > 10))YES for 50 > 10, NO for 50 > 90. ('R' + ('#if_' + boolean)) gave only RCOL-39, EXP-30
($bt) in an expression"$bt": "#v", ('R' + ($bt))R50 (read as a property)BND-33
Variable whose value is an expression"$tid": "ab", "$us": "('%' + $tid + '%')", ('R' + $us)emptyBND-33
One extra closing parenthesis('R' + (#v - 0)))R50parentheses
One missing closing parenthesis('R' + ((#v - 0) + 1)R51parentheses
String starting with a digit(#v - 1 + 2) and (#v - 0) on 7abc9, 7EXP-30
Unquoted §t§r('R' + (§t§r + #v))R50EXP-41
String / string, binding('a-b-a' / 'a'), (('abc|UI|def' / '|UI|') > 0)2, true. No freezeEXP-32, EXP-49
String / string, requires"requires": "($ct / '|UI|')" in variables, $ct is abc|UI|def or abcdeftrue for the first, false for the second. No freezeEXP-21, EXP-32
String / string, ignored"ignored": "($ct / '|UI|')", the same two valuesboth createdEXP-32
#form_button_lengtha 4-button form after a 30-button form4COL-34
once title check in long_formboth the #title_text binding and the view binding once, ('%.6s' * #title_text)Marker from the first openBND-07
HUD #gui_scaleglobal binding #gui_scale (always) read by concatenation and by comparisons (> 0 and so on)both lines empty, no loggui_scale
Title without a latcha HUD label reads #hud_title_text_string directlythe last title stayed 22 seconds after the title disappeared. Empty after re-entering the worldHOST-27
HUD render_only_when_topmost: falseonly on hud_screen, then a title after opening a server formthe HUD was not drawn (same after re-entering the world)HOST-44
  • A bound #alpha applied only when the image had "alpha": "#alpha". Without the declaration even the integer 1 was invisible. With it, values between 0 and 1 drew as they are.
  • The result string of ('#if_' + boolean) starts with #, so it was read again as a property name (EXP-30). That is why a property_bag key gives a value, and concatenating other text in front gives an empty property.
  • The 9 from (#v - 1 + 2) looks like '7abc' - 1 doing string subtraction (there is no 1 to erase) and leaving '7abc', which is read again as the integer 7 before 2 is added. On a title that starts with a digit, - 1 is not subtraction.
  • String / string did not freeze in requires or in bindings. The EXP-49 freeze came from string / number.

6.6 Block UV, controller override, sounds, languages, animation weight​

2026-11-19, same version. The records of this section are claims about pack files outside JSON UI and are in Content and rendering claim measurements.

6.7 Particle queries and counters, sound definitions, material files, biomes​

2026-11-19, same version. The records of this section are in Content and rendering claim measurements.

  • Particle queries and counters, loop(), ??, entity variables, pre_effect_script: particles
  • sounds as an object and sound_definitions inside sounds.json: sounds
  • Material file name, depth test off, fancy graphics off, deferred mode: materials
  • Entity uv_anim, graphics mode option: render controllers and textures
  • Bone name case, attachables using binding: attachables
  • Client biome: fog and biomes
  • Chat brackets, two-letter lang file: languages and fonts
  • How particles were spawned and how the game options were changed: method

6.8 Binding existence, clip_ratio, alpha, size expressions, variable expressions, font size​

2026-11-24, the same version. This section was measured with a separate probe pack addons/re9-probes (resource pack rp-main, behavior pack bp-main), and the main definitions are in rp-main/ui/re9.json. The probes were put into root_panel, hud_actionbar_text and hud_title_text of hud_screen.json with insert_back. Pixel values are client pixels (GUI scale 4). The green outlines in the first captures were drawn by the measuring tool's overlay, so the drawing after turning the overlay off was read, and in the captures before that only the center pixels of cells that did not overlap the overlay were used.

HUD binding existence was told apart with three labels in one row. F has property_bag {"#probe": false} and T has {"#probe": true}; both take a global binding with binding_name_override: "#probe" and then put #probe into #visible with a view binding. V has {"#probe": "M"} with the same global binding and puts ('V' + #probe) into #text. Both hidden means it exists (false), both shown means it exists (true), and only T shown with VM means it does not exist.

BindingFTV textVerdict
#is_using_gamepad (calibration)hiddenhiddenVfalseexists, false (keyboard)
#is_riding (calibration, standing)hiddenhiddenVfalseexists, false
#re9_nonexistent_binding (calibration)hiddenshownVMdoes not exist. The property default stays
#vrhiddenhiddenVfalseexists, false
#show_cursorshownshownVtrueexists, true (in the world, standing)
#inventory_button_enabledshownshownVtrueexists, true
#focus_wrap_enabledhiddenshownVMdoes not exist on the HUD
#tts_enabledhiddenhiddenVfalseexists, false
#safezone_inner_tophiddenhiddenVfalseresolves, but the value is not a number and concatenates as false
#hud_visible_centeredshownshownVtrueexists, true
ItemSetupResultRelated
$actionbar_text comparisonA label inside the actionbar factory after /title @s actionbar xyztext: "$actionbar_text" gave xyz. ($actionbar_text = 'xyz') was hidden and its not shown. After "$copy": "$actionbar_text", ($copy = 'xyz') was shown and its not hiddenFILE-28, HOST-48
Intermediate #clip_ratiotextures/blocks/emerald_block 80x5, clip_direction: "left" (full bar 320 px). (#v * .01) and ((#v - 0) * .01), #v 50both 160 px (half)ANI-50, ANI-03
Ratio from a JSON float variable(((20.0 - 15) / $max) + #z), "$max": 20.0, #z 0240 px. The same as a static "clip_ratio": 0.25 and 0.25 from property_bag (#v)ANI-50
Ratio 0static "clip_ratio": 0.0, (#v * 0) (#v 1)both drew a 20x20 px square at the center (the whole texture) instead of the barANI-50
Ratio expressions without a # property(.25), and ((20.0 - 15) / $max) passed as a variableThe first gave Must define a source property name in the binding!, the second Expected variable not found in ancestor tree: '$max' followed by the same error. Both drew the same square as 0BND-05
Bound #alpha 0.5white 20x20 over a black 130x22 image (textures/ui/White), "alpha": "#alpha", property_bag {"#a": 0.5} into #alpha with a view bindingcenter pixel (128,128,128)LAY-13
Static alphathe same drawing with "alpha" 0.5, 1.0 and 0.0(128,128,128), (255,255,255), (0,0,0)LAY-13
Constant #alpha expressionview (1 * .5) into #alphadropped with Must define a source property name, (255,255,255)LAY-13, BND-05
"100c%", "50c%"210-wide parent, panel ["100c%", 10] (child 30x10), ["50c%", 4] (child 30x4)210x10, 105x4. Parent-based %LAY-36
"50%cm"["50%cm", 10], children 30 and 50 wide, then 30 and 9050x10, 90x10. The largest child, 50 ignoredLAY-37
"50%cm" height[10, "50%cm"], children 10 and 30 high10x30LAY-37
Plain panel %c and %cm["100%c", "100%c"] with children 30x10 and 50x20. ["100%cm", "100%cm"] with children 30x10 and 40x2080x30 (sum), 40x20 (maximum)LAY-59, LAY-37
Constant expression in a variable value"$cut": "('%.3s' * 'abcdef')", text: "$cut"abc. The view ('R' + $cut) was empty with Must define a source property name, and (#z + $cut) with #z R gave RabcEXP-10
* 1 on a cut string#s abcdef with ('A' + ('%.3s' * #s)), (('%.3s' * #s) * 1), ('B' + (('%.3s' * #s) * 1))Aabc, empty, BEXP-31
JSON float variable comparison"$max": 20.0, visible: "(((20.0 - 15) / $max) > .2)", < .3, > 0. A view expression with #z addedall three shown. The view expression gave Gtruetrue. Three view expressions using only $max without a # property gave Must define a source property nameANI-50
Remainder expression('M' + (#v - ((#v / 5) * 5))), #v 13, -7, the string "13" (- 0), 20. ('N' + (#v / 5)), 13M3, O-2, P3, Q0, N2EXP-20
Same-name siblingstwo re9dup@re9.tl in controlsboth created and shown (two 160x36). No related line in the logFILE-39
variables without requires"$vt|default": "DEF" with variables: [{"$vt": "NOREQ"}]. Only variables: [{"$vo": "ONLY"}]. requires true and falseDEF. $vo was the text as is with Expected variable not found in ancestor tree: '$vo'. True gave REQ, false the label's default (DEF3)FILE-13, C-64
font_sizelabel Hg in a horizontal stack_panel, size defaultsmall 6x5, normal 12x10, large 24x20, extra_large 48x40 (GUI). Glyphs in the same ratioTXT-05
$title_alpha, $title_shadowinside hud_title_text, "$a": "$title_alpha", six steps from visible: "($a > .1)" to .9. /title @s title re9t with option gfx_hud_text_background_opacity 0.6shown up to > .55, hidden from > .7. $title_shadow was falsescreen-hosts-and-data
  • An unresolved global binding writes nothing to the target property, so the property_bag default stayed. So two sets of defaults (false, true) tell "does not exist" from "true". Why #safezone_inner_top concatenates as false is unknown.
  • When the source_property_name of a view binding was an expression of only constants and $ variables without a # property, the binding was dropped at load with JSON UI parse failure: Must define a source property name in the binding! ((.25), (1 * .5), ('R' + $cut)). Adding one # property (+ #z) made it work. The section 6.5 row "a variable whose value is an expression is empty" may be the same error, but the log of that row was not checked.
  • A label text (text, $cname) holding a string that starts with ( was evaluated as an expression, gave the warning JSON UI parse failure - expected a string. and the text was empty.
  • #clip_ratio is the ratio of the clipped side (0.25 leaves 75%). The cause of the ratio 0 square is unknown. The "full (0)" of section 6.5 was with textures/ui/White, and this time the White bar could not be read because of the overlay, so a texture dependence was not settled.
  • "$max": 20.0 stayed a float, and ((20.0 - 15) / $max) was 0.25 (between 0.2 and 0.3). The literal 20.0 is the integer 20 but did not affect the result.
  • Integer division truncates toward 0, so (#v - ((#v / 5) * 5)) is the remainder, negative for negative values (-7 gives -2).
  • $title_alpha was between 0.55 and 0.7, matching the option 0.6, and $title_shadow was false at 0.6. Whether they follow a changed option was measured in section 6.9.
  • The game shut down 10 seconds after injection on the first launch, and the measurement was done on the second launch. The world used was a copy of the test world, and no game options were changed.

6.9 Container variables, wheel step, screen variables, server form bindings, same-name siblings, offset​

2026-11-25, the same version. Measured with the same probe pack addons/re9-probes and the same F/T/V pair as section 6.8. The probes were put into the two top_half definitions of chest_screen.json, under horse_label of horse_screen.json, into chat_screen.json, book_screen.json and sign_screen.json, before long_form_scrolling_content of server_form.json, and into a new column at the top right of the HUD. Number variables were read as (#z + $var) with a prefix such as "#z": "CS" in property_bag (BND-42). The named chest was opened by placing a chest the script had named with nameTag, and the chest boat was opened with the inventory key after riding it with /ride. The donkey was tamed and given a chest with minecraft:on_tame and minecraft:on_chest through /event entity, then ridden. Pixels are client pixels (GUI scale 4, client 1920x1009).

Containertext: $container_titleDirect comparison$copy comparison$copy text('T' + #t)$localize_title
Named chest RE9BoxRE9BoxfalsetrueRE9BoxTRE9Boxfalse
Unnamed chestcontainer.chest-true ('container.chest')container.chestTcontainer.chesttrue
Unnamed large chestcontainer.chestDouble-true ('container.chestDouble')container.chestDoubleTcontainer.chestDoubletrue
Chest named (1 + 2)(1 + 2)false-empty, expected a stringT(1 + 2)false
Named chest boat RE9BoatRE9BoatfalsetrueRE9BoatTRE9Boattrue
Named donkey RE9DonkeyRE9DonkeyfalsetrueRE9DonkeyTRE9Donkeytrue
Screen$container_size$container_rows_*$chest_size
Small chest (with or without a name, and the chest boat)27 (CS27)only $container_rows_3 truemissing (Expected variable not found in ancestor tree: '$chest_size')
Large chest54 (CS54)only $container_rows_6 truemissing
Donkey (horse_screen)missingall six missing15 (CH15)
ItemSetupResultRelated
Wheel stepvanilla chat messages_scrolling_panel, 60 lines (content 5646 px, viewport 810 px), y of scrolling_content+56, +57 per step (about 14 GUI), -56 for a step down. +56, +57 again after merging vertical_scroll_delta: 40 into chat_screen and reopeningLAY-71
Chat variables(#z + $max_messages), (#z + $max_text_edit_length)MM100, ML512. text: "$max_messages" was empty with expected a stringFILE-49
Book variableswritable book, (#z + $max_page_length), (#z + $max_title_length)PL256, TL16. text was emptyFILE-49
Sign variablesnewly placed oak sign$sign_texture textures/ui/sign, $sign_text_multiline sign.regular_sign_text_multiline. visible: "$sign_text_multiline" was shownfiles-and-definitions section 1.11
Server form bindingsF/T/V pair, screen third_party_server_screen#is_using_gamepad, #tts_enabled and #gamepad_helper_visible were both hidden, Vfalse (exists, false). #safezone_inner_top was Vfalse too. The calibration #re9_nonexistent_binding showed only T, VMbindings section 4.11
Static visible: falseno binding. Then the nonexistent global binding #re9_nonexistent_binding to #visiblehidden. ShownBND-09
Integer 0 and #visible#z 0, view (#z * 1), then (#z = 1)shown. HiddenBND-27
__rawtext object"$raw": {"__string": true, "__rawtext": true, "value": "(1 + 2)"}, text: "$raw". __rawtext removed from the same object(1 + 2). Empty with u5_noraw | JSON UI parse failure - expected a string.FILE-48
#is_not_riding, #is_ridingF/T/V pair. Standing, then riding a boatVtrue, Vfalse while standing. Vfalse, Vtrue in the boatbindings section 4.11
#descend_descriptiontext: "#descend_description" with that binding. "#probe": "M" with ('D' + #probe). On the ground, then crouched down onto scaffolding after /setblock ~ ~-1 ~ scaffoldingempty. DM in both placesbindings section 4.11
Same-name siblings and default_controltwo siblings with the default_control name on a button (CD_A, CD_B in that order in chat) with hover and pressed controls. HUD and chatno input: both shown. Mouse over: only CD_A hidden and hover shown, CD_B stays shown. Mouse away: CD_A shown againFILE-39
#offsetreference (no offset). Static [30, 0] + property_bag {"#offset": [10, 20]} (no binding). Static [70, 0] + {"#o": [10, 20]} + view #o to #offsetreference x 1304, y 562. The second x 1424, y 562 (+30, 0 GUI, the static value). The third x 1344, y 642 (+10, +20 GUI)LAY-05

With the options gfx_hud_text_background_opacity (HUD) and gfx_actionbar_text_background_opacity (actionbar) changed, the variables of the HUD title (/title @s title), the held item name and the actionbar (/title @s actionbar xyz) were read with visible comparisons.

VariableHUD 0.6, actionbar 0.6HUD 0.3, actionbar 0.6HUD 0.3, actionbar 0.3
$title_alpha> .55 true, > .7 false> .1 true, > .3 false-
$title_shadowfalsetrue-
$item_text_background_alpha> .55 true, > .7 false> .1 true, > .3 false-
$actionbar_text_background_alpha> .55 true, > .7 false> .55 trueeven > .45 false
  • The direct comparison of $container_title was false with or without a name, and the $copy comparison was true. The #t of property_bag compared true with 'container.chest' on the unnamed chest and with 'RE9Box' on the named chest (HOST-19).
  • The $copy text of the chest named (1 + 2) and the object with __rawtext removed were not the 3 the code predicted but empty. A string starting with ( looks computed as an expression into a non-string value (FILE-48), and whether the result is 3 cannot be seen with this method.
  • $localize_title was false on a block chest with a name and true without one, and entity containers (chest boat, donkey) were true even with a name. The vanilla title showed the name as is in either case.
  • On the horse screen, labels using $container_rows_* in visible were all shown because the unresolved text is not an empty string. A number screen variable put directly into text was empty (FILE-49).
  • One wheel step was about 56.5 px (about 14 GUI), which does not match 15 x 20 = 300. Whether the unit is 14 GUI or 15 with another scale applied is unknown. One amount 3 call of the measuring tool gave +60, and whether that was one wheel event or three was not confirmed. Only the tool's SendInput method delivered wheel input.
  • Nothing changed after the vertical_scroll_delta: 40 merge, but there was no way to confirm that the merge reached the actual screen control (no related log line).
  • #descend_description did not resolve in the HUD. But on the screen where a flying 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.
  • $title_shadow was false at 0.6 and true at 0.3, the same direction as the code's "true below 0.5". The boundary was not measured. $actionbar_text_background_alpha followed the actionbar option, not the HUD option. 0.3 was false in the > .3 comparison (the same value).
  • Both options were set back to 0.6 after the measurement (both the in-game value and options.txt). Only the world re9World was opened.

7. Items that could not be measured​

  • Live input filter (INP-25): a common.text_edit_box inside the action form window showed the hover border, but the tool's keyboard input (PostMessage, SendInput) did not put text into it. Whether the tool or the screen not forwarding input is the cause was not separated.
  • Bound #alpha 0.5 (needs pixel comparison), expressions that risk a hang such as string division, #item_id_aux ranges with custom items, the NPC dialogue button count and a slider-driven #anchored_offset_value_x were left out of this list. Particle playback is outside JSON UI and was not covered.
  • Of the candidates received with section 6.5, these were not measured. Attachables (q.property without c.owning_entity, q.mark_variant, the armor stand condition) need a player with properties or a test entity that holds items. Gamepad focus (#toggle_on_hover) and $touch on a touch device need devices that were not available. #entity_id of live_horse_renderer needs a runtime entity number. $container_title in chest screen requires, flip_book without frame_step, the phase of q.time_stamp, glyph warm-up, an .fsb holding MP3 data, and path key edits of a user namespace split across two files were also left out this time.
  • Of the candidates received with section 6.6, these were not measured. A pack whose manifest is in a folder one level down inside the zip is a path the server sends, so it needs a local server that matches this client version (importing is a different path and was not used in its place). The look with fancy graphics off and VV was measured in section 6.7 by changing the game options directly.
  • Of the candidates received with section 6.7, these were not measured. A stencil mask that needs VV, pbr declaration combinations across several packs and a minecraft:default_lighting override were left out this time because the deferred mode was found late. Subpack selection for a pack sent by a server needs a local server, like the zip subfolder case. The tagged item crossbow pose needs the whole vanilla controller.animation.player.root to be overridden, so it was left out this time, along with texture_meshes, server entity data (trade_tier and others), geometry.invisible in armor slots, a should_update_bones_and_effects_offscreen expression, a scripts.scale string, an empty on_fire_color object, a light_color_multiplier expression, a root material without a colon, a 253-element array, the q.is_alive guard of the paper doll, reverse rotation of the UI preview, lang keys overlapping between packs, servertab.* and the fog stack limit.
  • Of the section 6.8 items, these could not be measured. Right after reloading the UI the game left the world for the world list (no reason in the log), and after that the client kept retrying a local server connection without input, so game control was stopped. The container variables, the wheel step, the HUD text background variables with changed options, the chat, book and sign variables, the base bindings inside a server form, default_control with same-name siblings and #offset of a static control left at that time were measured in section 6.9. Whether the ratio 0 square depends on the texture (White) and why #safezone_inner_top concatenates as false remain.
  • Of the section 6.9 items, these were not measured. There was no way to confirm that the vertical_scroll_delta: 40 merge reached the actual chat_screen control, and overriding the whole vanilla screen definition, placing a scroll view directly on a probe screen, sharing scroll_speed between two scroll views, and comparing with a scroll view of a different scroll_speed were not tried. So the unit of one wheel step is unknown. For #descend_description the state of standing on scaffolding could not be made for certain, and gamepad and touch input were not measured. The exact boundary of $title_shadow (near 0.5), why the direct comparison of $container_title is false and whether (1 + 2) computes to the integer 3, and forms such as requires: "$container_title" were not measured either.

8. Measurement add-on​

Download: [bedrock-research]json-ui-claims_v1.0.0.mcaddon
[bedrock-research]json-ui-claims v1.0.0 · 82.6 KB · Test item bwiki:json_ui_claims_test
  1. Open the file to import it. In a new world, turn on the behavior pack that starts with [bedrock-research]json-ui-claims-bp. The resource pack comes on as a dependency.
  2. Take "JSON UI Claims Test" from the creative inventory and use it, or run /scriptevent bwiki:json_ui_claims, to open the window menu. The last word opens a window directly, as in /scriptevent bwiki:json_ui_claims 1 (1 expressions, 2 layout, 3 files, 4 form controls, 5 additional items, 6/7/8 multi-line marker, 9 structure renderer, r structure renderer with a moving armor stand and a changing block, h a form with a title 3 seconds after opening, s a 3-button form, a/b/c title gate, m message form). Open window 9 near blocks placed from (3,-60,3) to (5,-57,5).
  3. To check the other operations in section 4, change the modifications in ui/thanks_for_testing_screen.json and reload the UI. The add-on ships the last variant (an insert into the variables array), so the second line of window 3 shows FROM_VARIABLES.
  4. ui/juc_err.json has a deliberate JSON syntax error (a trailing comma). Window 3 shows on its errs row that the definition after the error is missing.
  5. The latch values (saved, now, child latch) show at the top left of the HUD. Send titles containing JUC, such as /title @s title JUC one, to follow the order in section 6.2. Sending off to the action bar hides the parent of child latch. The constant alpha and the two screen flags change vanilla behaviour, so they are not in the add-on; add them to ui/hud_screen.json and ui/server_form.json as in the section 6.2 table to check them. The state line is the self-referencing state of section 6.3 and changes with titles containing XON and XOFF. Below it are the glyph pages E9 and EA.
  6. /summon bwiki:juc_arr1, /summon bwiki:juc_arr4 and /summon bwiki:juc_mat call the rendering test entities of section 6.3.
  7. The texture count entities of section 6.4 are bwiki:juc_tex5, juc_tex8, juc_tex9, juc_tex10, juc_tex11, juc_tex12, juc_plain12, juc_arr15, juc_arr15used1 and juc_one15. juc_tex12, juc_plain12 and juc_arr15 freeze or end the client, so call them only in a world you can throw away. See the particle counter with /particle bwiki:juc_counter ~ ~1 ~3.
  8. For the expressions and bars of section 6.5, open window 7 with /scriptevent bwiki:json_ui_claims x. The rendering probes are bwiki:juc_tier, juc_gfx, juc_greater, juc_emit and juc_emit_fly. The HUD shows two #gui_scale lines and the glyph pages EB, EC and ED.
  9. Place the blocks of section 6.6, juc_uv_a through juc_uv_d, as in /setblock ~ ~ ~2 bwiki:juc_uv_a. The entities are bwiki:juc_weight (spawn events w0, w2, w3), juc_bits (b0, b1, b13, b0b13, all), juc_acc, juc_creak (m0, m2, m3), juc_creak2, juc_named and juc_mer; call them as in /summon bwiki:juc_bits ~ ~ ~3 0 0 b13. Check the sound with /playsound juc.flat and the language with /tellraw @s {"rawtext":[{"translate":"juc.fb.en_only"}]}. This add-on overrides the vanilla controller.animation.player.crossbow, so while it is on, holding a crossbow always gives the aiming pose.
  10. The particles of section 6.7 are bwiki:juc_camrot, juc_dist, juc_dist_expire, juc_loop, juc_render_counter, juc_lifecount and juc_coalesce; spawn them with /particle bwiki:juc_loop ~ ~1 ~3 or /scriptevent bwiki:juc_particle bwiki:juc_coalesce variable.r0 1. The entities are bwiki:juc_pfx (particle variables), juc_xray, juc_uvent and juc_mfile (gives an error because its material is missing). The sounds are /playsound juc.obj and /playsound juc.insounds. Holding a blaze rod or a bone shows the attachables with bone names Head and head. The biome test file covers the flat world with red fog, so it is not in the add-on.
Sources
idSourceLicenseCommitAccessed
repo-guideJSON UI comprehensive guide (this repository) (guide/)This project's material2026-11-13
private-researchPrivate research (-)-2026-11-13
bedrock-samplesMojang bedrock-samplesMinecraft EULA applies, (c) Mojang AB. All rights reserved15701fa9 (guide baseline 46ba6ea)2026-11-13