Installation
Add Ore UI Library to a Fabric, NeoForge, or Forge Gradle project and understand the runtime font asset pipeline.
ore-ui-lib is a client-side library. Pick the jar that matches the loader and the Minecraft version you compile against. Fabric and NeoForge use the same ranges. Forge skips 1.21.5, 1.21.6, 1.21.7, and 1.21.9. Fabric also depends on Fabric API. 1.21.x needs Java 21. 26.x needs Java 25.
Fabric and NeoForge
| Jar | Minecraft |
|---|---|
ore-ui-lib-fabric-1.21-1.21.3 / ore-ui-lib-neoforge-1.21-1.21.3 |
1.21 – 1.21.3 |
…-1.21.4 |
1.21.4 |
…-1.21.5-1.21.8 |
1.21.5 – 1.21.8 |
…-1.21.9-1.21.10 |
1.21.9 – 1.21.10 |
…-1.21.11 |
1.21.11 |
…-26.1 |
26.1.x |
…-26.2 |
26.2.x |
…-26.3 |
26.3.x |
Forge
| Jar | Minecraft |
|---|---|
ore-ui-lib-forge-1.21-1.21.3 |
1.21 – 1.21.3 |
ore-ui-lib-forge-1.21.4 |
1.21.4 |
ore-ui-lib-forge-1.21.8 |
1.21.8 |
ore-ui-lib-forge-1.21.10 |
1.21.10 |
ore-ui-lib-forge-1.21.11 |
1.21.11 |
ore-ui-lib-forge-26.1 |
26.1.x |
ore-ui-lib-forge-26.2 |
26.2.x |
ore-ui-lib-forge-26.3 |
26.3.x |
The Forge file to put on the compile classpath is the -all jar. Fabric Loader is >=0.19.3.
Gradle Dependency
Place the compiled ore-ui-lib jar inside a local libs/ directory in your mod project (or bundle it with Jar-in-Jar / include if you prefer standalone distribution).
Fabric (build.gradle)
repositories {
flatDir {
dirs 'libs'
}
}
dependencies {
// Place ore-ui-lib-1.0.0.jar in your project's libs/ directory
modImplementation name: 'ore-ui-lib-1.0.0'
// Optional: bundle inside your mod jar (Jar-in-Jar)
// include modImplementation(name: 'ore-ui-lib-1.0.0')
}
NeoForge (build.gradle)
repositories {
flatDir {
dirs 'libs'
}
}
dependencies {
implementation name: 'ore-ui-lib-1.0.0'
// Optional: bundle inside your mod jar (JarJar)
// jarJar name: 'ore-ui-lib-1.0.0'
}
Forge (build.gradle)
repositories {
flatDir {
dirs 'libs'
}
}
dependencies {
// The Forge library jar is the -all file (it contains Brotli).
implementation name: 'ore-ui-lib-forge-26.3-all'
// Optional: bundle inside your mod jar (JarJar)
// jarJar name: 'ore-ui-lib-forge-26.3-all'
}
Mod Metadata
If you do not bundle the library inside your jar, declare ore-ui-lib (Fabric) or ore_ui_lib (NeoForge and Forge) as a client-side dependency. The snippet below is the 26.3 Fabric range. Swap minecraft and java for the jar you actually depend on.
fabric.mod.json
{
"schemaVersion": 1,
"id": "my_mod",
"version": "1.0.0",
"name": "My Mod",
"environment": "client",
"depends": {
"fabricloader": ">=0.19.3",
"minecraft": ">=26.3 <26.4",
"java": ">=25",
"fabric-api": "*"
"ore-ui-lib": ">=1.0.0"
}
}
META-INF/neoforge.mods.toml
[[dependencies.my_mod]]
modId="ore_ui_lib"
type="required"
versionRange="[1.0.0,)"
ordering="NONE"
side="CLIENT"
Runtime Font Asset Pipeline
ore-ui-lib does not redistribute proprietary font binaries inside the mod jar. When an Ore UI screen runs for the first time:
- Cache Check:
OreFontManagerinspectsgameDirectory/oreui/fonts/forMinecraft-Tenv2.otfandNotoSans-Regular.ttf. - Dynamic Download: If missing,
OreAssetDownloadScreenfetches Minecraft Ten v2 (.woff2) from Mojang’s CDN and Noto Sans Regular (.ttf) from Google Fonts. - WOFF2 Conversion & 4K GPU Atlas:
Woff2Converterunpacks WOFF2 in memory, andOreFontAtlasrasterizes each typeface at128pxbase size into a4096×4096antialiased GPU texture atlas.
Once cached on disk, later launches read the font files and the saved atlases (minecraft_ten.atlas.png, noto_sans.atlas.png, and their .glyphs files) from oreui/fonts/. A file is fetched again only when it is missing. OreFontManager.resetFonts() drops the in-memory fonts and leaves the saved files in place.