Community notes: by screen (server forms, containers, DDUI, Ore UI)
These are notes by screen type from community conversations (Bedrock OSS and Add-Ons, 2025-10-22 ~ 2026-12-04). They cover decorating server forms and chest screens with JSON UI, tips for each vanilla screen, Script API forms and DDUI, Ore UI modification, and renderers.
The source tags at the ends of items are the same as in the header of the community reports and cross-check page, and verification level marks follow the legend on the wiki home page.
Customizing server form (ActionFormData / ModalFormData) JSON UI
Structure
- Name mapping: the server form screen is
third_party_server_screen(server_form.json). The default long form = ActionForm andcustom_form= ModalForm. The message form appears to be in dialog_common (panel two button).{unverified}Measured (Windows 1.26.65.1): MessageFormData was drawn bypopup_dialog_factoryas the modal ofpopup_dialog.jsoninsidethird_party_server_screen, andserver_form_factoryhad 0 roots. It is not long_form, and the file ispopup_dialog.json, not dialog_common (measurement record). The Modal form code is in server_form.json and its controls come from settings_common.json and common.json (about 1400 lines). - When the ModalForm does not show: if
$screen_contentpoints only atlong_form, the ModalForm is not rendered. Use"server_form.custom_main_screen_content"or delete that line. - Form bindings: the body is
#form_text(only insideserver_form_factory), the title is#title_text(can be used outside the factory too. To use it in a factory control, the declaration{"binding_name": "#title_text"}is needed), and#submit_button_text(outside. It can be used as a stand-in for a modal form's body). The button collection isform_buttonsand uses#form_button_text,#form_button_texture,#form_button_texture_file_system,#form_button_length(the count) and#form_button_contents(an array, so use#form_button_lengthfor the count). There is also an explanation that#title_textis a property of each item ofform_buttons. - Form title translation: if there is a lang key like
ActionFormData().title('container.waystone'), it is translated automatically. In bindings, compare with#title_text = 'container.waystone'.form.title("%ui.ns.title")also works. - Full screen:
main_screen_contenthas size [0,0] so%sizes do not work. Put"main_screen_content": {"size":["100%","100%"]}in server_form.json and set the form size to 100%. The long_form template iscommon_dialogs.main_panel_no_buttons. - Background: long_form changes its background with
$custom_background. To remove the background, make the texture transparent or edit the template.
Choosing a form by title (routing)
- Basic method: make
"$screen_content"ofthird_party_server_screen@common.base_screenpoint at a panel that has aserver_form_factoryfactory (control_ids:long_form/custom_form). For each variant, attach#visibleand#enabledwith a#title_textbinding. Example:('%.15s' * #title_text = '§c§h§e§s§t'), prefix@zelisce/chest_form. Without the prefix it is the vanilla form. wiki:json-ui/modifying-server-forms. PocketMine, Endstone and the Script API all use the same method.{community confirmed} - Creating only one with a factory: make
server_form.form_factoryacollection_paneland put afactory.control_idsmap +property_bag{"#§1": ["actionform1"], ...}. If you bind#collection_lengthto('#' + '%.3s' * #title_text), only the matching control is created. If the collection length is 0 nothing is created, so it acts like anignoredfor bindings. There is a report that 200 or more forms loaded instantly, but it was still slow in some environments. The fastest isignored: true. Choosing this way means#form_textcannot be read inside, so fetch it from a sibling "grabber" element withsource_control_name. - Coexistence among add-ons that change long_form: there is no standard. If the vanilla form comes up on top because of the vanilla form
#visiblebinding in the wiki tutorial, give your own root a highlayer(for example 15). - Collision warning: a chest GUI triggered by a Unicode title also triggers on renamed items (a shulker named "27"). Make the title filter strict.
Buttons
- Required bindings: a button needs
"bindings":[{"binding_type":"collection_details","binding_collection_name":"form_buttons"}]andcollection_index. Without themselectionbecomes undefined/canceled. Hidden buttons must keep this binding for it to work. The mapping isbutton.form_button_click.{community confirmed} collection_index: starts at 0 (index 50 needs 51 buttons). After header/label/divider appeared in 1.21.x, button indices shifted (the first index can be a label). Fix:"type": "collection_panel"+collection_namewithout the factory binding. The last item is(#collection_index = (#form_button_length - 1)).- Connecting button data: bind
#form_button_text/#form_button_textureto a label/image withbinding_type: collectionandbinding_collection_name: form_buttons, and give each button acollection_index. To make a child show the texture of button N, usebinding_name_override: "#texture". Conditional display by button text:(not (#form_button_text - 'marker' = #form_button_text)). ID encoding example:§f§l§a§g§<id>§r. - Empty and ghost buttons:
(not (#form_button_text = ''))to#visible, andbinding_condition: "once"on the collection binding. There is also a way to set#maximum_grid_itemswith a number in#form_body((#form_text * 1)). Show only when the button has a texture:#form_button_textureto#texture,not ((#texture = '') or (#texture = 'loading')). The empty first button of server_form was due to an unpaired element (unresolved). - The form always closes: a button whose pressed name is
button.form_button_clickalways closes the screen, and changing it breaks behavior. A button cannot be prevented from closing the form, so imitate it by reopening (recursive show). The last hovered button is not remembered. The only way to send the clicked index is submit. Several JSON UI buttons of the same form share the same result so the script cannot tell them apart. - A carousel inside a form: if you use a custom button id such as
button.menu_left/button.menu_rightfor arrows, unlikeform_button_clickit does not close the form. Only the CONFIRM button sendsform_button_click, and a counter-based image_cycler/label_cycler changes things on screen. To keep the form open after a click on mobile, set the$pressed_button_nameofinventory_slot_button_internalto an empty string or remove button_mappings. - ModalForm data: only the submit button sends data. If you need selection state, use a modal form toggle. The form content cannot be changed after it is shown and must be resent. Real-time two-way needs DDUI.
- A form that cannot be closed: hooking a mapping from
button.menu_canceltobutton.null(global) onthird_party_server_screenmakes every form unclosable. So hook it only on an individual form's main panel (it must be aninput_panel). There is also a way to block ESC by mappingbutton.menu_cancelto itself (mapping_type: global). It closed withto_button_id: "button.close", andbutton.backdid nothing. You cannot open another form with a JSON UI mapping. - Controller focus: a button needs
focus_enabled: true(default false). To remove the initial focus, turn focus off. Usedefault_focus_precedence. Measured (Windows 1.26.65.1, 2026-11-19): the initial focus went to the control with the largestdefault_focus_precedence. Giving an invisible 2x2 button 100 removed the initial hover in both the server form and the chest screen, and arrow key movement remained. Giving all three buttons -20 blocked arrow key movement in the server form (intercepting user input in InvUI). To show only the keyboard focus border, overlap two buttons (the upper with focus off, the lower with it on). A text-only panel has nothing to focus so controller scrolling does not work, so wrap it in a focusable custom button. Console L1 isbutton.menu_tab_left, R3 isbutton.controller_secondary_select_rightand there is no R2. Givingthird_party_server_screen"gamepad_cursor": trueshows the cursor. - Button icons: the problem of the icon disappearing on hover is fixed by raising the image
layerand making the label layer higher than that. Strip§rwith(not ((#form_button_text - '§r') = #form_button_text)). - Radial menu: there is no circular hitbox, but you can build a wheel UI of more than 6 cells with the
selection_wheelof the emote screen. A radial menu is built with a collection_panel that gives each button a collection_index (otherwise all do the same action). - URL images: Script API form buttons accept only paths. With the Endstone plugin https://github.com/zelisce/URL-Image-Fix (via https://github.com/EndstoneMC/endweave) you can use URL images like
form.button("Test","https://cdn.example.com/x.png"). It also works with only the RP, without the plugin: put aprofile_image_renderercontrol next to the button image and bind('{"type":7,"url":"' + #texture + '"}')to#profile_image_options(source_control_name: image,resolve_sibling_scope). Example: https://github.com/zelisce/SAPI-with-URL-Images. JPEG and PNG are drawn, and a GIF does not animate (it is drawn as a still image, ANI-45). MP4 does not work.profile_image_rendereris in the renderer section below on this page. - Crash reports: there is a report that a literal "Info" string in a custom button killed the server form (unconfirmed), and a report that in 1.26.52.3 the
$pressed_button_name: "button.sub_command"+#sub_commandchat button died with 0xc0000005 on a third-party server.
Grid, factory, performance
- Grid:
type: grid,grid_item_template(must be a top-level named control. For examplecommon.grid_item_for_inventory),grid_rescaling_type: horizontal,collection_name: form_buttons, and the binding#form_button_lengthto#maximum_grid_items(+binding_condition: once). It needs a fixed width (for example[150,"100%c"]and no factory. Vertical fill/rescale does not work and can crash. Cells are 18x18. Wrapping in a panel removes the gaps. There aregrid_fill_directionandgrid_dimension_binding. A dynamicgrid_dimensionis an array so it cannot be bound, but a dynamic grid whose size is decided to fit the remaining space works. - Grid key names: the real key is
grid_dimensions(grid_dimensiongives a type error). Explicit child positions are given withgrid_position: [x,y], notcollection_index. The collection index of a grid made of children is also decided bygrid_position. A grid cannot rotate, so swap rows and columns. The "Unknown property [orientation]" after turning a stack_panel into a grid is harmless. - Hidden grid items: even hidden they take up space, and there is a bug of redrawing on close. Put buttons that will always be hidden (tabs, navigation) at the end of the collection. To hide the front, hide the first row (
(#collection_index > 6)) and pull it up by putting a{"size": [0,-40]}panel before the grid (the script corrects the index). Wrapping with panel height100%c - <child height>also works. Buttons of different sizes cannot be mixed in a grid, so build them directly with a stack_panel (a horizontal stack inside a vertical stack,size ["fill", 30]). - A grid has no start index: a
gridnumbers its cells from 0 and#maximum_grid_itemssets only the count. To draw from the middle of a list, the script cuts the button list before sending and puts navigation and tab buttons after the cell buttons, or gives the direct children of astack_panelwithcollection_name: "form_buttons"explicit indexes like"collection_index": "($start_index + 0)"(the expression is computed at creation; Chest-UI uses($start_index + 9), COL-06). For a 2D layout, put horizontal stack_panel rows inside a vertical stack_panel and give each row acollection_name(COL-50). Rules reported with it: acollection_indexon a child of a plainpanelgivesUnknown property [collection_index], so give the index to the reference entry incontrols(the wrapping panel), not to thelabelorimage(COL-38). Without acollection_detailsbinding on a pressable slot, the script receivescanceled(COL-04).#form_button_lengthcan keep the largest button count seen so far (COL-34). Giving an expression such as#form_button_length - 10to#maximum_grid_itemspasses text, not a number. Engine bindings are passed as they are, not changed bybinding_name_override. Grid cells hidden with#visiblestill take their place. Fixed index slots opened the form in about 1 second, while scanning all buttons in every row took 4 to 5 seconds.{single report} - Factory: use
"factory":{"name":"buttons","control_name":"ns.button"},collection_name: "form_buttons"and{"binding_name":"#form_button_length","binding_name_override":"#collection_length"}.max_children_sizeis needed.#collection_lengthis not a boolean and if it is N, N are created. A custom collection name gives only#collection_indexwith no data.factory.nameis used only to name or connect hidden game factories (title, actionbar, item name).type: factorytakes its name from the element name. Created children inheritcollection_name. - The
control_idsrule: the keys ofcontrol_idsare chosen by the string of#collection_length. For['a','b']both are created in order. You cannot use$varas a control name in a value as is ("('test@hud.' + $content)"is unconfirmed). Usingcontrol_idswhere only acontrol_namefactory works gives "Unknown property [control_ids]" (cause unconfirmed). - Factory bugs: a child factory under a server form is not filled until input or resize (work around it with a toggle that triggers it. Grids do not have this problem). Elements inside a factory are reevaluated only on interaction. Pull values out with a data_control outside the factory or substitute with visibility. A factory inside a factory,
use_child_anchors, and chainednextanimations inside a factory/grid (speeding up after the first loop) are known bugs. Experienced developers consider that in server forms factories lose the body, toggles reload elements, and fetching bindings from elsewhere is unstable. - Performance figures: even 100 buttons can slow down. A button factory of more than 3000 (the vanilla long_form stack_panel) freezes for about 60 seconds even when hidden. So split into pages. There is a case where a form took about 30 seconds to open even with many pages. A grid loads even 10k buttons instantly (leaving empty cells). Hidden elements also cost parsing. Using many collection factories and attaching a string subtraction filter freezes the form. Hidden forms also remain loaded, so merge forms with different styles into one toggle. Lag occurs only on the client. The glitch where all button texts show after alt-tab is also due to a heavy factory.
- Optimization case: merging 3 elements per store card into 1, deferring expensive content of tabs not opened first (button text, 3D block rendering), and opening with the lightest tab took 1.6 seconds down to 0.8 seconds. JSON UI cannot put work in a "queue" and elements update only when a binding changes. About 75 elements is fine. The "NPC UI" route (editing NPC NBT to lift the button limit) and Soulsteel's auto-refresh technique were counted as the most optimized methods. One Ore UI styled server form pack reportedly cut one method call from about 34ms to about 2.3ms and 100 labels from about 1 second to 14ms by building only the 1 variant in use out of 11 when the form opens (a label method with 27 always-built variants and 53 always-evaluated controls reduced to 3). The data is sent as one button name and laid out with a grid scheme; bindings of values that never change were switched from
alwaystoonce, and the number of controls per method was cut. Data could not be sent toignoredelements. With thousands of controls the UI is built on one core and opening stalls for 100 to 200ms, while a "lite" edition that supports only the native modal and action forms opens at once. The next plan is to split UI creation over several frames so that opening does not spike a single frame ("virtualization"). Text scaled down to 0.875 was drawn smoothly with an MSDF font (how the font is loaded was not shared). The same pack reportedly cut heading build time from 1119 ms to 135 ms with a "composer" method, and the freeze when opening an expensive UI from about 6 s to about 1 s. On desktop the pressed state was removed because the hover state stays after a click. The code was not published.{single report}To get the same effect with published rules, let the binding value build only the neededcontrol_idskinds (#collection_length0 builds nothing and a string array builds only those kinds, COL-11, COL-22). - Cost of drawing items: in a recipe viewer pack, drawing item icons with
inventory_item_rendererwas faster than images (reason unknown). Drawing every item at once took about 16 seconds to open, so it was split into a factory that builds only one page of items. There was also a remark that some items are not drawn by the item renderer.{single report}
Dropdown pagination (tabs/pages)
- Method: put all tabs/pages in one form. Put a hidden dropdown at form index 0 and decide the current view by its options. The options use
dropdown.radio_selectedand are rendered as tabs and arrows. Read#dropdown_option_textatcustom_formindex 0, attach a view id to each element, and decide display with a binding that compares against the selected view. Elements without a tag show on all pages. It is a radio group, not a toggle, and an actionform-style button is needed inside the modal form. - A page gate implementation example: attach a page id like
[view:shop_1]to the element text, and a state reader control reads the index 0 dropdown ("text": "__page_state__"). Put$view_id|default: ""in the template, copy#current_viewfromsource_control_name: page_state_reader, and bind(($view_id = '') or ($view_id = #current_view))to#visible. A page is made asname@namespace.page_gate. Hidden pages must also keep observing the state to reappear. Tags like[target:..][x:..][y:..]are a convention JSON UI parses directly. Another implementation (nperma:pagination) accumulates toggle values into#x/#zand shows a page with($pan_cuy = ((#x/19) - (#z/19))). - Multi-tab server form (Chest-UI
server_form.json): give the custom screen"force_render_below": true,render_game_behindand the exit animationsscreen.exit_pop/screen.exit_end. Tab generator: https://g07hn-1.github.io/tabgenerator/. - ActionForm category tabs: the tabs are radio toggles with one
toggle_name(radio_toggle_group: true,toggle_group_default_selected: 0,toggle_group_forced_index0, 1, 2 per instance), andbutton.menu_selectandbutton.menu_okmap tobutton.toggleso the form does not close. Each category is astack_panelwithcollection_name: "form_buttons"and"factory": { "name": "buttons", "control_name": "$item" }(#form_button_lengthinto#collection_length), and a view binding (source_control_name: "$tab",resolve_sibling_scope: true,#toggle_stateinto#visible) shows it only while its tab is on. Buttons are sorted by a tag at the start of the text: the script sendsform.button("§1§rSword"), and an item template variant ("$tag": "§1§r") binds(not ((#form_button_text - $tag) = #form_button_text))to#visible. Every category is built when the form opens, so many categories with many buttons cause lag.{single report}
Modal form controls
- Toggle and slider: the toggle is
settings_common.option_toggle(copied from vanillaserver_form.json). The slider givescommon.slider$slider_name,$slider_stepsandproperty_bag {"#slider_steps","#slider_value"}. The template is inui_template_toggles.jsonand the slider code inui_common.json. To place controls directly, delete the factory and its bindings and, leavingcollection_name, give each child acollection_index. The problem that sliders with differentcollection_indexbehave like one and break when$slider_nameis changed is unresolved. - custom_form factory: uses the
control_idsofgenerated_contents(label, toggle, slider, step_slider, dropdown, input, header, divider), and every control needs acollection_name: "custom_form"binding. Long form fragments useform_buttons. - Text input size and length: use
input_box@common.multiline_text_edit_box(size,max_length,$text_edit_box_content_binding_name: "#custom_input_text"). Example:"text_field@common.multiline_text_edit_box": {"$text_box_name":"notes_field","$text_edit_text_control":"notes","$text_edit_box_label_anchor_point":"top_left","max_length":412,"size":["100%","130px"]}. The max length is"$max_text_edit_length": 100(also in the form'soption_text_edit).common.scrollable_multiline_text_edit_boxscrolls but there is a case where it lost clicks and the placeholder. The default text box limit is 100 characters. Themax_lengthof the jigsaw UI can also be changed (unconfirmed). - Dropdown: a dropdown is a radio toggle. Give
$toggle_nameand$toggle_state_binding_namethe same name and use$radio_toggle_group: true. The vanilla dropdown binding (#chat_coordinate_dropdown) is screen-specific. The toggle binds as#($dropdown_name), and if the name is wrong the dropdown freezes. This makes it possible to use dropdown items as a row of single-choice buttons: draw toggles bound to thecustom_dropdowncollection with the sametoggle_nameandradio_toggle_group: true, style them as icon buttons, and choosing one turns the others off. An ON/OFF switch on the same page is a separate toggle withradio_toggle_group: false. The script adds marker characters to the dropdown item names so JSON UI recognizes this dropdown.{single report} - Text box: giving
$shadow: truehides the caret (vanilla template). The search box iscommon.text_edit_box,$text_edit_box_clear_to_button_id. Reading the box content:{"binding_type":"view","source_control_name":"display_text","source_property_name":"#item_name","target_property_name":"#text"}(breaks if several boxes have the same name). Vanilla exposes$text_edit_box_content_binding_name. If you put a dummyedit_boxwith the sametext_box_nameas the chat box inside a button, the chat text is set (the emoji panel trick. Probably works only with hardcoded boxes). - Toggles in general: mouse hover is needed before a click (a known mouse problem).
- Reading a toggle state outside the factory: inside a
collection_panelwithcollection_name: "custom_form", put a child whosecollection_indexis the toggle's position (for example 5) and bind it with{"binding_type": "collection", "binding_collection_name": "custom_form", "binding_name": "#custom_toggle_state", "binding_name_override": "#visible"}; the child shows only while that toggle is on.
Scrolling
common.scrolling_panel: you must reference it ("form@common.scrolling_panel") for the scroll to show. Variables:$scrolling_pane_size(applies only whensize: "$scrolling_pane_size"is specified),$scrolling_pane_offset,$scrolling_content,$scroll_size,$show_background,$touch(mobile style. If the scroll box becomes blurry,"$touch": false),$scroll_bar_contained,$scroll_track_offset(deleting it fixes the initial offset),$scroll_bar_left/right_padding_size,$scroll_view_port_size/$scroll_view_port_offset(keep [0,0]),$scrolling_content_anchor_from/to(default top_left).- Scroll textures: use
$scroll_track_image_control,$scroll_box_mouse_image_control,$scroll_box_touch_image_controland$scroll_background_image_control(control references). The textures areScrollRail,ScrollHandle,ScrollGutterWithBG,ScrollBoxandnewTouchScrollBox. To hide the scrollbar,"$scroll_bar_and_track_size": [0,0]. Clipping differs slightly with resolution. - A hand-made scroll view: not recommended (the vanilla one has necessary button mappings). To make one, copy
scroll_view_controlfrom vanilla ui_common.json. Give child names to thescrollbar_track,scrollbar_box,scroll_content,scroll_view_portandscroll_box_and_track_panelproperties, and the viewport must be smaller than the content. Mapbutton.menu_selectpressed +button_up_right_of_first_refusalto the box andbutton.scrollbar_skip_trackto the track. - Horizontal scrolling and others: the start direction of horizontal scrolling (left/right) is hardcoded. Work around it by putting the slider value into
anchored_offset_value_xor with animation, and there is also a way to put elements below the scrollbar box (thread 1252224040433614958). A scroll that starts from the bottom is unstable. The problem of a scroll showing even in a scroll panel holding an empty grid is unresolved. If a hidden scroll panel intercepts input, hide or disable the panel itself (visible+enabled), not the contents. - Scrollbars outside the form: in long_form adjust
$scroll_bar_left/right_padding_size,$scroll_sizeand$scrolling_pane_size/offset. The body label size is["100%","default"]. Scroll text sample: https://skyls.de/samples/ui3/RP/ui/server_form.json. - A 2D drag panel:
draggable: "both"onscrollbar_box, the draggable_box and control_layer_panel sizes["100%c","100%c"],clips_childrenon the outer panel,$scrolling_size["200%c - 100%","200%c - 100%"]. Withcontained: trueit drags only down and right, so use false to center it. Controller dragging is unresolved.
Screen flags and animation
- Walking with a form open: give the screen element
"is_showing_menu": false, "absorbs_input": false, "force_render_below": true(+render_only_when_topmost,low_frequency_rendering,render_game_behind,$is_full_screen_layout). For touch, branch with$touch/$is_pregame. Moving while a button is on screen works only on touch devices and not on console/PC. Overlapping a server form over the HUD also breaks PC/console. - Hiding the HUD under a form: by default the HUD disappears. To hide it again, give the screen
force_render_below: false. To show an image above a form, use layers (form -1/-99, image 99999. Extreme values go outside the game screen), and putting it inside server_form.json is better. - Turning off screen animations: give
third_party_server_screen"$screen_animations": []/$background_animations. Example: a length-0 offset animation on["@server_form.exit_wait"]+screen.exit_pop/end_event screen.exit_end. Per-element screen animations cannot be turned off. NPC dialogue opens without open/close screen animations (used for inventory-slot-shaped forms). The inventory exit animation comes from the live_player_renderer animation. There is a report that removing the fade-in/out between Action Forms makes the screen stutter when switching menus.{single report} - Exit animation: use
"play_event": "screen.exit_pop","end_event": "screen.exit_end"anddestroy_at_end. In server formsexit_popworks andexit_pushdoes not. The form closes before the animation ends and there is no way to delay it. You can make a full-screen "video" form with an aseprite animation JSON. - NPC dialogue vs server form: the NPC screen differs from server forms. Scene transitions are smooth but must be predefined and buttons are up to 6. The length of NPC
#student_button_textis hardcoded. Several forms cannot be stacked on one client. - Hover text: in a custom control
{"type":"custom","renderer":"hover_text_renderer","allow_clipping":false,"layer":200}, put the#form_button_textcollection binding in as#hover_text(binding_name_override: "#hover_text").common.hover_textdoes not translate lang keys (the game gives translated text). It shows per state withignored: "$default_state". Putting it inside a button can lose the texture, so add an image background. If aclips_childrenpanel clips it, give the childallow_clipping: false. Custom hover text loses the automatic screen-edge position adjustment so long text overflows. To show hover text without a container item, put a childhover@common.hover_textin an invisiblebutton@common_buttons.light_text_button($pressed_button_name: "",$border_visible: false, empty texture,sound_volume: 0) and give the text through#hover_textinproperty_bag(giving it through a binding does not work). This text is not translated.
Containers / Chest UI
Principle
- Entity-based: a custom container UI is made by showing an entity with
minecraft:inventory(container_type: container, for exampleinventory_size: 30) and letting JSON UI recognize a name key (for example§t§e§s§t§r) as$container_title. The slot count must match the UI. Buttons are imitated with slots and the script detects clicks. The "GUI" (container screen) updates in real time and the "UI" (server form) must be reopened.{community confirmed} - Block-based is not possible: a block cannot directly show a custom UI. Put a large hitbox entity in or around the block with collision 0, not pushable and knockback resistant. TPS lag arises in proportion to the number of entities. An entity container's title is the name tag, and "unknown" shows if there is no name. A custom block entity
containersupportstitleand$container_titleworks in custom containers, so the UI can be changed per container without the item name toggle hack. For block entity containers, editdata_driven_container_screen.jsonof the 26.60 samples, and for custom entity inventorieschest_screen.json(there was a case where a 36-slot inventory showed only 27 slots before fixing). - Toggle state does not persist: closing a container screen returns a custom toggle to its default. No way to keep the state inside the screen has been reported. There is an opinion that driving slot group display by the item name (
#hover_text) is easier than a toggle. With an entity inventory the state can live on the server: send the button to the server with a slot mapping, let the script write the state as the name of a marker item in a fixed slot, and let the UI read that name to choose what to show. Slot contents remain when the screen is reopened (Building menu screens from an entity inventory). - Vanilla containers: renaming can change the UI but not for the crafting table. A copper chest is told apart by a screen id like
ui:container.chestDoubleCopper0, and renaming returns it to the ordinary screen. Shulker color and oxidation stage cannot be detected with pure RP (set the name with a script). A container UI name can be changed only by the item name and not by the block name. - Click detection: map
button.drop_one/button.drop_allto buttons (button.menu_selecttobutton.drop_all) and decide the target slot withproperty_bag {"#collection_name":"container_items","#collection_index":"$i"}. Detect it in the script as an item drop, which is better than the cursor component that fails on mobile. The target to modify issmall_chest_panel(modifyingsmall_chest_screenkills it. There is also a case where replacing it with an empty panel crashed). - Blocking quick move: shift-click quick move cannot be removed. Delete the item as soon as it is gained or revert it with an inventory change event. In a custom entity inventory, hiding a slot group (backpack, accessory slots) with a button also took the hidden slots out of shift-click moves, according to one report.
{single report}There is no script API to bind keys to the UI, so usebutton_mappings. - Player inventory preview: cannot be seen in a custom chest JSON UI form. Work around it with an entity container (for example a llama inventory). A server form cannot show the inventory or dress armor by dragging (work around it by showing the inventory's armor list as buttons and equipping). The
inventory_itemscollection is screen-specific so it cannot be reused withflying_item_renderer. - Slot text: read the item name or lore as
#hover_text. In a container it is wrapped as§o§f<name>§r§r§r(§oonly when the name was changed. With lore it is'§o§f' + name + '§r\n§5§o' + lore), so strip it:(#hover_text - ('%.6s' * #hover_text))or(#hover_text - '§' - 'r' - 'o' - 'f'). Making a dynamic texture from the name:('textures/ui/EXPbar' + (#hover_text - '%.6s' * #hover_text)). Detect slot state by the item name the script decides (not a lang key). #hover_textcaution: it becomes empty on click or interaction, so keep a snapshot with avisibility_changedoverride. Using a drop mapping avoids this problem. The lore and durability of hidden items can be used as a text/display channel. Do not poll; update only changed slots. You can hide the default stack count and change 1000 to 1K. Reports of failure (an attempt to build#entity_idfrom hover text failed because of formatting codes) and success (chest_boat) are mixed. There is also a failure report where trying to preserve the collection#hover_textwithvisibility_changed+binding_name_overridemade even the label disappear. That code had nobinding_type: collectionon the preserving binding and put the string('me' + #data)into#visible. Boolean targets accept only JSON booleans (BND-27), so that looks like why the label disappeared. Copying the value with a collection binding into a size-0 latch panel and saving only a new non-empty value (BND-18) worked in a chest slot in game (the last name stayed when the slot became empty).#inventory_stack_counthas no value when the item is 1, and number comparison is done like(0 + #inventory_stack_count) = 4(#inventory_stack_count = 4is always false, confirmed in game, EXP-17). Showing durability the same way,('durability:' + (#item_durability_current_amount * 1))gave onlydurability:. Durability is a float, so comparisons work but concatenating it to a string gives nothing whatever the binding setup (measured, COL-07, EXP-22). To show it as text, split it into ranges with a comparison chain.- A progress bar trick: if you set the item name to a number (anvil/script) and use it as the
#clip_ratioof a hidden chest slot (collection_index,container_items), you do not need a separate item per frame. To put a progress bar in a chest UI, insertprogress_bar@common.progress_barintosmall_chest_panel(or_top_half). There is no way to put arbitrary label text in a chest UI, so work around it with a hidden item whose durability is read as a number (heavy). - Size and resolution: the UI scales up and down with resolution and the position cannot be fixed. Fit the smallest resolution or provide an alternative. The vanilla chest UI showed only 27 of 54 cells unless the UI was fixed. For the slot count limit there are the report that a block
minecraft:inventoryis at most 54 and an entity inventory 255/256 (vanilla has no UI that large), and the claim that a block entity UI is 32 by default and more needs JSON UI.{conflict}Attempts to change the chest grid size by container title (variables+$slot_count,$grid_size,$grid_dims) did not work (no answer). The survival inventory cannot be replaced or have slots added and only its look can be changed. You also cannot change the inventory screen with scripts. - A container detection variable example:
{"requires":"(('%.15s' * $container_name) = '§t§o§m§b§r')","$screen_content":"chest.custom"}as aninsert_backintovariablesin thesmall_chest_screenmodifications. - Storage terminal pattern: a large storage system keeps a hidden entity inventory as the real container, and a custom JSON UI shows that inventory as a terminal screen. The items in the terminal grid are display copies, and the real counts are stored as data on storage disk items.
{single report} - Virtual containers and forms (26.70 preview): a virtual container cannot be placed inside a modal form. One answer said to use toggles or dropdowns instead of text fields for inputs on a virtual container screen. There is a report that toggles bound to slots flicker and elements are drawn sideways when items are moved in the container.
{single report}The 26.70 preview protocol hasVirtualContainerOpenPacketandVirtualContainerClosePacket, and more than 54 input elements give the errortoo many input elements, expected no more than 54.
Herobrine643928 Chest-UI and alternatives
- Chest-UI: https://github.com/Herobrine643928/Chest-UI is the standard library for making chest-shaped forms with ActionFormData + JSON UI. The license is CC BY 4.0, so commercial use, modification and redistribution are allowed with attribution (repository LICENSE checked). There are reports that it cannot scroll and that misuse breaks other UI. The layouts it uses in
ui/_global_variables.jsonmust be turned on ($disable_9_slots_layout, etc. true = off). Old copies have the flags off and leave a "dur#00" afterimage. The generic_9..54 textures are taken from bedrock-samples. To make an item vault, items must be stored directly in a dynamic property or structure. It is not a 1:1 chest UI. - The typeIds problem: it depends on
typeIds.js/typeids.ts/constants.js, which map vanilla items to aux/type ids. Adding a custom item in any BP shifts vanilla ids, and it goes stale with every new release. Upstream updated around 2025-11-18 (issue #27). It lagged behind even in 1.26.13. Fixes: rebuild from https://github.com/Mojang/bedrock-samples/blob/main/metadata/vanilladata_modules/mojang-items.json, generate at runtime withItemTypes.getAll(), or use real texture paths instead of aux ids. A wrong texture is usually a typeId error. - The 1.21.130 broken texture fix: change the
aux_idbinding(#form_button_texture * 1)in chest-server_form.json to((#form_button_texture - (#form_button_texture % 65536)) / 65536)bound to#item_id_aux(https://github.com/stievenw/Chest-UI/blob/main/RP/ui/furnace_server_form.json, forks https://github.com/Herobrine643928/Chest-UI/forks).{community confirmed} - Alternatives and forks: Sprixvy Chest-Form (TypeScript): https://github.com/Sprixvy/Chest-Form/tree/typescript.
form.button(slot, name, typeId, { amount, description: [...], durability, enchanted }), and the result hastype'container'|'inventory' andslotIndex. Unpublished forks support dynamic slot counts, unclickable empty slots,ui.glassBorder()and durability bars. syylaxx was making a dynamic slot replacement and bakedpotato4173 a dynamic grid in the.body('10:10')style. The chest menus on big servers that look like DDUI (CubeCraft) are JSON UI chest forms using a packet trick (confirmed by clearing the pack cache and reconnecting). - Chest UI Editor (minato4743): https://minato.beyondbedrock.org/web-apps/chest-ui-editor/ (beta:
/chest-ui-editor-beta/, another address https://minato-mba.github.io/web-apps/chest-ui-editor/). It places slots, images, text, buttons, 0-9 progress bars, ON/OFF indicators, tabs and scrolling slot lists, and exports as ZIP and reloads it. Block container support is planned after block containers and title become stable. v2 (2026-05-16) added multiple screens, dynamic grids and scrolling, and v3 (2026-09-21) addedanchor_from/anchor_to/offsetand migration from v2 to v3. It is expected that Ore UI chest screens will override RP chest UI in the future.
Container themes (Colourful style packs)
- Variable themes: define
$cell_texture,$background_texture,$title_background_texture,$container_scroll_box_texture,$chest_label_primary_colourand$shadow_colouron the screens (small_chest_screen,large_chest_screen, barrel, ender). And putrequires: "($container_title_custom = 'container.chestCopper')"(for largecontainer.chestDoubleCopper) invariablesto detect the container. - Furnace: a furnace uses its own
cell_image_classic/cell_image(not ui_common), so put"cell_image_classic":{"texture":"$cell_texture"}infurnace_screen.jsonand set$cell_textureinfurnace_ingredient_panel. Cell textures:textures/ui/cell_image,cell_image_invert,cell_image_normal,cell_image_red,cell_image_classic,item_cell. The 3x3 crafting slots decide textures by binding. For the recipe scroll panel,$show_background: false. - Other theme elements: the filter toggle size is texture + 4px (two toggles stacked). Remove the inventory
shadow_stackwithignored: true. The search/filter panel path istab_content/tab_content_search_bar_panel/search_and_filter_panel, and the edit box textures are@common.edit_box_indent/_hover. To remove slot backgrounds, give the grid (and hotbar)"$background_images": "common.empty_panel". Detect an entity inventory UI with$container_titleinsmall_chest_panel(chest_screen.json). - Hiding specific inventory slots: put a
binding_type: collection_detailsbinding and a#visiblewith a#collection_indexcondition ingrid_item_for_inventoryof ui_common.json. Or delete the grid and place slots one by one. Fill hidden slots with barriers. - Other container detection: the horse armor logo is filtered in
horse_screen.jsonwith$container_title. The anvil input iscollection_name: "anvil_input_items",collection_index: 0, and an empty slot if#item_id_auxis -1.
Tips by vanilla screen
- File names: mostly the same as the screen name. start_screen.json (start_screen / start_screen_content), progress_screen.json (world loading), hud_screen, chat_screen, inventory_screen, furnace_screen (the blast furnace derives from here), redstone_screen.json (hopper, dispenser, dropper, crafter), online_safety_screen.json,
ui_art_assets_common.json(the Minecraft title), trade_2_screen.json (the villager progress bar), enchanting_screen.json, horse_screen.json, scoreboards.json,store_data_driven_screen.json(the Marketplace store), disconnect_screen.json,hud_crosshair_overlay.json. - Pocket vs classic: pocket screens use their own content files. The smithing table is
smithing_table_screen@common.inventory_screen_commonand$pocket_screen/$use_smithing_table_2_uichoose thesmithing_table_pocket/smithing_table_2_pocketpanels. The furnace's#is_recipe_book_layoutexists only in Classic. Forcing Classic with a variable makes the inventory the creative layout. Some packs force the Classic layout by making the$screen_contentof the desktop and pocket UI the same (for example the Colourful Ore UI pack). - Inventory:
inventory_screenandcrafting_screenboth extendcrafting.inventory_screen_base, so use the bindings of inventory_screen.json. Around 2026-02 in stable, the inventory/crafting UI was refactored and elements moved to common files, and custom crafting UIs broke (norecipe_book2base. Server forms and NPC are unchanged). To turn off tabs,toolbar_panelignored: true. The translucent "shadow" strip is theshadow_stackoftab_content/.../items_panel. The "Nature" tab label is hardcoded in#hover_text, so empty it with the langcraftingScreen.tab.nature=§z. Detect creative by modifying the inventory UI (#is_creative_mode). To show a different inventory layout in creative, one report adds another common panel that renders only with the#is_creative_layoutbinding.{single report}Custom creative tabs for an add-on have been built with JSON UI plus item setting tweaks (26.65): custom items are picked out by a short prefix at the start of the item name.{single report}To block inventory interaction, giveforce_render_below: true,is_showing_menu: falseandabsorbs_input: false, but it blocks other containers too. The E key is hardcoded. A custom crafting table screen can be made with JSON UI alone. The recipe book divider iscenter_fold(texturetextures/ui/recipe_back_panel). Also refer toinventory_screen.jsonandinventory_screen_pocket.json. To fill the player list grid horizontally, give"grid_fill_direction": "horizontal". The crafting/recipe panel, the hotbar and the inventory grid are separate elements that can be moved. The inventory grid already contains a hotbar row, so a layout that keeps the hotbar apart has to split that row out.{single report} - Pause screen: put children in
pause_screen_content, not inpause_screen/root_panel(otherwise the buttons disappear). The logotextures/ui/title.pngcan be replaced and can be animated with aseprite_flip_book ontitle_imageinui_art_assets_common.json."quit_button": {"size":[48,48]}. Button textures aretextures/ui/button_borderless_light,...lighthoverand...lightpressed. Hiding the store/server buttons:"menu_background/button_panel/store_button_panel": {"ignored": true}. The feedback web link is hardcoded. You cannot run a command with the pause menu "shop" button (unconfirmed). If you replacepause_screenwholesale and resume/quit do not work, the world is locked until restart, so mapbutton.menu_cancelandbutton.controller_starttobutton.menu_continue. There is a report that using a pack that removes the Marketplace button turns off achievements.{single report} - Start screen: the buttons are in
main_buttons_panel(main_buttons_and_title_panel@start.main_buttons_stack_panel) insidemain_buttons_stack_panel. Hide the original with"main_buttons_panel": {"ignored": true}andinsert_frontyour own stack panel intostart_screen_content(using references likefloating_play@start.play_button). The Store button is a "buy game" button, so show it, hide the shop button, and then edit the win10 trial conversion screen. A custom screen can be reached only through an existing screen's button id (Deesee UI uses the trial-conversion screen as an info window). - Chat screen: to hide the coordinate copy header, set
chat_header/title_panel/chat_header_content_areaignored: trueand remove thechat_header/title_panel/titlebinding (it still copies with ctrl+alt+c and it is an RP so it can be bypassed). Hiding command autocomplete: rendercommands_panel/auto_complete_panelconditionally with#auto_complete_text(collectionauto_complete). Command argument autocomplete buttons exist inchat_screenbut are hidden by default because their binding is always false, and many UI packs turn them back on. Clicking one fills in that argument.{single report}Add buttons by modifyingchat_screen.json. The copy button (coordinate copy) is hardcoded and cannot be reused. - Other screens: to change only the enchanting table background, define
dialog_background_opaqueinui_common.json(namespacecommon) with"texture":"$opaque_background_texture"as the default, and set$opaque_background_textureinenchanting_panelofenchanting_screen.json(namespaceenchanting). The chest background isdialog_background_opaquethrough$dialog_backgroundofcommon_panel. Close button: global istextures/ui/close_button_default, and per panel{"namespace":"chest","small_chest_panel":{"$close_button_default_texture":"textures/ui/your_texture"}}. Hiding the disconnect "An error has occurred": insert a binding from(#title_text - 'disconnectionScreen.title.errorOccurred')to#textintodisconnect_screen.json. Removing the loading modal:world_convert_modal_progress_screen_content. Scoreboard sidebar:anchor_from/anchor_toleft_middleonscoreboard_sidebarinscoreboards.json. If names are cut at about 100 width, set thesizeandmax_sizeofscoreboard_sidebar_playerto["default","default"](a fixed 200 has no effect). - Marketplace store text color: override
store_data_driven_screen.json(keysstore.editorial.tab.about/notes). The global color is_global_variables.json("$title_text_color":[0.5,0.5,0.5]). Changing the purchase button to download is not allowed. - Resource pack screen label color: giving
resource_packs.gray_labelacolordoes not change it. Giveinput_button_panel"$default_glyph_color": [1, 1, 1](confirmed to work). [supplement 2026-10-29] - Item tooltips: the tooltip is in
highlight_slot_panel(hover_text_renderer) ofui_common.jsonand not in the HUD. The border istextures/ui/purpleBorder.pngand is hardcoded based on screen size. For a custom tooltip, give thehighlight_slot_panel/highlightmodifications an$item_collection_name+#hover_textbinding and choose the frame with a§marker code. Empty slot check:(not (#hover_text = '') and (... = #hover_text)). A tooltip background that follows the cursor can be changed with ordinary JSON UI (cases of custom inventory/crafting table/anvil/beacon screens). A custom tooltip made with an input_panel jitters. The vanilla "Attack Damage" line cannot be removed (only the label is emptied with lang). The "Dyed" line is also hardcoded and cannot be changed completely. Lore put into lang with\nalso shows in the name of the held item, and lore tooltips cover the inventory on mobile. Hiding enchantment description lines:/gamerule showtags false. Tooltips (26.50): static text is langtile.<item id>.tooltip=<text>(custom uses the namespace id, items also take thetile.prefix. In the 26.70.22 preview,item.<id>.tooltipand~LINEBREAK~), and dynamic text isItemStack.setLore(). The tooltip text color can collide with a custom background. - Loading tips and screens: the loading tip JSON keys are
loading_messages,beginner_loading_messages,mid_game_loading_messages,late_game_loading_messages,realms_loading_messages,addons_loading_messages,creative_loading_messagesandeditor_loading_messages. An item can be written like{ "message": "...", "condition": "$marketplace_not_disabled" }. The dimension loading screenoverworld_loading_progress_screenappears to be hardcoded and cannot be chosen per dimension. - Screens changed to Ore UI that cannot be touched: settings, the world list, the new loading screen, etc. Hiding the world seed worked only in the old UI and became a default feature in 26.40. Global resources and the old settings section still open the old JSON UI. Textures: new textures are in
textures/uiandtextures/guiis used only partly (classic touch). If you overridegui, the old ones come back with glitches. The touch inventory button is 4 textures, not just gui.png. The mobile ellipsis is 2 textures. One answer said there is no setting to switch a screen moved to Ore UI back to JSON UI and that resource packs cannot modify it either. The same conversation guessed that gameplay screens drawn with DDUI may stay customizable.{single report} - Useful vanilla textures:
recipe_book_pane_bg(gray panel),recipe_book_item_bg,button_borderless_light(hover|pressed),middle_strip,player_preview_border,Banners,ScrollRail,ScrollHandle,disabledButtonNoBorder,focus_border_white,cell_image,purpleBorder,close_button_default,transparent_background,White,Black.
Script API forms (@minecraft/server-ui)
- Basics: there is no separate "JS UI". Script UI is the server-ui forms (ActionFormData, ModalFormData, MessageFormData), and adding UI to vanilla screens needs JSON UI. server-ui 2.0.0 stable, 2.1.0-beta (2025-11). As of 2026-07-06: stable 2.1.0, beta 2.2.0-beta.1.26.32-stable, preview beta 2.2.0-beta.1.26.40-preview.29. Docs: https://stirante.com/script/server-ui/. The
addButtonList/getSelectedButtonIdthat AI invented do not exist. As of 2026-11-16: stable 2.3.0, beta 2.4.0-beta.1.26.63-stable, preview 2.4.0-rc.1.26.70-preview.24, preview beta 2.5.0-beta.1.26.70-preview.24. - ModalForm values:
formValueshas an item (null/undefined) for every element including header/divider/label. The index matches element order. It was first changed to skip non-input elements and reverted for server backward compatibility. To filter, usevalues.filter(v => v != null)(this keepsfalsetoggle values.!== undefined || !== nullis always true). Values arrive only after Submit and there is no real-time dropdown callback. - Text field and slider:
ModalFormData.textField(label, placeholder, { defaultValue, tooltip })(the new module. The old string third argument is an error).defaultValuemust be a string or RawMessage and a number throws, soString(Math.floor(n)). The slider takes an options object{defaultValue, valueStep}. Raise length limits with JSON UI or split into several fields. - Display timing: when opening a form from a command or event, open it inside
system.runor afterawait null(abeforeEventshandler). A form opened inplayerInteractWithBlockfires repeatedly, so block it withisFirstEvent. If chat or the HUD is open it fails withcancelationReason === FormCancelationReason.UserBusy("UserBusy". Renamed fromuserBusy), so try again:forceShow(form, player, maxRetries=300). ImportFormCancelationReasonfrom@minecraft/server-ui, not@minecraft/server. A chat command trigger closes chat late, so a/custom command is better. Use the same retry for the first-spawn welcome screen. - Force closing: close script forms with
uiManager.closeAllForms(player)(UIManager.closeAllForms(), first in beta). It does not work on DDUI forms. There is no feature to hide a ServerForm after some time. - Button icons:
.button(text, iconPath)accepts a path liketextures/items/.... For a dynamic list, make buttons from an array (for exampleworld.getPlayers()) and mapresponse.selectionback to the array index. The maximum number of body lines is decided by JSON UI. Cascading ActionForms (a menu calling a menu) are common. - Text:
§color codes work in the title, header and label. Center alignment in an ActionForm is done with spaces or JSON UI (one person used a§\prefix as a key). Custom button shapes and backgrounds need JSON UI. - Other script matters: scripts cannot read translated item names (only keys). They cannot read the inventory search box string either. "Selecting" an entity inventory item is client-only. There is no native API to hide HUD chat. There is no health component
minecraft:hungerin scripts (player.hungeris also unconfirmed). - Opening the inventory screen cannot be detected: scripts cannot know that a player opened the plain inventory screen. The
containerOpened/containerClosedevents cover only container UI.q.is_in_uicannot send data to the server either.
Data-Driven UI (DDUI, CustomForm)
Status and timing
- History: it first became known in 2025-11 from traces in server-ui and the JSON schema (
metadata/json_schemas/client/ddui/1.21.130) of the bedrock-apis/bds-docs preview branch. 2025-12 alpha classes:DataDrivenScreen.showScreen(player, screenId),DataStore(thedduiconstant. getProperty/setProperty/getPropertyPath/setPropertyPath/setClientWritable/subscribe/unsubscribe),closeAllDataDrivenScreens(player)(types in bds-docstypes/@minecraft/server-ui-bindings_3.0.0-alpha.d.ts). It needed an experiment toggle and failed silently without it. It entered preview in 2026-02, beta in 2026-04 and stable in 26.30 (2026-06-16). In 2026-06 the internal DDUI API moved to C++. - RP file format (alpha):
resource_pack/ddui/root/<file>.json(the final screen) andddui/composition/(reusable components). It usesformat_version 1.21.130,minecraft:ui-root,description.identifier,attribs.root_point: minecraft:screenandlayout.markuptags (Panel,Panel.Text,Panel.CloseButton). Custom RP panels are still internal-pack only.{single report}The format seen in the 26.70.23 preview haslayoutas an array ofcomponentobjects:{"component":"minecraft:form.panel","style_id":"modalForm","children":[...]}, with childrenminecraft:form.text,form.spacing,form.close_button,primitive_checkbox(checked) andform.textfield(value,label,max_length). Whether it replaces the markup format is unknown. - What it can do: in 2026 stable/beta 26.x, DDUI is at the level of replacing the script's ActionForm/ModalForm/MessageBox. All elements can be mixed (button + toggle), the data of an open form updates in real time, and animated content (image loops, video-like frames: jeanmajid/MCPE-DDUIRenderer) also shows. Good for admin panels. Official documentation: https://learn.microsoft.com/en-us/minecraft/creator/documents/scripting/intro-to-ddui.
- What it cannot do and complaints: you cannot change size, background, button size, font, tooltip alignment, close button or position with an ordinary RP (the route used up to 26.63, replacing the Ore UI files themselves with a trusted pack, is blocked from 26.64; see the Ore UI modification section below). It is narrow and plain, it was slow at launch, it jitters, the scrollbar loads late, and several Minecraft fonts including a blurry font are mixed.
visibledoes not erase children. Color codes work only in the title and label (there is also a report that label color codes do not work). The grid is a "label with squares". The HUD and read-only non-blocking overlays are not yet possible (the HUD later). Thecache screenproposal caused a crash. Custom fonts can be referenced in layout files but are not public and only hardcoded fonts work. - Color codes per font: text that Ore UI and DDUI draw with the blurry font (buttons and so on) does not support
§color codes. DDUI labels use a different, non-blurry font and color codes work there. - Coexistence with JSON UI: JSON UI forms and DDUI are incompatible (JSON UI files cannot be used in DDUI). ActionFormData is the simplest for button lists and can be decorated with JSON UI, so it keeps being used. The community consensus is that "once DDUI can be decorated, Action/Modal forms become useless". Old action forms may be deprecated someday.
The CustomForm API
- Observable: values are made with
new ObservableString(text)/new ObservableString('', {clientWritable:true})/ObservableNumber(0,{clientWritable:true})(the early formObservable.create). UsesetData(),getData()andsubscribe(cb)(for user input controls). Pass the observable itself to a label (.label(obs)..label(obs.getData())does not update). - Methods:
.label(obs),.header(text,{styleId}),.textField(label, obs, {description}),.dropdown(label, obs, [{label,value}]),.toggle,.button,.spacer(),.divider,.closeButton(),.image()(use with an observable is still preview. It once did not work in stable. Check the jaylydev docs),.show(),form.close(). OptionsButtonOptions.disabled,ToggleOptions.disabled. Wait for player loading withcanShow. In recent previews, custom forms got icons (position cannot be adjusted).ImageOptions.onClickhas no coordinates (requested). - The real-time label pattern: call
obs.setData(newText)insidesystem.runIntervaland clear the interval in.show().finally(). Values must be reread every tick (a captured constant does not change). - Form switching: in a button callback,
form.close()thensystem.run(() => nextForm(player)). Put the form in a variable and callform.show()separately (the result of.show()is a Promise so do not assign it). - Known problems: the close button cannot be removed (a bug. A fix is planned). The observable
labelinside a dropdownDropdownItemData[]is not updated aftersetData()(the dropdowndescriptionObservableString updates. Unresolved). There was an error where the form did not appear after an hour of use, and advice was to wrapsetDatain try/catch, create new observables each time it opens, and try server-ui 2.0.0. Putting all ofItemTypes.getAll()in a dropdown freezes the game, so cut it to about 20 and drive it with a search observable. There was no answer on how to control a slider in real time while fading a DDUI screen.
DDUI styles (preview)
styleId: see the 1.26.60.28 preview: https://gist.github.com/theaddonn/b28c71e65b6585910c6a8d58a019a4d4. ThestyleIdoption ofCustomFormand controls is used likenew CustomForm(player, 'My Form', { styleId: 'ns:my_form', topCloseButtonVisible: true }),form.header(text,{styleId})andform.textField(label, new ObservableString('Steve',{clientWritable:true}), {styleId}). In 1.26.60 a native mod was needed to turn it on.@minecraft/server-ui3.0.0-alpha (tested in 26.70.21) supports it without a mod. Only the look (for example opacity) changes. There is a report that even with module versionalphathe vanilla styleId renders and behaves the same asinternal(registering new styles was not tested).{single report}- Editing vanilla DDUI files (2026-12 preview): a report says that in the latest preview, editing the vanilla DDUI files (all JSON) could change the layout and more, while bindings did not seem to work. It did not say whether the edited files were in the game install folder or in a pack. The engine reads
ddui/rootonly from built-in packs (ALT-16).{single report} - Textures of other packs: per a 2026-11-16 report, referencing vanilla textures through another pack's UUID in a DDUI image no longer works, so copy the image into your own pack. Whether the trick from 2026-10 that breaks the query (
pack://textures/x.png??packId=) to use another pack's texture without the UUID still works has not been confirmed. Another known trick is leaving src as an empty string and appending.png?to the path. A question saying thatimageDetails: {"imageSrc": ..., "imagePackId": ...}did not work for a server-ui form image got no answer. Whether base64 images are supported is unknown.{single report}A 2026-11-18 report: images from another pack needimagePackId, and putting the vanilla pack's internal UUID or an empty string there is blocked. Adding the vanilla pack as a dependency gives[UI][error]-Cannot load vanilla images.and makes DDUI buttons render in JSON UI style. AnimageSrcending in?(for example"textures/ui/sidebar_icons/AdventureTime_packicon.jpg?") reportedly loaded vanilla images, but this is not confirmed. Most vanilla images are now inside brarchive.{single report} - Force close key (26.70.22 preview): there is "Close Custom Screens" (ALT + key) in the Macros settings. The changelog calls it "Creator Screens". It solves the problem of forms with the top close button removed not closing even with ESC. [supplement 2026-10-28]
- Style file format (an unpublished demo):
"format_version": "beta","minecraft:ui-style"(description.identifier, for exampleddui_demo:parchment), andcomponentswithminecraft:form_panel(image, padding),minecraft:form_label(color, shadow) andminecraft:form_textfield(text_color, caret_color, selection_background_color, text_color_disabled). The script usesnew CustomForm(player, title, { styleId })and a per-labelstyleId, and reloads at runtime with/reload ddui. It was found by static analysis of the game, Education Edition and LeviLamina and uses internal features not in the public API.{unverified}in stable - Wanted features (community draft): an image/icon next to a button, a size property, more than 3 buttons per row (grid), and flexbox-like layout. The same gist is the draft spec.
Ore UI modification (unofficial)
-
Blocked from 26.64: up to 26.63, an Ore UI
ui://request looked at trusted packs in the pack stack first, so thehbui/files of an encrypted pack the server sent or of a local pack with an emptycontent.zipein its root replaced the vanilla HTML/JS/CSS (tested on Windows and Android 1.26.52, ALT-11). This route was reported to Mojang as a security problem, and there are reports that 26.64 blocked resource pack access to Ore UI, so custom Ore UI made with a resource pack no longer works. The scope, case and platform items below are resource pack behavior up to 26.63. -
Scope and cautions (up to 26.63): you can change
gameplay.html(5 routes: death, bedtime, data-driven, trade, pause-menu/dbug-drawer) and the loading screen. The menu-sideindex.html(116 routes: main-menu, play, edit-world, export-world, oreui-settings, etc.) can also be changed with a global resource pack, and needs a game restart to apply. The HUD and inventory are JSON UI so do not apply. The hashed namesgameplay-<hash>.jsandindex-<hash>.jsmust be fixed for each game version (if wrong, no Ore UI screen shows. They changed in 26.62.1 too), and if the pack version is not raised the cache remains. CSS class names are also hashes that change per build. There is an opinion that if you only append without modifying existing elements, no hash is needed. The runtime is V8 (not QuickJS). There is a remark that it runs jitless and cannot use WebAssembly.{single report}localStoragepersists across going to and from servers until the game is turned off. The router keeps location at/hbui/gameplay.html#, so screens cannot be told apart by URL. Gameface does not sendclickto ordinary divs (usemousedown), has no<audio>, video works only as WebM, and http/https loading fails. The engine blocks external network access from the UI, so external content must be relayed by the server (a case of showing an external web page through a server proxy). There is a report that iframes do not work. There is a report that changing the<video>src dynamically failed. JSON UI dialogs are drawn over Ore UI. In the world list, Ore UI cannot read cheats, whether flat, or the world's pack list. An unencrypted pack reaches Ore UI only through thecommon_buttons.light_text_buttontextures and colors andpack://textures/...paths. Per-platform hbui install paths: https://github.com/8Crafter-Studios/Ore-UI-Customizer-App/blob/69f6ebbb6d7aa689d79e860929ccf61d6d7bed00/src/utils/config.ts#L110 -
Hidden vanilla features: overriding the bundle .js can revive Android's "Export world" and the "Debug" tab of world editing (Flat nether, game version override, spawn biome) (wadudi,
OreUI-ImportExportUnhiderv5.mcpack, 26.60). [supplement 2026-11-01..03] -
Community cases: doomgeneric built with emscripten runs inside Ore UI at about 249fps (tutinoko9900). A Cobblemon-style screen with more than 1,025 buttons (kongsonnyson). A Pokedex synced with a Dragonfly server, dragging, zoom, and nested forms. A React library test. @bedrock-core added an experimental Ore UI host (https://bedrock-core.drav.dev/docs/ui/guides/experimental-ore). World list mods using
index.html: hiding LAN and friend worlds (minato4743), World Filter that filters by size, mod and last played (xython_, includes a.batthat reads world files offline), and a search box (ctabdul15). [supplement 2026-10-27..11-05] -
Platforms: there are reports that it works on Windows, Android, Linux, Xbox and Switch 1. The failure reports (Xbox, Linux) were explained as cases of an old
gameplay.htmlhash. On Switch 1 a debug pack intercepted input and the screen could not be left. The lag and blank panels on mobile that seems to be iOS have no identified cause.{unverified}[supplement 2026-10-29..11-02] -
HUD overlay: there are screenshots of an Ore UI-style HUD (date, coins, party cards) shown from a server, but the method ("detour") is not public.
{unverified}[supplement 2026-10-31] -
Local file editing: the css/js/textures of Ore UI can be edited locally in the game install folder. Examples:
...\Minecraft Preview for Windows\Content\data\gui\dist\hbui\gameplay-theme-<hash>.css(class.modalForm),hbui\assets\neutral-elevated-control-panel-<hash>.png, stableC:\XboxGames\Minecraft for Windows\Content\data\gui\dist\hbui\assets, UWP package...\Microsoft.MinecraftUWP_1.26.6301.0_x64__8wekyb3d8bbwe\data\gui\dist\hbui\gameplay-react-<hash>.js. The hash changes with every update. It applies only to that client and is not an RP feature. css hot-reloads with/reload alland Ore UI screens are recompiled every time they open. Android needs the APK rebuilt. There is also a report that editing had no effect at the 2025-12 alpha stage. -
Reusing assets: Ore UI assets in
hbui/assetscan be used as JSON UI textures by renaming them and setting nineslice (in Ore UI, nineslice is applied on the script side). With these assets and the Ore UI design system you can restyle server forms and other JSON UI screens to look like Ore UI, but one opinion is that it takes a lot of work.{single report}
Renderers (entities, items, structures)
live_player_renderer:{"type":"custom","renderer":"live_player_renderer","property_bag":{"#entity_id":"<id>"}}. The id isplayer.idand it shows equipment automatically. It always shows the held item and follows the cursor. After the spear update (2025-12), holding some items hid custom attachables, which was fixed with a high layer (10 worked, 100/500 did not, 999 did). It cannot be forced to always render (hud_player_rendereris the same). There is no live renderer that renders several entities at once (pass an entity id per button). One screen can hold severallive_player_rendererelements, each with its own size and offset. There is a report that showing a different model per instance works by overriding the render controllers or attachables of player.entity.json and choosing the model by UI variables or property_bag values such as#skin_idx.{single report}- 3D previews inside UI: a kill effect preview screen was built with the structure renderer (
3d_structure_renderer). The smithing table armor stand renderer andlive_horse_rendererwere named as alternatives.{single report} live_horse_renderer: renders on any screen with#entity_id(Script APIentity.id). The id must be a string. If it is only digits it turns into a number and fails, so pass the original through subtitle/#form_text(.body()).property_bag {"#look_at_cursor": true}. It always follows the cursor (in forms. Not in the HUD where the cursor is consumed) and cannot be turned off. It can show a player model with armor. The entity must be spawned near the player and visible, and scale tricks have no effect on UI. To change the model, change the render controller with an entity property or an NPC model.profile_image_renderer: draws a profile image by binding a JSON string ({"type":N,"userId":"..."}or{"type":7,"url":"https://..."}) to#profile_image_options. It can be overridden withproperty_bagand view bindings. As of 2026-10-27 types: 0 none, 1 MinecraftHeadshotByXuid, 2 MinecraftHeadshotByPlayfabId, 3 MinecraftAvatarByXuid (a report that it does not work), 4 MinecraftAvatarByPlayfabId, 5 XboxLiveSmallGamerpicByXuid, 6 XboxLiveSmallGamerpicByUrl, 7 XboxLiveFullClubsImageByUrl (an image from an arbitrary URL), 8 MinecraftSkinByXuid (does not work), 9 MinecraftSkinByPlayfabId. The numbers differ from 2025-02, so they appear to change per version. Whether it is cached is unknown. Type 7 works on all screens including hud_screen. 16:9 worked and a 5:1 banner did not. Even with the same request, some CDNs (the MinIO development CDN) are not drawn while Cloudflare R2 worked. There is a report that only one renderer works at a time. There is also a report that it worked only with aproperty_bag.{single report}(the type table) [supplement 2026-10-26..11-04]- Changing the player model from UI toggles: there is a demo where two JSON UI toggles turn different parts of the real player model on and off. The method was only partly published: depending on the toggle state an animation plays on the paper doll, and the player's Molang detects whether that animation is playing to switch the render controller. The exact bindings and Molang expressions were not shared.
{single report} paper_doll_renderer: renders yourself (no movement or armor, the cape shows, affected by invisibility and 4D skins). It is taken frompause_screen.json. Stop rotation withstarting_rotation: 0+ a drop gesture binding. A specific player's skin is UUID + paper_doll, anduse_skin_by_nametakes a skin uuid. A custom geometry cannot be used in a paper doll. Put in a small panel withclips_children: trueit can show the player's head. A 3D UI can be made by changing player geometry bones withquery.is_in_ui. A speedometer is made with player.entity.json + paper doll +query.ground_speed(2 render controllers).- Item renderer:
renderer: inventory_item_renderer(oritem@beacon.item_renderer,common.item_renderer) with#item_id_aux(needs property_bag{"#item_id_aux": 0}). aux = numeric id * 65536 + data, with enchantment +32768. Blocks work well and items need an offset (not a raw aux id). The report that it works only inside a grid layout and not inside scroll panels or factories does not match a measurement: on 1.26.63 mobile it drew in server form cells and details built by factories and in the scroll area inside the details (research screen section 8.1). The 2026-01 problem where an explicit aux showed as a wrong item (kelp, piston) was worked around with a property bag string ("#id_aux":"@21954560"+(#id_aux - '@')). With layer 100 the item hid and 4/50 were fine. Thecommon.item_rendererof a container ignores layer for many blocks/items (unresolved). - aux id cautions: aux ids shift with the version and installed add-ons so they cannot be computed at runtime across add-ons. There is also no way to get an item id directly (official list: the learn.microsoft.com vanilla list. No spear). Getting the name from an aux id is also impossible. aux is unstable on mobile. A form button usage example:
.button("§f§l§a§g§0§r", "aux:65536")+('%.4s' * #texture = 'aux:'),(#texture - 'aux:')to#item_id_aux. In performance the item renderer is better than the structure renderer. There is no dynamic item/block icon API, so refer to texture paths. 3d_structure_renderer: givetype:"custom"the property_bag#block_position,#top_right_block,#bottom_left_block(arrays [x,y,z]),#include_entities,#remove_blocksand#include_players. The area must be loaded, a big area freezes the game, and arrays cannot be manipulated. There is no script API for .mcstructure preview. 3D block rendering is hardcoded, so use the item renderer or pre-taken screenshots (Blockbench). Measured (2026-11-18 Windows 1.26.65.1, log): in a server form custom screen it drew the live world with property_bag values only, without structure editor bindings.#bottom_left_blockand#top_right_blockare absolute world coordinates, and the upper corner is exclusive ([3,-60,3]..[5,-57,5] showed 2x3x2 blocks).#block_positionhad no visible effect (0,0,0 and 40,0,40 gave the same image). A relative reading, with small corner values added to the position, drew nothing. A region 17 or more blocks from the player was drawn, and a 64x6x64 region was drawn scaled to fit at 60 fps (the vsync cap). A region at x,z 5000 (not loaded) drew nothing. Drag rotation worked only with aninput_panelusinggesture_tracking_button: "button.turn_structure"plus view bindings of#gesture_delta_source,#gesture_mouse_delta_xand#gesture_mouse_delta_yfrom that input panel into the renderer. Corner values given per instance through$variablesworked. With#include_entitieson, entities in the region were drawn, and with#include_playersas well, the player too; entity movement and block changes showed while the form stayed open. No key turns off the top-right axis; making the renderer larger than its box and cutting it with the parent'sclips_childrenhid it. The HUD and the chest screen were not tested. The community claim that a structure block also draws.mcstructurefiles was not confirmed: with the name of a behavior pack file structure or a structure saved in the world in the load mode of a vanilla structure block, the preview drew the current world at the paste spot inside a box of the structure size (record, 2026-11-19 Windows 1.26.65.1).- Other renderers:
bundle_tooltip_renderer(gameplay_common.json, controlbundle_tooltip) can make a custom tooltip that is not cut by the screen. Do not swaphover_textdirectly; put a label bound to#hover_textinside the renderer.bundle_tooltipis the wrapper with the contents, and the renderer moves it with the cursor while keeping it inside its parent (vanilla hover text stays inside the screen).follows_cursorworks on screens and also on input panels and buttons (one case used it on an inventory button). The bundle tooltip follows the parent size, pops on touch/small screens, and breaks with a grid of more than 12 cells. The renderer repositions the tooltip toward each corner of its parent so that it never leaves the parent bounds, so with a small parent the tooltip jumps or sticks in place while moving through the inventory with arrow keys. A bigger parent may help depending on the tooltip size, and one answer prefers a custom tooltip built without the renderer. The vanilla tooltip can also stay stuck until the UI is reloaded.progress.progress_bar_rendereris the durability bar renderer (fixed look,#color). Vanilladurability_barhasproperty_bag {"drop_shadow": true, "is_durability": true, "round_value": true}and overrides#item_durability_visible/#item_durability_total_amount/#item_durability_current_amountto#touch_progress_bar_visible/#progress_bar_total_amount/#progress_bar_current_amount. No way to get the durability value out as text was found.#item_durability_current_amountis a float, and doing* 1in string concatenation gave an empty value. A minimap using the paper doll render path flooded the log when the pause screen opened and came close to crashing.web_view_rendererexample: https://github.com/Xterionix/extended-bedrock-samples/blob/4289aa5550c18608e25f9487f89b766d82168f7c/resource_pack/ui/code_screen.json#L236.
| id | Source | License | Commit | Accessed |
|---|---|---|---|---|
private-research | Private research (-) | - | 2026-11-13 |