Loading paths and the trust decision
The trust decision analysis on this page is based on Android 1.26.52.3 and the measurements on Windows 1.26.52. The route by which encrypted packs and content.zipe packs changed Ore UI files worked up to 26.63, and in 26.64 Mojang blocked resource pack access to Ore UI for a security reason (Source: private research). How versions after 26.64 decide this was not analyzed.
0. Concept: the pack stack and "trust"
JSON UI works by a resource pack's ui/*.json overriding vanilla definitions. Ore UI is different. A screen is a bundle of hbui/*.html, *.js and *.css in the install folder, and that bundle requests files with addresses starting with ui://. When the engine receives a request, before going to the install folder it scans the pack stack (the stacked list of enabled resource packs) from the top, and if a trusted pack has a file at the same path, it serves that one. So "which packs are trusted" decides whether Ore UI can be changed. Trust is decided by how the pack is opened (the access strategy) and has nothing to do with the pack's contents.
The smallest probe pack looks like this (if the server sends it encrypted, the Ore UI background turns magenta).
probe-pack/
manifest.json One resources module
hbui/gameplay-theme-cb1e5471975ef2c1abb9.css Vanilla CSS content + a body rule on the last line
/* One line appended to the very end of the vanilla gameplay-theme CSS */
body { background-color: rgba(255, 0, 255, 0.6) !important; }
The hash in the file name (cb1e5471975ef2c1abb9) differs for each game version. Check the name in the install folder data/gui/dist/hbui/.
1. How an Ore UI file request is resolved {code}
- URL normalization: if the request path does not start with
ui://, the leading/is removed andui://is prepended. The strings present areui://,ui://hbui/fonts/andcoui://uiresources/...(the Gameface inspector). - File lookup
- A path containing
../or..\is rejected. - After normalizing the path, it walks the pack stack from the front. Only when a pack's access strategy trusts that pack does it check whether that pack (including sub packs, in pack order) has the file. If it has it, it serves from that pack.
- If not, it opens
gui/dist/+ base folder + path from the app package file system.
- A path containing
- The filter is whether the pack is trusted. In the analyzed version, encrypted packs sent by a server were trusted, in addition to built-in and marketplace packs.
routes.jsonand fonts (gui/dist/hbui/fonts) are read only from the install folder.
The note in 8Crafter Ore UI Customizer's "Export as RP" that "a mod that makes the game load Ore UI from the RP is required" is correct for plaintext packs. Up to 26.63 an encrypted pack worked without a client mod, and from 26.64 encrypted packs are blocked too.
2. Encrypted packs were trusted (up to 26.63)
Decision per access strategy {code}
The trust decision and the writable decision were checked for each access strategy that opens a pack.
| Access strategy | Trust decision | Writable |
|---|---|---|
| Plaintext zip pack | When it is a built-in pack in the game install folder, or a separate flag on the pack is set | Depends on a separate flag on the pack |
| Plaintext folder pack | When it is a built-in pack in the game install folder | always true |
| Encrypted files | always true | always false |
| Encrypted files inside a zip (the same decision as above) | always true | always false |
Encrypted folder pack (a folder with content.zipe) | always true | always true |
- "A built-in pack in the game install folder" is read as the case where the file system kind of the pack location is the app package. The basis is the enum order of Bedrock file system kinds
{inferred}. - The pack UUID and the manifest content are not used for the trust decision. The idea "can't we just use the UUID of a marketplace add-on" does not work. Even if you imitate the UUID, a plaintext pack opens with a plaintext zip or folder strategy, and that decision looks only at the install location.
- The code that checks the pack signature (
signatures.json) was not followed. In the measurements, a pack that was only encrypted without a signature was trusted. - The client looks up the content key only from keys sent by the server, entitlements and the built-in table. It does not look at key files next to the pack or the world db (Source: private research).
Server measurement (Windows 1.26.52, 2026-10-23) {measured}
- If you give the test server a 32-byte key as the second argument, it converts the pack to the marketplace encryption format and sends it with the key (the format is in Modifying Ore UI pages).
- The same probe pack was sent alternately as plaintext and encrypted. The pack version was raised every time so the client would not reuse what it had received.
| Pack sent | Ore UI death screen background |
|---|---|
| Plaintext (1.0.2, 1.0.4) | vanilla as is |
| Encrypted (1.0.3) | magenta (probe CSS body{background-color:rgba(255,0,255,0.6)}) |
- When the user cross-checked separately, the magenta screen also appeared only with the encrypted pack.
- After disconnecting from the server, magenta once remained on the menu screen too. The menu
index.htmlalso loadsgameplay-theme-*.css, and the server pack appears to stay in the pack stack for a while after connecting{measured, inferred}.
Local pack (content.zipe) {measured, 2026-10-27}
Up to 26.63, adding content.zipe to a plaintext pack folder made it open with the encrypted folder pack strategy even without a key, be trusted and change Ore UI files. The engine only checked whether this file existed. A plaintext pack sent by a server with an empty content.zipe also had its in-game Ore UI page used {measured} (Resource pack delivery). From 26.64 this is blocked. The detailed test results are in the local test section of Modifying Ore UI pages.
3. The button style bridge vanilla.resourcePackOverrides {code}
Engine side
- The facet
vanilla.resourcePackOverridesoutputs two properties,definitionsandlastUpdated. - One definition is
identifier,control,propertyData[](name,value= a JSON string) andtextureData[](identifier,path,sliceSize,uvSize,uvScale). - The definitions the engine resolves are two hardcoded ones.
| Definition | Texture variable | Property variables |
|---|---|---|
common_buttons.light_text_button | $new_ui_button_texture | $text_color, $border_color |
common_buttons.focus_border | texture | none |
- The values are obtained by resolving variables all the way through in the JSON UI definition after the pack stack is merged. So changing
$light_button_*_text_colorin_global_variables.jsonor the texture files takes effect.
In-game bundle side (gameplay-*.js)
- It converts
control(the child control name) to an Ore UI state:default= default,hover=hoveredandfocused,pressed/press=pressedandselected,locked=disabled. - The target components are
pressable(background and border) andbutton(text), and the roles areprimaryandsecondary. - Conversion
- A texture becomes CSS
borderImageSource: pack://path.png?filtering=point.border-image-sliceissliceSizexuvScale, andborder-image-widthisuvSizex 0.2rem. The nine-slice (.json) follows along as is. $text_color([r,g,b] 0~1) becomescolor: rgb(...).$border_colorbecomesfilter: coh-color-matrix(...)(multiplies the color into the border texture).
- A texture becomes CSS
- This provider wraps the whole
gameplay.htmlapp (the router'swrapperComponent). The death, bed, inventory, DDUI (/gameplay/data-driven), trade and block screens all receive it. - The menu bundle (
index-*.js) only declares the facet name and does not use it. The out-of-game menu has no such bridge.
Probe pack and results {measured}
The server is Dragonfly (authentication off, port 19140, resource packs required) and uses /die to deal 1000 void damage and open the death screen. The probe pack is a server pack, so it is not trusted.
| Pack file | Contents |
|---|---|
ui/_global_variables.json | $light_button_default/hover/pressed_text_color = red/green/blue |
textures/ui/button_borderless_light(hover/pressed).png | 16x16 solid yellow/sky blue/magenta |
gameplay-theme-cb1e5471975ef2c1abb9.css in hbui/, gui/dist/hbui/ and the pack root | Vanilla CSS + body{background-color:rgba(255,0,255,0.6)!important} |
ui/death_screen.json | ignored: true on the buttons_panel and labels_panel of the JSON UI death screen |
ui/pause_screen.json | Control group. The texture of pause.take_screenshot_icon changed to the magenta texture |
| Observation | Result |
|---|---|
| Pause screen (JSON UI) | Buttons have a yellow background and red text, hover is sky blue and green. The camera icon is magenta. The pack and top-level element modifications are applied |
| Death screen | The title and two buttons are still visible. Since all the JSON UI death screen panels were hidden, this screen is Ore UI |
| Death screen buttons | Yellow background and red text, hover is sky blue background and green text. The pack's texture and text color went into the Ore UI buttons |
| Death screen background | Not magenta. The plaintext pack's hbui/...css was not used |
Summary: the bridge and pack:// textures work even with an untrusted server pack. Ore UI file lookup does not work with a plaintext server pack. Up to 26.63, sending the same pack encrypted made it work.
Probe tip: if you hide a JSON UI screen's panels with ignored: true and the screen is still visible, that screen is Ore UI. This method can tell which technology a screen opened with.
4. DDUI layouts are read from packs but only built-in ones {code}
- The loader walks the pack stack and opens each pack's
ddui/rootandddui/compositionfolders. Files are interpreted asminecraft:ui-root(error messagesDataDrivenUI Root .json file '{}',Failed to load DataDrivenUI file) andminecraft:ui-composition. The pack UUID is recorded with them and becomes thesourcePackIdthat goes to JS (vanilla.CoreDataDrivenUIDefinitionQuery). - Pack filtering: only packs where at least one of two true/false markers on the pack is true are read. The POI loader looks at the same two markers and raises "
Cannot use minecraft namespace found %s" when a pack with both false uses aminecraft:identifier. So these two values are a "game built-in (first-party) pack" marker{inferred}.ddui/root/*.jsonof user and server packs is not read. /reloadhas a DDUI branch (commands.reload.ddui.success).- The frontend is ready to accept creator packs (
gameplay-*.js)- A layout given by the engine is drawn with
isCreatorDataDriven: trueandpack: sourcePackId. - Image rule: if the layout's source pack is vanilla (
0575c61f-...), images can point to another pack (packId). If it is not vanilla, it can use only its own pack's images (error messagesRequestedPack is not supported.,Cannot load vanilla images.,Image cannot look like a URL.). - This matches exactly what a Mojang developer said in the community: "until stage 2 (full layouts), custom RP panels are internal-pack only".
- A layout given by the engine is drawn with
5. The screen switch and containers {code}
The switch that opens container screens with Ore UI, and the conclusion that a server cannot turn it on, are in Icons and containers.
6. Rule summary
- Plaintext packs (plaintext zip and folder access strategies) are not trusted, so files in
hbui/are ignored. - In the analyzed version (1.26.52), the three encrypted access strategies were always trusted regardless of the pack UUID, signature and manifest. This route worked up to 26.63 and is blocked from 26.64.
- A plaintext pack still reaches the button style bridge and
pack://textures (measured on 1.26.52). - Fonts and
routes.jsonare read only from the install folder, not from packs. - DDUI layouts (
ddui/root) are read only from built-in packs.
| 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 |