Page environment
The tests on this page were done with a pack replacing the in-game page (an encrypted pack or a content.zipe pack). That route worked up to 26.63, and in 26.64 Mojang blocked resource pack access to Ore UI for a security reason (Source: private research). The results below record the Gameface page environment of earlier versions.
These are things seen on a real client while building the server-driven test screens and the renderer. The environment is Windows 1.26.52 (2026-10-27) and the engine features are Windows 1.26.60.5 (2026-10-28). iOS and iPad are written separately. In the notation, {record} marks something written as fact in the private research documents whose measurement conditions were not kept. (Source: repo-ore-ui-loading, private-research)
0. Concept: a Gameface page is not a browser
Ore UI pages run inside Coherent Gameface. It looks similar to a Chromium-based web UI, but it is an engine trimmed for games and lacks many features. The general facts known from the experience of Venice Unleashed (a Frostbite mod) moving to the same engine (Source: venice-unleashed-docs) and from the Gameface documentation (Source: gameface-guide) are as follows.
- CSS: grid and table layouts are not supported.
display: inlineandinline-blockare not supported either. Advanced selectors such as:nth-last-childdo not work. - CSS variables: usable, but not inside shorthand properties such as
border: solid var(--w) var(--c). Write outborder-style,border-widthandborder-color. - HTML:
<audio>is not supported (put sound into<video>as webm).<input>works only for text, button and password.<canvas>supports only the 2D context and there is no WebGL. Unsupported elements are not visible on screen. - Fonts: only TrueType and OpenType families (
.ttf,.ttc,.otf,.otc) work. - GIF: animates only in
<img>. GIFs inbackground-image,border-imageandmask-imagedo not animate. A GIF loads every frame into memory in advance, so 128x128 or smaller and 30 frames or fewer is recommended. - Video:
<video>works only with a WebM container, VP8 or VP9 video, and a single Vorbis audio track. The attributes aresrc,autoplay,loop,mutedandpreload="auto". Audio is passed to the engine as PCM and follows the engine's volume settings.
An example of converting wav to webm for <video> (Source: venice-unleashed-docs):
ffmpeg -i input.wav -c:a libvorbis -b:a 128k -f webm output.webm
The results matched against this repository's measurements are in chapter 10, Media, of this page. Font files are read from the install folder data/gui/dist/hbui/fonts/, and Ore UI uses Minecraft-Seven.ttf and Minecraft-Seven-v4.ttf (Source: bedrock-wiki, fonts). The Unicode glyph table of JSON UI does not apply to Ore UI.
1. Resources a page can load {measured}
The page address is ui://./hbui/gameplay.html and the origin is ui://.. There is no fetch (undefined), while XMLHttpRequest, Blob and URL.createObjectURL exist. The test screen tries one method per route in turn (4 seconds per method) and sends whether it passed to the server. A script passes if it calls window.__ouiRes(tag), a stylesheet passes if the width of .oui-res-probe becomes 13px, and HTML passes if it contains oui-res-html.
| Route | Method | Result |
|---|---|---|
| Text sent through the data store | eval (global) | Works |
new Function | Works | |
Inline <script> (text set via textContent) | Works (onload also arrives) | |
data: script | Does not work (onerror) | |
blob: script | new Blob([text], {type}) throws TypeError (no constructor takes two arguments). One argument is not verified | |
<style> | Not verified (Gameface lays out on the next frame, so measuring right after attaching is wrong. Measure after 0.3 seconds) | |
data: stylesheet | Does not work (onerror) | |
innerHTML | Works | |
hbui/ files of an encrypted pack | <script src="/hbui/..."> | Works |
<link href="/hbui/..."> | onload arrives. Whether the style took effect is not verified | |
XMLHttpRequest /hbui/... | Works (200) | |
XMLHttpRequest pack://hbui/... | Works (200) | |
| HTTP (the game port of the connected host, the next port) | <script src>, <link>, <img> | Does not work (onerror) |
XMLHttpRequest | Does not work (status 404, 0 bytes) |
- For HTTP, not a single request reached the server on either port. The test server runs an HTTP server only while the screen is open (responding with
Access-Control-Allow-Origin: *) and records the port, path,Origin,RefererandUser-Agentof received requests. The XHR 404 came from the game's resource handler, not from the server. The client does not send network requests to http addresses from a page. If a request reached the server but failed on the page, the page side (origin rules) blocked it, and if no request arrived, the client did not send it. - The statement "Ore UI allows resources from the same origin as the connected server" does not match this result and no source for it was found. The page's origin (
ui://.) differs from the server host.<img>and<video>with internet addresses also failed.httpsand WebSocket were not tested (the server has no certificate). If a port cannot be opened (the game port is UDP, so the TCP port with the same number is usually free), the reason is shown on screen. - The Gameface documentation also says
XMLHttpRequestgoes to the game's resource handler, andfetchis not in the Window API list (Source: gameface-docs). - Summary: there are two ways for a server to put code in. (1) Load the
hbui/files of an encrypted pack with<script src>or XHR. (2) Write the text sent through the data store witheval,new Function, an inline<script>orinnerHTML. (2) sends code during the connection without changing the pack. - The pack was placed in the same encrypted pack as the renderer, like
hbui/oui-probe.*. Even when encrypted the same way as a market pack,manifest.jsonandpack_icon.pngstay as plaintext. The key is given to the client, so a connecting client can decrypt it. Encryption is only a condition for opening Ore UI, not protection.
2. Input events (mouse and keyboard) {measured}
The test screen receives, in the document capture phase, mouse (mousedown, mouseup, click, dblclick, contextmenu), wheel, keys (keydown, keyup, keypress), touch, pointer (pointerdown, etc.), focus, text input (input, change, composition*), visibilitychange, and the window's resize and gamepadconnected, and sends them to the server as lines. Move events are only counted. The gamepad is read with navigator.getGamepads() every 0.1 seconds. Repeated identical lines are counted as xN. Results (Windows, mouse and keyboard):
mousemovearrives (2371 times).pointermovewas 0 times, so pointer events appear not to arrive.scrollarrives.clickarrived once on a scroll handle (button=0 buttons=0 detail=undefined). It does not arrive on a plaindiv, so presses are received withmousedown. Which elements receiveclickis not verified.- The right button arrives as
button=2onmousedownandmouseup(2026-11-04). There was nocontextmenuline. - While Alt is held,
keydown key= code=Alt keyCode=18 repeat=truekeeps arriving.keyis empty. Some page implementations still assume a held key's repeats may not carryrepeatand throttle held keys themselves to one press per 120 ms. Which devices behave that way is not verified{code}. - Wheel, focus, text input and IME composition, and gamepad were pushed out by the Alt repeat lines and left no results (not verified).
- A touch device sends
mousedownon a tap but does not sendmousemovewhile the finger moves. Scrollbar dragging and screen dragging also receivetouchstartandtouchmoveand read coordinates fromtouches[0]{record}. - The
toucheslist of a touch event may hold only the finger that changed. A second finger that lands later is not seen together with the first, so two-finger zoom worked only when both fingers landed together{measured, 2026-10-29}. Collecting fingers byidentifierfrom everytouchstart,touchmoveandtouchendof the page, in listeners registered before any other, lets any two fingers zoom. - On touch devices the order of a tap's
touchstartand themousedownthat follows it is not the same on every device. So the page waits a moment before deciding a press{code}. - While the screen was open, the client kept sending
ServerBoundDiagnostics(157). NoScriptMessagearrived. - The phone back button did not arrive on the page as a key. Android
KEYCODE_BACK4, browser back 166,GoBackandBrowserBackare all set to be received as close.
3. Routes from the page to the server
- Calling a data store write (
vanillaDduiDataStoreSetCommandGroup.setDataStorePathString, etc.) makes the client send it as aServerBoundDataStorepacket. Even sending 700 lines, one per event, all reached the server{measured}. - At runtime
window.__commands__has 40 command groups. Besides those the bundle uses, there are realms, storage, settings (vanilla_menus_update_settings,coreOptionsCommandGroup), party chat (vanilla_partyChatCommandGroup:setIsOpen,setComposedMessage,sendComposedMessage),editorTelemetryCommandGroup(fireScriptAction), and others. There is no name that sends game chat, slash commands orScriptMessage. The arguments and the effect offireScriptActionare not verified{measured}. - The command groups the in-game bundle uses are
coreTranslate,coreScreenReader,sound,coreApplication,coreHaptics,coreOptions,vanillaGameplayContainerAPICommands,vanillaGameplayLocalPlayerRespawnCommand,vanillaGameplayLeaveGameCommandGroup,vanillaGameplayLocalPlayerWakeUpCommand,vanillaDduiDataStoreSetCommandGroup(setDataStorePathString,Number,Bool,dataStoreButtonPress,dataStoreCloseButtonPress) andvanillaCoreDduiContentLogCommandGroup. The menu bundle also has no group that sends script events, chat or slash commands{code}. 8Crafter's Ore UI type definitions don't have one either (only party chat){docs}. ScriptMessage(ID 177, formerly namedScriptCustomEvent) is a packet that carries an identifier (string) and data. The Mojang documentation says only "a user message between client and server" (Source: bedrock-protocol-docs), and gophertunnel treats it as a bidirectional packet and guesses it is for GameTest (Source: gophertunnel). The server can receive it (Dragonfly does not handle it, but you can wrap the listener to intercept it). No route to send it from the page was found. Whether the vanilla client ever sends this packet, and whether it connects to/scriptevent, is not verified. A/scripteventtyped by the client goes as aCommandRequestlike other commands.- Summary: the routes from the page to the server are the data store (
ServerBoundDataStore) and closing the DDUI screen (ServerBoundDataDrivenScreenClosed). - When a screen is swapped and reopened, the client reports the previous form's close after the new form opens. Use a new
FormIDper form and treat a close packet as a close only when itsFormIDequals the current form. The data instance (custom_form_data_1) can be shared by all forms{record}.
4. Engine features the page can use {measured, Windows 1.26.60.5}
These are results of calling them from server-sent JS. All examples below are in the form called from the page's global scope.
// Sound effect
window.__commands__.soundCommandGroup.play("random.click", 1, 1);
// Translation (client language)
window.__commands__.coreTranslateCommandGroup.translate("item.diamond.name");
(The actual call binds the callable of an entry to that entry, as in the DDUI guide.)
- Settings: reads (
vanilla.menus.settings{Boolean,Option,Number,String}Query(id)) and writes (updateBoolean,updateOption,updateNumberandupdateString(id, value) ofvanilla_menus_update_settings) the settings of the settings screen. An id is a name in the tree undervanilla.menus.settingsGroupQuery("settings-tabs-groups"), and there are 664. A written value is a game option stored on the device, so it remains after leaving the server. Examples: UI profilevideo.ui_profile(0 classic), content logscreator.contentLog.gui.enable,creator.contentLog.gui.showErrors,creator.contentLog.file.enable, andcreator.scriptDiagnostic.enableClient. - Sound effects:
soundCommandGroup.play(name, volume, pitch)makes a sound (random.click,note.bass,ui.drawer_open). Pack sound names are not verified. - Translation:
coreTranslateCommandGroup.translate(key)returns the text in the client language (both vanilla keys and packtexts/*.langkeys). A call passing an array as the second argument gaveundefined.formatDate(seconds)returns10/28/26andgetHowLongAgoAsString(seconds)returns1h ago. - Clipboard:
copyToClipboard(text)of the facetvanilla.clipboardcopies (Windows). Other devices are not verified. - Large UI:
vanillaExtraLargeUICommandGroup.setExtraLargeUIEnabled(bool)switches it immediately. - What can be read:
core.device.platformis{type, inputMethods},vanilla.inGameisisInGameandisInMultiplayerSession, andvanilla.buildSettingsis the game version and build kind.core.staticFeatureFlag(id)returns{enabled}. - What does not work: screen reader
coreScreenReaderCommandGroup.read(TTS is off) and canvas (nogetContext). The queriescore.input,core.device.display,core.localeandcore.deviceInformationand the facetsvanilla.userAccount,vanilla.editor(navigateUri),vanilla.shareandvanilla.webBrowserFacetgave no answer.core.safeZoneis received as a facet, not a query (sendfacet:requestand receivefacet:updated:core.safeZone.query:subscribe/core.safeZonegets no answer){code}. A community report saysnavigateUriworks on Windows, which disagrees with this result. That report treated this path as a security problem, so it may be blocked in later versions conflicting. - Page: SVG elements are created.
requestAnimationFrameandperformance.nowexist.localStoragepersists across leaving and rejoining a server but disappears when the game is restarted.enginehason,off,trigger,call,translate,createJSModel,updateWholeModel,synchronizeModels,createVirtualList,registerBindingAttributeand so on (Gameface data binding). - Caution:
window.__commands__also has commands that harm the player (vanillaWorldStorageCommandGroup.deleteWorld,vanillaRealmsDeleteCommandGroup.deleteRealm,vanilla_menus_xal_environment.clearUserCredentials,personaCommands.equipDefaultSkin,coreApplicationCommandGroup.exit). It means a server that changes the page with an encrypted pack can call them{inferred}.
5. How a server fixes settings {record}
A server can fix some settings for the duration of the connection. For example, it can set a consenting player's UI profile to classic (video.ui_profile 0), or turn off content logs for players who are not operators. The setting values are sent in the root of the next DDUI screen that opens, the page writes only when the value differs, and after writing it keeps watching the value and reverts it if the player changes it. The setting keys are in Server-driven Ore UI screen operations notes.
6. Vanilla container screens {code}
The game bundle and the vanilla pack have 18 container DDUI screens (minecraft:inventory_screen, workbench_screen, furnace_screen, chests, base_layout). Of these, 11 layouts read the data store container (Icons and containers).
- A layout reads
slots.<group>[i](armorContainer,offhandContainer,craftingInputContainer, etc.) of the data storeminecraft/container. - A vanilla slot (
Container.Slot) reads items with the engine queryvanillaGameplayContainerItemQuery(group number, slot). The group numbers are hotbar 28, inventory 29, armor 6, offhand 34 and cursor 59. - Presses are sent with the engine command
vanillaGameplayContainerAPICommands(handleSlotMousePress(button, group, slot, ...),takeAllItems,placeOneItem,splitMultipleItems, etc.).
7. Things tied to devices and versions {record}
- Bundle names and font names: when the game updates, match the vanilla bundle file names (hashes) in
gameplay.htmlto the install. If they are wrong, the whole in-game Ore UI does not appear. If the pack CSS points to a game font file with@font-face, match that name too. - iPad: Gameface resolves the percentages of an absolutely positioned box against the parent (
body) size. On iPad thebodyheight is 0, so a window sized in percent collapsed into a strip at the top. Set the screen-size box withvwandvh. - iOS: the pack's
hbuifolder replaces the game's wholesale, so the vanilla CSS thatgameplay.htmllinks is not loaded. The@font-face, thebodyheight and the--localeSpecificNotoSansFontsthat the bundle sets are all missing. So the pack CSS declares fonts directly withui://hbui/fonts(which opens on iOS too) and names them in the font list. Put Noto Sans KR first for Korean lines. Screens do not depend on the vanilla CSS and JS. A community report sees the cause differently: even in the same game version thegameplay-<hash>.jsand.csshashes differ by platform, so agameplay.htmlcopied from Windows points to files iOS does not have (DDUI, death, bed and trade screens go blank while ActionForm and ModalForm are fine). That report gives two fixes. List the bundle tags of every platform (a missing file fails to load harmlessly). Or fetch/hbui//gameplay.htmlwith a doubled slash (not caught by the pack override) asynchronously, save the real file names tolocalStorageand reload, then insert them at the end of<body>asasync=falsescripts. A synchronous request froze the page, a script inserted withdocument.writedid not run, and inserting after load finished kept the UI from starting. Confirmed on Windows and iOS, not on Android or consoles conflicting. - Lines with mixed fonts: Gameface lays out color spans (
span) aligned to the top, not the baseline. So the Minecraft font span floats higher than the Noto font span. A line with even one non-ASCII character is drawn entirely in the Noto font. - Pack UUID: if
header.uuidor a moduleuuidcollides with another server's pack, the client cache gets mixed up.
8. GUI scale and safe zone
- The vanilla game page sets the
htmlfont size to 5 x GUI scale (px) (theguiScaleprovider in the bundlegameplay-*.js). So sizes written inremfollow along without reading the video settings GUI scale separately. 1 GUI pixel is0.2rem. - The safe zone (horizontal and vertical 0.9~1) and the screen position (horizontal and vertical -0.1~0.1) come through the facet
core.safeZone. The margins (px) of the four sides are computed the same way as vanilla and placed in--oui-safe-top,right,bottomandlefton the body, and recomputed when the window size changes{code, record}.
9. Strings and translation
- Client markers in text (item names, dates) are converted to the client language by the page and drawn
{code}.- Form: the server puts
U+FDD0 <kind>:<value> U+FDD1 <fallback> U+FDD2into the text. The kind isk(translation key),d(date) ora(time ago), and the value is a key or Unix seconds. The fallback is text the server made in the player's language. These are Unicode noncharacters, so they do not occur in normal text. - The page replaces each marker in every text, tooltip and input placeholder with the result of
coreTranslateCommandGroup.translate(key),formatDate(seconds)orgetHowLongAgoAsString(seconds)(section 4). When the client does not know the key, it draws the fallback. - Chat (
Text) and titles cannot draw markers, so the server replaces markers in packets going there with the fallback in a packet hook. - A marker takes width, so it is not put in fixed-width cells (list row names, slot counts).
- Form: the server puts
- The
§colors in server text are based on a dark background, so text on a window is changed to the dark variant color (UI style).
10. Media {measured, Windows 1.26.52, 2026-10-24}
The "Media" tab of the DDUI test screen loads <img>, <video> and <audio> from the internet (https, http) and from the pack (/hbui/media/) and shows element events per cell.
- All internet addresses failed.
<img>gaveerrorand<video>gaveerror=2(network). The pack GIF (/hbui/media/spin.gif) was drawn. - Gameface's
<img>has nonaturalWidth(undefined). - To match the earlier documents saying video supports only WebM (VP8 and VP9, one Vorbis audio track) and
<audio>is not supported, the MDN exampleflower.webm(CC0, VP8 + Vorbis) was put in the pack, with two cells: muted autoplay and a play-with-sound button. These two cells have not yet been run in game.
11. Layout and drawing
- Gameface counts an element's border (
border) inscrollHeight. A scrolling box with a border reports overflow even when its content fits, and a hand-drawn scrollbar appears. Put the border and shadow on a box wrapping the scrolling box{code}. - Gameface lays the page out once a frame. An element measured right after its text changes still has the size from before (zero, or the previous tooltip's size). A tooltip is placed invisible in a corner and measured and positioned two frames later
{code}. The<style>in section 1 is not measured right after attaching for the same reason. - Text in an overlay panel with no text color is drawn in the engine's default color, black
{measured, 2026-10-29}. - If a button's hover and pressed images are not loaded in advance, the button border flashes in the text color (white) while the image loads. Keeping those images loaded and making the border color transparent stops the flash
{measured, 2026-10-29}.
12. Community notes
These are reports from community conversations (2025-10 ~ 2026-11-17). They were not tested in this repository. The trust markers are the same as in Community reports and cross-checks. (Source: private-research)
-
CSS: there is a report that
displayworks only with flex, inline and block andinline-blockdoes not.inlineconflicts with the Gameface document in chapter 0. conflicting<br>is turned off, so mixing formattedspans with text containing line breaks is hard. -
Pressing a DDUI button from page JS: hbui has no Script API, so the script and the HTML are connected through a DDUI form (script, DDUI form, HTML in that order). The following form was reported as a call that presses a DDUI button from page JS. It uses
dataStoreButtonPressfrom chapter 3 and was not tested in this repository.window.__commands__.vanillaDduiDataStoreSetCommandGroup.dataStoreButtonPress.callable("minecraft", "custom_form_data_{instanceId}", "layout[" + index + "[.onClick") -
Drag and drop overlay: show a custom DDUI form, cover it with Ore UI HTML, intercept input in JS, and send only the result (for example
{type:'move',from,to}) to the server as a JSON command. Sending directly insidemouseupdropped the connection, so it is sent about 120 ms later. Duplicate click prevention is 400 ms, and click versus drag is distinguished at 3 px (6 px for touch). Shift is read fromkeydownkeyCode 16 orevent.shiftKey, and on touch a long press is used as Shift. -
Imitating the HUD with DDUI input: an approach of receiving mouse movement through DDUI to move the screen was tried. DDUI detects Shift and Space. There is a case where the HUD version was removed because of heavy lag.
-
External content: the engine blocks external network access from the UI (same as the chapter 1 measurement), so external content must be relayed by the server. There is a case where an external web page was shown through a server proxy.
-
JS engine: there is a report that Ore UI (Gameface) runs its JS on V8, and that Bedrock runs this V8 without JIT (jitless), so WebAssembly is unavailable to pages. This is a different target from the Script API engine (QuickJS). single report
-
Per-device speed and version: there is an opinion that iOS and consoles do not allow JIT so JS is slow while the Google Play version allows it. unverified The Switch 2 received a separately built version from 26.60. On Switch 1, if a page intercepts input you cannot leave the screen, so provide a close handler.
| id | Source | License | Commit | Accessed |
|---|---|---|---|---|
repo-ore-ui-loading | Ore UI loading research (this repository) (ore-ui-loading/) | This project's material | 2026-11-13 | |
private-research | Private research (-) | - | 2026-11-13 | |
gameface-docs | Coherent Gameface documentation | Coherent Labs documentation. Facts only, rewritten | 2026-11-13 | |
gameface-guide | Coherent Gameface UI Workflow Guide (Animated Assets) | Coherent Labs documentation. Facts only, rewritten | 2026-11-13 | |
venice-unleashed-docs | Venice Unleashed: Migrating to new UI system (Gameface) | VU documentation. Facts only, rewritten | 2026-11-13 | |
bedrock-protocol-docs | Mojang bedrock-protocol-docs | (c) Mojang AB. All rights reserved (Minecraft EULA applies) | 88e783a | 2026-11-13 |
gophertunnel | gophertunnel (Sandertv) | MIT (c) 2019 Sandertv | e2251a6 | 2026-11-13 |
bedrock-wiki | Bedrock Wiki | CC BY 4.0 (docs/licenses/CC-BY-4.0.md in the repository) | 0930b39 | 2026-11-13 |