Skip to main content

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 wantMethod in this guideWhen 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 usesPut 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 changesCustomForm 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 screenNot 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 packNot 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 UINot possible. It needs a client developer option, and a server has no route to turn it onMaking chest UIs and inventory menus
Change fonts, routes.json or the HUDNot with this guide. Fonts and routes.json are read only from the install folder, and the HUD is not Ore UIFor the HUD, Showing server data on the HUD
A server that sends packets directly (Dragonfly, etc.) opens a formUse the vanilla form packetsRaw 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 its subscribe changes the label's status, 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.html app, DDUI screens included {code, inferred}.

Must match​

Resource pack (button style bridge)

  • Only two definitions cross over. From the child controls default, hover, pressed and locked of common_buttons.light_text_button it takes $new_ui_button_texture (background, nine-slice included), $text_color and $border_color, and from common_buttons.focus_border it takes texture. 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_color in ui/_global_variables.json, or the vanilla textures textures/ui/button_borderless_light.png, button_borderless_lighthover.png and button_borderless_lightpressed.png, is reflected (ALT-15).
  • Keep ui/_global_variables.json at 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 becomes color: rgb(...), and $border_color becomes 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.png and resolve even from an untrusted server pack (ALT-12). Vanilla close_button_default was not read through pack://, while _light was {measured}.

Script DDUI (CustomForm)

  • CustomForm, MessageBox, ObservableString, ObservableNumber, ObservableBoolean and ObservableUIRawMessage exist from @minecraft/server-ui 2.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), and show() takes no argument. This differs from .show(player) of ActionFormData.
  • Make observables like new ObservableBoolean(value, { clientWritable: true }). clientWritable: true lets the UI change the value, and this option cannot change after creation {community confirmed}.
  • toggle takes an ObservableBoolean, slider and dropdown take an ObservableNumber, and textField takes an ObservableString (vanilla metadata server-ui-bindings 2.1.0).
  • Pass the observable itself for updates. obs.getData() + "..." is evaluated only once. A label observable must be a string.
  • Do not setData the same observable inside its own subscribe. If needed, wrap it in system.run {community confirmed}.
  • Elements cannot be added after showing. Create elements that appear later in advance and give visible an ObservableBoolean. visible: false still 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 CustomForm right after closing one, defer it by at least 1 tick.
  • § color codes work only in label, header and the title. They do not work in button, toggle or dropdown text {community confirmed}.
  • For image and 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 is ClientBoundDataStore, and closing is ClientBoundDataDrivenUICloseScreen. The client answers with ServerBoundDataStore and ServerBoundDataDrivenScreenClosed {measured, code}.
  • Change.UpdateCount only needs to keep growing per property. Update.PropertyUpdateCount must equal the property's last Change.UpdateCount, and only Update.PathUpdateCount goes up. An Update that 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 FormID for each form, and treat a close packet as a close only when its FormID is 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_form root 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.zipe at 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 in gameplay.html differ per version and platform, so match them to the installed data/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 div gets no click, so use mousedown, and there is no fetch, 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's html font size is 5 x GUI scale (px), so 1 GUI pixel is 0.2rem. Draw textures unblurred with pack://path.png?filtering=point.
  • Item icons are geo-item://<vanilla name>?width=&height= with no : in the name. For custom items and blocks give bag a URL-encoded {"#item_id_aux": runtime ID x 65536 + meta} {measured}.

Common mistakes​

SymptomCauseFix
The pack's hbui/*.css or gameplay.html is not usedFrom 26.64 resource pack access to Ore UI is blocked. On earlier versions plaintext packs were not trustedChange 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 unchangedDDUI layouts are read only from built-in packsBuild it from CustomForm elements, or reskin the JSON UI server form (ALT-16)
A JSON UI screen change does not show on some screenThat screen opened in Ore UIHide 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 unchangedThe bridge carries only two definitionsChange only the values light_text_button and focus_border use (ALT-15)
Menu (out-of-game) Ore UI buttons do not changeThe menu bundle has no bridgeIt cannot be changed
Could not find export 'CustomForm'@minecraft/server-ui is lower than 2.1.0Raise it to 2.1.0 or higher with a matching @minecraft/server
Invalid constructor called or not a functionCustomForm.create(...) from before 26.30 and today's new CustomForm(...) were mixed upCurrent versions use new CustomForm(player, title)
A label shows [object Object] or does not changeThe observable was joined with a string, or the getData() result was passedKeep a separate string observable and update it in subscribe
Unexpected data type ... Expected string and received numberA number observable was given to a labelUse a string observable
cannot show form because another is openA new form opened in the same tick the earlier one closedDefer by 1 tick or more with system.runTimeout, or switch pages inside one form with visible
The form does not showAnother UI is open (DataDrivenScreenClosedReason.UserBusy)Check the reason in the result and open again after a delay
A form image is emptyA vanilla pack texture was referencedCopy it into your own resource pack and give that pack's UUID
A path update (Update) sent by the server is not appliedPropertyUpdateCount was raised on every updateKeep it equal to the last Change.UpdateCount
A new form is treated as closed right after openingThe late close packet of the earlier form was taken as the new form's closeHandle a close packet only when its FormID is the current form
The connection drops on a Dragonfly serverA ModalFormResponse with data arrived for a FormID the server did not openCheck in game that the connection stays after opening and closing each screen kind
(26.63 and earlier) No in-game Ore UI shows at allThe vanilla bundle names (hashes) in gameplay.html differ from that version and platformMatch 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.zipe packs (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-ui 2.1.0). Earlier versions needed Beta APIs and used the CustomForm.create(...) form. In 26.60, @minecraft/server 2.11.0 and @minecraft/server-ui 2.3.0 are stable.
  • 26.70 preview: CustomForm.multiButtonRow became stable in @minecraft/server-ui 2.4.0, and in 2.5.0-beta the CustomForm constructor takes an options argument. CustomFormOptions.useNewUI exists 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/hbui to a new ore-ui folder. This wiki did not open that install.

How to check​

  1. Put the resource pack in development_resource_packs and the behavior pack in development_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).
  2. 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.
  3. Open the pause screen. If the JSON UI button text is red and green on hover, the resource pack is read.
  4. 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.
  5. After respawning, use a compass. The CustomForm should open, turning the toggle off should change the label to Music is off, and pressing Say state should print the value in chat. Also look at the form button text color.
  6. Closing the form prints Closed. Music: ... in the content log. If the form does not show, look for Could not find export, version errors and cannot show form in the log.
  7. 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​

Sources
idSourceLicenseCommitAccessed
repo-ore-ui-loadingOre UI loading research (this repository) (ore-ui-loading/)This project's material2026-11-13
repo-ore-ui-customizer8Crafter Ore UI Customizer analysis (this repository) (ore-ui-customizer/)This project's material2026-11-13
bedrock-wikiBedrock WikiCC BY 4.0 (docs/licenses/CC-BY-4.0.md in the repository)0930b392026-11-13
gameface-docsCoherent Gameface documentationCoherent Labs documentation. Facts only, rewritten2026-11-13
gameface-guideCoherent Gameface UI Workflow Guide (Animated Assets)Coherent Labs documentation. Facts only, rewritten2026-11-13
venice-unleashed-docsVenice Unleashed: Migrating to new UI system (Gameface)VU documentation. Facts only, rewritten2026-11-13
bedrock-protocol-docsMojang bedrock-protocol-docs(c) Mojang AB. All rights reserved (Minecraft EULA applies)88e783a2026-11-13
gophertunnelgophertunnel (Sandertv)MIT (c) 2019 Sandertve2251a62026-11-13
ms-learnMinecraft Creator documentation (Microsoft Learn)CC BY 4.0 (documentation), MIT (code)a9fd1c02026-11-13
private-researchPrivate research (-)-2026-11-13
repo-guideJSON UI comprehensive guide (this repository) (guide/)This project's material2026-11-13