Changing Ore UI pages and server-driven DDUI
Ore UI is the UI that Coherent Gameface draws from hashed HTML, JS and CSS bundles in the install folder. All in-game Ore UI screens (death, bed, DDUI forms, trade, etc.) are one gameplay.html. From 26.64 a resource pack cannot replace Ore UI files (ALT-11). So the only routes by which packs and servers reach Ore UI now are three: the button style bridge that carries two JSON UI button definitions over (ALT-15), pack:// textures (ALT-12), and DDUI screens opened by scripts or servers.
When to use it
| What you want | Method in this guide | When it does not fit |
|---|---|---|
| Change the text color, background and border of in-game Ore UI buttons (death screen, etc.) | Change the variables and textures that common_buttons.light_text_button and common_buttons.focus_border use, in a resource pack (ALT-15) | The out-of-game menus do not have this bridge |
| Change game textures that Ore UI uses | Put the texture at the same path in a resource pack (ALT-12) | The bundle's own images (hbui/assets) and fonts do not change |
| Open a form from a script that follows value changes | CustomForm and Observable* of @minecraft/server-ui (DDUI) | The form's look (size, background, position, font) cannot change. If the look matters, Reskinning a server form |
| Change the layout, behavior, CSS or HTML of an Ore UI screen | Not possible. From 26.64 encrypted packs and content.zipe packs are blocked too (ALT-11) | For a JSON UI screen, Modifying a vanilla screen |
Change a vanilla DDUI layout (ddui/root) with a pack | Not possible. The engine reads layouts only from built-in packs (ALT-16) | Build it from CustomForm elements and visible |
| Open a real chest, furnace or inventory in Ore UI | Not possible. It needs a client developer option, and a server has no route to turn it on | Making chest UIs and inventory menus |
Change fonts, routes.json or the HUD | Not with this guide. Fonts and routes.json are read only from the install folder, and the HUD is not Ore UI | For the HUD, Showing server data on the HUD |
| A server that sends packets directly (Dragonfly, etc.) opens a form | Use the vanilla form packets | Raw forms sent by server software. The DDUI packet rules are under Must match below |
Minimal example
Two packs. The resource pack changes the light button text colors, which changes the buttons of the JSON UI pause screen and the Ore UI death screen together, and the behavior pack opens a CustomForm when a compass is used. The resource pack's ui/_global_variables.json changes the same three variables as the probe pack of the loading paths page (measured with a server pack on Windows 1.26.52; the color values are an example in the vanilla [r, g, b] format), and manifest.json is the measured form of section 10 of HUD and title channels. The behavior pack's form code is a shortened MS Learn example from chapter 1 of the DDUI guide, and the compass event comes from the measured example of Starting with the Script API and handling events. The behavior pack was not run in game {docs}.
my_oreui_button_rp/
manifest.json
ui/
_global_variables.json
my_ddui_bp/
manifest.json
scripts/
main.js
my_oreui_button_rp/manifest.json:
{
"format_version": 3,
"header": {
"name": "Ore UI button colors",
"description": "Changes light button text colors in JSON UI and Ore UI",
"uuid": "78fec73b-e30a-466c-89ed-314440b3c3e1",
"version": "1.0.0",
"min_engine_version": "1.26.40"
},
"modules": [
{ "type": "resources", "uuid": "19419cf9-25ba-4ea5-92ac-2a6e073466d7", "version": "1.0.0" }
],
"metadata": { "authors": ["Example"] }
}
my_oreui_button_rp/ui/_global_variables.json: it is loaded automatically without registration (FILE-04). The vanilla values are [0.3, 0.3, 0.3] for default and locked and [1.0, 1.0, 1.0] for hover and pressed.
{
"$light_button_default_text_color": [ 1.0, 0.0, 0.0 ],
"$light_button_hover_text_color": [ 0.0, 1.0, 0.0 ],
"$light_button_pressed_text_color": [ 0.0, 0.0, 1.0 ]
}
my_ddui_bp/manifest.json:
{
"format_version": 2,
"header": {
"name": "DDUI form example",
"description": "Opens a CustomForm when a compass is used",
"uuid": "38ead4c8-b15a-404a-bf8b-041bc8f6b178",
"version": [1, 0, 0],
"min_engine_version": [1, 26, 30]
},
"modules": [
{
"type": "script",
"language": "javascript",
"uuid": "906a5683-3c9b-439b-b394-8b2260229513",
"version": [1, 0, 0],
"entry": "scripts/main.js"
}
],
"dependencies": [
{ "module_name": "@minecraft/server", "version": "2.11.0" },
{ "module_name": "@minecraft/server-ui", "version": "2.3.0" }
]
}
my_ddui_bp/scripts/main.js:
import { world } from "@minecraft/server";
import { CustomForm, ObservableBoolean, ObservableString } from "@minecraft/server-ui";
world.afterEvents.itemUse.subscribe(({ source, itemStack }) => {
if (itemStack.typeId !== "minecraft:compass") return;
const musicEnabled = new ObservableBoolean(true, { clientWritable: true });
const status = new ObservableString("Music is on");
musicEnabled.subscribe(() => {
status.setData(musicEnabled.getData() ? "Music is on" : "Music is off");
});
new CustomForm(source, "Game Settings")
.closeButton()
.label(status)
.divider()
.toggle("Music Enabled", musicEnabled)
.button("Say state", () => world.sendMessage(`Music: ${musicEnabled.getData()}`))
.show()
.then(() => console.warn(`Closed. Music: ${musicEnabled.getData()}`))
.catch((e) => console.error(e, e.stack));
});
- Flipping the toggle changes
musicEnabled, and itssubscribechanges the label'sstatus, so the label of the open form follows. Pass the observable itself to the label. - A button callback runs as soon as the button is pressed, and the form stays open.
- Whether the resource pack's button colors also apply to the DDUI form buttons was not measured. It is expected only because the bridge provider wraps the whole
gameplay.htmlapp, DDUI screens included{code, inferred}.
Must match
Resource pack (button style bridge)
- Only two definitions cross over. From the child controls
default,hover,pressedandlockedofcommon_buttons.light_text_buttonit takes$new_ui_button_texture(background, nine-slice included),$text_colorand$border_color, and fromcommon_buttons.focus_borderit takestexture. Other definitions and properties do not reach Ore UI (ALT-15). - The values come from resolving the variables fully in the JSON UI definitions merged by the pack stack. So changing
$light_button_*_text_colorinui/_global_variables.json, or the vanilla texturestextures/ui/button_borderless_light.png,button_borderless_lighthover.pngandbutton_borderless_lightpressed.png, is reflected (ALT-15). - Keep
ui/_global_variables.jsonat exactly that path and do not register it in_ui_defs.json(FILE-04). - A text color is
[r, g, b]from 0 to 1. In Ore UI it becomescolor: rgb(...), and$border_colorbecomes a color filter multiplied onto the border texture{code}. - The bridge exists only in the in-game bundle. The out-of-game menu bundle only declares the facet name and does not use it
{code}. - Textures are requested as
pack://path.pngand resolve even from an untrusted server pack (ALT-12). Vanillaclose_button_defaultwas not read throughpack://, while_lightwas{measured}.
Script DDUI (CustomForm)
CustomForm,MessageBox,ObservableString,ObservableNumber,ObservableBooleanandObservableUIRawMessageexist from@minecraft/server-ui2.1.0. Pair it with@minecraft/server(2.11.0 + 2.3.0, 2.10.0 + 2.2.0){community confirmed}.- Creation is
new CustomForm(player, title), andshow()takes no argument. This differs from.show(player)ofActionFormData. - Make observables like
new ObservableBoolean(value, { clientWritable: true }).clientWritable: truelets the UI change the value, and this option cannot change after creation{community confirmed}. toggletakes anObservableBoolean,slideranddropdowntake anObservableNumber, andtextFieldtakes anObservableString(vanilla metadataserver-ui-bindings2.1.0).- Pass the observable itself for updates.
obs.getData() + "..."is evaluated only once. A label observable must be a string. - Do not
setDatathe same observable inside its ownsubscribe. If needed, wrap it insystem.run{community confirmed}. - Elements cannot be added after showing. Create elements that appear later in advance and give
visibleanObservableBoolean.visible: falsestill takes layout space. - Observables are not tied to a form. Giving the same observable to several players' forms makes the values change together, so make them per player.
- A player has one form at a time. To open another
CustomFormright after closing one, defer it by at least 1 tick. §color codes work only inlabel,headerand the title. They do not work in button, toggle or dropdown text{community confirmed}.- For
imageand button images, copy the texture into your own resource pack and use it with that pack's header UUID, writing the extension. References to vanilla pack textures stopped working around 26.40.30{community confirmed}.
Servers that send packets directly (DDUI data route)
- Opening a screen is
ClientBoundDataDrivenUIShowScreen(ScreenID: "minecraft:custom_form"), data isClientBoundDataStore, and closing isClientBoundDataDrivenUICloseScreen. The client answers withServerBoundDataStoreandServerBoundDataDrivenScreenClosed{measured, code}. Change.UpdateCountonly needs to keep growing per property.Update.PropertyUpdateCountmust equal the property's lastChange.UpdateCount, and onlyUpdate.PathUpdateCountgoes up. AnUpdatethat also raises the property number is ignored{measured}.- If the same property changes twice in one frame, the client gives only the newest value. Merge bursts of updates or spread them over properties
{measured}. - Use a new
FormIDfor each form, and treat a close packet as a close only when itsFormIDis the current form. The client reports the earlier form's close after the new form opens{record}. - The full format of the data that the vanilla
custom_formroot reads (title,closeButton,layout) is not documented in this wiki. A server that only needs to show forms uses the vanilla form packets.
Only when changing pages on 26.63 and earlier clients
- Only trusted packs replace Ore UI files. Plaintext packs are not trusted; packs a server encrypted with any 32-byte key and sent, and local packs with a 0-byte
content.zipeat the root, were trusted. The pack UUID and signature are not checked (ALT-11){measured, code}. - The location in the pack is
hbui/<file>. The hashes in the vanilla bundle names written ingameplay.htmldiffer per version and platform, so match them to the installeddata/gui/dist/hbui/gameplay.html. If they are wrong, no in-game Ore UI shows at all. - After changing pack files, raise the pack
version. With the same UUID and version the client uses what it already received. - Gameface is not a browser. A plain
divgets noclick, so usemousedown, and there is nofetch, no outside HTTP request, no@media, no grid, no<audio>and no canvas (getContext).calc()and CSS variables inside shorthand properties are ignored. - Write sizes in
rem. The page'shtmlfont size is 5 x GUI scale (px), so 1 GUI pixel is0.2rem. Draw textures unblurred withpack://path.png?filtering=point. - Item icons are
geo-item://<vanilla name>?width=&height=with no:in the name. For custom items and blocks givebaga URL-encoded{"#item_id_aux": runtime ID x 65536 + meta}{measured}.
Common mistakes
| Symptom | Cause | Fix |
|---|---|---|
The pack's hbui/*.css or gameplay.html is not used | From 26.64 resource pack access to Ore UI is blocked. On earlier versions plaintext packs were not trusted | Change only what the button bridge and textures allow, and change JSON UI screens for the rest (ALT-11, ALT-15) |
Adding ddui/root/custom_form.json leaves the form look unchanged | DDUI layouts are read only from built-in packs | Build it from CustomForm elements, or reskin the JSON UI server form (ALT-16) |
| A JSON UI screen change does not show on some screen | That screen opened in Ore UI | Hide the JSON UI panels with ignored: true; if the screen still shows, it is Ore UI (ALT-13) |
Changing another color variable ($title_text_color, etc.) leaves Ore UI unchanged | The bridge carries only two definitions | Change only the values light_text_button and focus_border use (ALT-15) |
| Menu (out-of-game) Ore UI buttons do not change | The menu bundle has no bridge | It cannot be changed |
Could not find export 'CustomForm' | @minecraft/server-ui is lower than 2.1.0 | Raise it to 2.1.0 or higher with a matching @minecraft/server |
Invalid constructor called or not a function | CustomForm.create(...) from before 26.30 and today's new CustomForm(...) were mixed up | Current versions use new CustomForm(player, title) |
A label shows [object Object] or does not change | The observable was joined with a string, or the getData() result was passed | Keep a separate string observable and update it in subscribe |
Unexpected data type ... Expected string and received number | A number observable was given to a label | Use a string observable |
cannot show form because another is open | A new form opened in the same tick the earlier one closed | Defer by 1 tick or more with system.runTimeout, or switch pages inside one form with visible |
| The form does not show | Another UI is open (DataDrivenScreenClosedReason.UserBusy) | Check the reason in the result and open again after a delay |
| A form image is empty | A vanilla pack texture was referenced | Copy it into your own resource pack and give that pack's UUID |
A path update (Update) sent by the server is not applied | PropertyUpdateCount was raised on every update | Keep it equal to the last Change.UpdateCount |
| A new form is treated as closed right after opening | The late close packet of the earlier form was taken as the new form's close | Handle a close packet only when its FormID is the current form |
| The connection drops on a Dragonfly server | A ModalFormResponse with data arrived for a FormID the server did not open | Check in game that the connection stays after opening and closing each screen kind |
| (26.63 and earlier) No in-game Ore UI shows at all | The vanilla bundle names (hashes) in gameplay.html differ from that version and platform | Match the names again from the installed gameplay.html |
Version conditions
- From 26.64 a resource pack cannot replace Ore UI files. This covers both packs a server encrypted and sent and
content.zipepacks (ALT-11). The decision logic of versions from 26.64 was not analyzed. - The button style bridge and
pack://textures are results measured on Windows 1.26.52 and were not retested on 26.64. Check them with the steps below before relying on them on the current version. - DDUI became stable in 26.30 (
@minecraft/server-ui2.1.0). Earlier versions needed Beta APIs and used theCustomForm.create(...)form. In 26.60,@minecraft/server2.11.0 and@minecraft/server-ui2.3.0 are stable. - 26.70 preview:
CustomForm.multiButtonRowbecame stable in@minecraft/server-ui2.4.0, and in 2.5.0-beta theCustomFormconstructor takes anoptionsargument.CustomFormOptions.useNewUIexists only in internal and alpha bindings, so normal creators cannot use it{docs}. - There is a report that the 27.0.20 preview moved Ore UI files from
gui/dist/hbuito a newore-uifolder. This wiki did not open that install.
How to check
- Put the resource pack in
development_resource_packsand the behavior pack indevelopment_behavior_packs. If you added them for the first time, restart the game. Turn on both packs on the edit screen of a world with cheats on (DBG-18). - Turn on Content Log GUI in the Creator section of the settings (DBG-01). Module version errors of the behavior pack appear when the world loads.
- Open the pause screen. If the JSON UI button text is red and green on hover, the resource pack is read.
- Open the death screen with
/kill. This screen is Ore UI. If the button text is red and green on hover, the bridge works. If it has vanilla colors, the bridge is blocked on this version or the screen is drawn by another route. - After respawning, use a compass. The
CustomFormshould open, turning the toggle off should change the label toMusic is off, and pressing Say state should print the value in chat. Also look at the form button text color. - Closing the form prints
Closed. Music: ...in the content log. If the form does not show, look forCould not find export, version errors andcannot show formin the log. - If you do not know whether a screen is Ore UI, turn on a pack that hides that screen's JSON UI panels with
ignored: true. If the screen still shows, it is Ore UI (ALT-13).
Further reading
- Ore UI overview: Conclusion table, Three routes by which a plaintext pack reaches Ore UI
- Loading paths and the trust decision: Probe pack and results, Rule summary. NB-17, NB-18, NB-19, NB-20
- Modifying Ore UI pages
- Page environment: Resources a page can load, Things tied to devices and versions
- Server-driven DDUI guide: Official DDUI, Packets, Data store write rules
- Server-driven Ore UI screen operations notes
- Icons (geo-item) and container UI: NB-21, NB-22
- Minecraft UI style guidelines: Units, What to keep in mind in Gameface
- Ore UI engine findings
- When JSON UI does not fit: ALT-11, ALT-12, ALT-13, ALT-15, ALT-16
- server-ui, server-net, server-admin, GameTest: DDUI community notes
- Server form API and form types:
CustomFormmembers by module version - Files and definitions: FILE-04
- Debugging, verification and version management: DBG-01, DBG-18
| 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 | |
repo-ore-ui-customizer | 8Crafter Ore UI Customizer analysis (this repository) (ore-ui-customizer/) | This project's material | 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 |
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 |
ms-learn | Minecraft Creator documentation (Microsoft Learn) | CC BY 4.0 (documentation), MIT (code) | a9fd1c0 | 2026-11-13 |
private-research | Private research (-) | - | 2026-11-13 | |
repo-guide | JSON UI comprehensive guide (this repository) (guide/) | This project's material | 2026-11-13 |